diff --git a/README.md b/README.md index b909330..e662a6f 100644 --- a/README.md +++ b/README.md @@ -38,13 +38,13 @@ Logging level can be set using env variable `NS_LOG` or calling function `client package main import ( - "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/resource/config" "github.com/citrix/adc-nitro-go/service" ) func main() { client, _ := service.NewNitroClientFromEnv() - lb1 := lb.Lbvserver{ + lb1 := config.Lbvserver{ Name: "sample_lb", Ipv46: "10.71.136.50", Lbmethod: "ROUNDROBIN", diff --git a/resource/config/network/Interface.go b/resource/config/Interface.go similarity index 64% rename from resource/config/network/Interface.go rename to resource/config/Interface.go index 337e9f9..34be687 100644 --- a/resource/config/network/Interface.go +++ b/resource/config/Interface.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for interface resource. -*/ + */ type Interface struct { /** * Interface number, in C/U format, where C can take one of the following values: @@ -31,63 +31,63 @@ type Interface struct { */ Id string `json:"id,omitempty"` /** - * Ethernet speed of the interface, in Mbps. + * Ethernet speed of the interface, in Mbps. Notes: * If you set the speed as AUTO, the Citrix ADC attempts to auto-negotiate or auto-sense the link speed of the interface when it is UP. You must enable auto negotiation on the interface. - * If you set a speed other than AUTO, you must specify the same speed for the peer network device. Mismatched speed and duplex settings between the peer devices of a link lead to link errors, packet loss, and other errors. + * If you set a speed other than AUTO, you must specify the same speed for the peer network device. Mismatched speed and duplex settings between the peer devices of a link lead to link errors, packet loss, and other errors. Some interfaces do not support certain speeds. If you specify an unsupported speed, an error message appears. */ Speed string `json:"speed,omitempty"` /** * The duplex mode for the interface. Notes:* If you set the duplex mode to AUTO, the Citrix ADC attempts to auto-negotiate the duplex mode of the interface when it is UP. You must enable auto negotiation on the interface. If you set a duplex mode other than AUTO, you must specify the same duplex mode for the peer network device. Mismatched speed and duplex settings between the peer devices of a link lead to link errors, packet loss, and other errors. - */ + */ Duplex string `json:"duplex,omitempty"` /** * 802.3x flow control setting for the interface. The 802.3x specification does not define flow control for 10 Mbps and 100 Mbps speeds, but if a Gigabit Ethernet interface operates at those speeds, the flow control settings can be applied. The flow control setting that is finally applied to an interface depends on auto-negotiation. With the ON option, the peer negotiates the flow control, but the appliance then forces two-way flow control for the interface. - */ + */ Flowctl string `json:"flowctl,omitempty"` /** * Auto-negotiation state of the interface. With the ENABLED setting, the Citrix ADC auto-negotiates the speed and duplex settings with the peer network device on the link. The Citrix ADC appliance auto-negotiates the settings of only those parameters (speed or duplex mode) for which the value is set as AUTO. - */ + */ Autoneg string `json:"autoneg,omitempty"` /** * In a High Availability (HA) configuration, monitor the interface for failure events. In an HA configuration, an interface that has HA MON enabled and is not bound to any Failover Interface Set (FIS), is a critical interface. Failure or disabling of any critical interface triggers HA failover. - */ + */ Hamonitor string `json:"hamonitor,omitempty"` /** * In a High Availability (HA) or Cluster configuration, configure the interface for sending heartbeats. In an HA or Cluster configuration, an interface that has HA Heartbeat disabled should not send the heartbeats. - */ + */ Haheartbeat string `json:"haheartbeat,omitempty"` /** * The Maximum Transmission Unit (MTU) is the largest packet size, measured in bytes excluding 14 bytes ethernet header and 4 bytes CRC, that can be transmitted and received by an interface. The default value of MTU is 1500 on all the interface of Citrix ADC, some Cloud Platforms will restrict Citrix ADC to use the lesser default value. Any MTU value more than 1500 is called Jumbo MTU and will make the interface as jumbo enabled. The Maximum Jumbo MTU in Citrix ADC is 9216, however, some Virtualized / Cloud Platforms will have lesser Maximum Jumbo MTU Value (9000). In the case of Cluster, the Backplane interface requires an MTU value of 78 bytes more than the Max MTU configured on any other Data-Plane Interface. When the Data plane interfaces are all at default 1500 MTU, Cluster Back Plane will be automatically set to 1578 (1500 + 78) MTU. If a Backplane interface is reset to Data Plane Interface, then the 1578 MTU will be automatically reset to the default MTU of 1500(or whatever lesser default value). If any data plane interface of a Cluster is configured with a Jumbo MTU ( > 1500), then all backplane interfaces require to be configured with a minimum MTU of 'Highest Data Plane MTU in the Cluster + 78'. That makes the maximum Jumbo MTU for any Data-Plane Interface in a Cluster System to be '9138 (9216 - 78)., where 9216 is the maximum Jumbo MTU. On certain Virtualized / Cloud Platforms, the maximum possible MTU is restricted to a lesser value, Similar calculation can be applied, Maximum Data Plane MTU in Cluster = (Maximum possible MTU - 78). - */ + */ Mtu int `json:"mtu,omitempty"` /** * The receive ringsize of the interface. A higher number provides more number of buffers in handling incoming traffic. - */ + */ Ringsize int `json:"ringsize,omitempty"` /** * The receive ringtype of the interface (Fixed or Elastic). A fixed ring type pre-allocates configured number of buffers irrespective of traffic rate. In contrast, an elastic ring, expands and shrinks based on incoming traffic rate. - */ + */ Ringtype string `json:"ringtype,omitempty"` /** * Add a four-byte 802.1q tag to every packet sent on this interface. The ON setting applies the tag for this interface's native VLAN. OFF applies the tag for all VLANs other than the native VLAN. - */ + */ Tagall string `json:"tagall,omitempty"` /** * This argument is deprecated by tagall. - */ + */ Trunk string `json:"trunk,omitempty"` /** * Accept and send 802.1q VLAN tagged packets, based on Allowed Vlan List of this interface. - */ + */ Trunkmode string `json:"trunkmode,omitempty"` /** * VLAN ID or range of VLAN IDs will be allowed on this trunk interface. In the command line interface, separate the range with a hyphen. For example: 40-90. - */ + */ Trunkallowedvlan []string `json:"trunkallowedvlan,omitempty"` /** - * Bind the interface to a LA channel created by the Link Aggregation control protocol (LACP). + * Bind the interface to a LA channel created by the Link Aggregation control protocol (LACP). Available settings function as follows: * Active - The LA channel port of the Citrix ADC generates LACPDU messages on a regular basis, regardless of any need expressed by its peer device to receive them. * Passive - The LA channel port of the Citrix ADC does not transmit LACPDU messages unless the peer device port is in the active mode. That is, the port does not speak unless spoken to. @@ -95,18 +95,18 @@ type Interface struct { */ Lacpmode string `json:"lacpmode,omitempty"` /** - * Integer identifying the LACP LA channel to which the interface is to be bound. + * Integer identifying the LACP LA channel to which the interface is to be bound. For an LA channel of the Citrix ADC, this digit specifies the variable x of an LA channel in LA/x notation, where x can range from 1 to 8. For example, if you specify 3 as the LACP key for an LA channel, the interface is bound to the LA channel LA/3. For an LA channel of a cluster configuration, this digit specifies the variable y of a cluster LA channel in CLA/(y-4) notation, where y can range from 5 to 8. For example, if you specify 6 as the LACP key for a cluster LA channel, the interface is bound to the cluster LA channel CLA/2. */ Lacpkey int `json:"lacpkey,omitempty"` /** * Type of entity (Citrix ADC or cluster configuration) for which to create the channel. - */ + */ Lagtype string `json:"lagtype,omitempty"` /** * LACP port priority, expressed as an integer. The lower the number, the higher the priority. The Citrix ADC limits the number of interfaces in an LA channel to sixteen. - */ + */ Lacppriority int `json:"lacppriority,omitempty"` /** * Interval at which the Citrix ADC sends LACPDU messages to the peer device on the LA channel. @@ -117,119 +117,118 @@ type Interface struct { Lacptimeout string `json:"lacptimeout,omitempty"` /** * Alias name for the interface. Used only to enhance readability. To perform any operations, you have to specify the interface ID. - */ + */ Ifalias string `json:"ifalias,omitempty"` /** * Low threshold value for the throughput of the interface, in Mbps. In an HA configuration, failover is triggered if the interface has HA MON enabled and the throughput is below the specified the threshold. - */ + */ Throughput int `json:"throughput,omitempty"` /** * Link Redundancy for Cluster LAG. - */ + */ Linkredundancy string `json:"linkredundancy,omitempty"` /** * High threshold value for the bandwidth usage of the interface, in Mbps. The Citrix ADC generates an SNMP trap message when the bandwidth usage of the interface is greater than or equal to the specified high threshold value. - */ + */ Bandwidthhigh int `json:"bandwidthhigh,omitempty"` /** * Normal threshold value for the bandwidth usage of the interface, in Mbps. When the bandwidth usage of the interface becomes less than or equal to the specified normal threshold after exceeding the high threshold, the Citrix ADC generates an SNMP trap message to indicate that the bandwidth usage has returned to normal. - */ + */ Bandwidthnormal int `json:"bandwidthnormal,omitempty"` /** * Link Layer Discovery Protocol (LLDP) mode for an interface. The resultant LLDP mode of an interface depends on the LLDP mode configured at the global and the interface levels. - */ + */ Lldpmode string `json:"lldpmode,omitempty"` /** * LRSET port priority, expressed as an integer ranging from 1 to 1024. The highest priority is 1. The Citrix ADC limits the number of interfaces in an LRSET to 8. Within a LRSET the highest LR Priority Interface is considered as the first candidate for the Active interface, if the interface is UP. - */ + */ Lrsetpriority int `json:"lrsetpriority,omitempty"` //------- Read only Parameter ---------; - Devicename string `json:"devicename,omitempty"` - Unit string `json:"unit,omitempty"` - Description string `json:"description,omitempty"` - Flags string `json:"flags,omitempty"` - Actualmtu string `json:"actualmtu,omitempty"` - Vlan string `json:"vlan,omitempty"` - Mac string `json:"mac,omitempty"` - Uptime string `json:"uptime,omitempty"` - Downtime string `json:"downtime,omitempty"` - Actualringsize string `json:"actualringsize,omitempty"` - Reqmedia string `json:"reqmedia,omitempty"` - Reqspeed string `json:"reqspeed,omitempty"` - Reqduplex string `json:"reqduplex,omitempty"` - Reqflowcontrol string `json:"reqflowcontrol,omitempty"` - Actmedia string `json:"actmedia,omitempty"` - Actspeed string `json:"actspeed,omitempty"` - Actduplex string `json:"actduplex,omitempty"` - Actflowctl string `json:"actflowctl,omitempty"` - Mode string `json:"mode,omitempty"` - State string `json:"state,omitempty"` - Autonegresult string `json:"autonegresult,omitempty"` - Tagged string `json:"tagged,omitempty"` - Taggedany string `json:"taggedany,omitempty"` - Taggedautolearn string `json:"taggedautolearn,omitempty"` - Hangdetect string `json:"hangdetect,omitempty"` - Hangreset string `json:"hangreset,omitempty"` - Linkstate string `json:"linkstate,omitempty"` - Intfstate string `json:"intfstate,omitempty"` - Rxpackets string `json:"rxpackets,omitempty"` - Rxbytes string `json:"rxbytes,omitempty"` - Rxerrors string `json:"rxerrors,omitempty"` - Rxdrops string `json:"rxdrops,omitempty"` - Txpackets string `json:"txpackets,omitempty"` - Txbytes string `json:"txbytes,omitempty"` - Txerrors string `json:"txerrors,omitempty"` - Txdrops string `json:"txdrops,omitempty"` - Indisc string `json:"indisc,omitempty"` - Outdisc string `json:"outdisc,omitempty"` - Fctls string `json:"fctls,omitempty"` - Hangs string `json:"hangs,omitempty"` - Stsstalls string `json:"stsstalls,omitempty"` - Txstalls string `json:"txstalls,omitempty"` - Rxstalls string `json:"rxstalls,omitempty"` - Bdgmacmoved string `json:"bdgmacmoved,omitempty"` - Bdgmuted string `json:"bdgmuted,omitempty"` - Vmac string `json:"vmac,omitempty"` - Vmac6 string `json:"vmac6,omitempty"` - Reqthroughput string `json:"reqthroughput,omitempty"` - Actthroughput string `json:"actthroughput,omitempty"` - Backplane string `json:"backplane,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Cleartime string `json:"cleartime,omitempty"` - Slavestate string `json:"slavestate,omitempty"` - Slavemedia string `json:"slavemedia,omitempty"` - Slavespeed string `json:"slavespeed,omitempty"` - Slaveduplex string `json:"slaveduplex,omitempty"` - Slaveflowctl string `json:"slaveflowctl,omitempty"` - Slavetime string `json:"slavetime,omitempty"` - Intftype string `json:"intftype,omitempty"` - Svmcmd string `json:"svmcmd,omitempty"` - Lacpactormode string `json:"lacpactormode,omitempty"` - Lacpactortimeout string `json:"lacpactortimeout,omitempty"` - Lacpactorpriority string `json:"lacpactorpriority,omitempty"` - Lacpactorportno string `json:"lacpactorportno,omitempty"` - Lacppartnerstate string `json:"lacppartnerstate,omitempty"` - Lacppartnertimeout string `json:"lacppartnertimeout,omitempty"` - Lacppartneraggregation string `json:"lacppartneraggregation,omitempty"` - Lacppartnerinsync string `json:"lacppartnerinsync,omitempty"` - Lacppartnercollecting string `json:"lacppartnercollecting,omitempty"` - Lacppartnerdistributing string `json:"lacppartnerdistributing,omitempty"` - Lacppartnerdefaulted string `json:"lacppartnerdefaulted,omitempty"` - Lacppartnerexpired string `json:"lacppartnerexpired,omitempty"` - Lacppartnerpriority string `json:"lacppartnerpriority,omitempty"` - Lacppartnersystemmac string `json:"lacppartnersystemmac,omitempty"` + Devicename string `json:"devicename,omitempty"` + Unit string `json:"unit,omitempty"` + Description string `json:"description,omitempty"` + Flags string `json:"flags,omitempty"` + Actualmtu string `json:"actualmtu,omitempty"` + Vlan string `json:"vlan,omitempty"` + Mac string `json:"mac,omitempty"` + Uptime string `json:"uptime,omitempty"` + Downtime string `json:"downtime,omitempty"` + Actualringsize string `json:"actualringsize,omitempty"` + Reqmedia string `json:"reqmedia,omitempty"` + Reqspeed string `json:"reqspeed,omitempty"` + Reqduplex string `json:"reqduplex,omitempty"` + Reqflowcontrol string `json:"reqflowcontrol,omitempty"` + Actmedia string `json:"actmedia,omitempty"` + Actspeed string `json:"actspeed,omitempty"` + Actduplex string `json:"actduplex,omitempty"` + Actflowctl string `json:"actflowctl,omitempty"` + Mode string `json:"mode,omitempty"` + State string `json:"state,omitempty"` + Autonegresult string `json:"autonegresult,omitempty"` + Tagged string `json:"tagged,omitempty"` + Taggedany string `json:"taggedany,omitempty"` + Taggedautolearn string `json:"taggedautolearn,omitempty"` + Hangdetect string `json:"hangdetect,omitempty"` + Hangreset string `json:"hangreset,omitempty"` + Linkstate string `json:"linkstate,omitempty"` + Intfstate string `json:"intfstate,omitempty"` + Rxpackets string `json:"rxpackets,omitempty"` + Rxbytes string `json:"rxbytes,omitempty"` + Rxerrors string `json:"rxerrors,omitempty"` + Rxdrops string `json:"rxdrops,omitempty"` + Txpackets string `json:"txpackets,omitempty"` + Txbytes string `json:"txbytes,omitempty"` + Txerrors string `json:"txerrors,omitempty"` + Txdrops string `json:"txdrops,omitempty"` + Indisc string `json:"indisc,omitempty"` + Outdisc string `json:"outdisc,omitempty"` + Fctls string `json:"fctls,omitempty"` + Hangs string `json:"hangs,omitempty"` + Stsstalls string `json:"stsstalls,omitempty"` + Txstalls string `json:"txstalls,omitempty"` + Rxstalls string `json:"rxstalls,omitempty"` + Bdgmacmoved string `json:"bdgmacmoved,omitempty"` + Bdgmuted string `json:"bdgmuted,omitempty"` + Vmac string `json:"vmac,omitempty"` + Vmac6 string `json:"vmac6,omitempty"` + Reqthroughput string `json:"reqthroughput,omitempty"` + Actthroughput string `json:"actthroughput,omitempty"` + Backplane string `json:"backplane,omitempty"` + Ifnum string `json:"ifnum,omitempty"` + Cleartime string `json:"cleartime,omitempty"` + Slavestate string `json:"slavestate,omitempty"` + Slavemedia string `json:"slavemedia,omitempty"` + Slavespeed string `json:"slavespeed,omitempty"` + Slaveduplex string `json:"slaveduplex,omitempty"` + Slaveflowctl string `json:"slaveflowctl,omitempty"` + Slavetime string `json:"slavetime,omitempty"` + Intftype string `json:"intftype,omitempty"` + Svmcmd string `json:"svmcmd,omitempty"` + Lacpactormode string `json:"lacpactormode,omitempty"` + Lacpactortimeout string `json:"lacpactortimeout,omitempty"` + Lacpactorpriority string `json:"lacpactorpriority,omitempty"` + Lacpactorportno string `json:"lacpactorportno,omitempty"` + Lacppartnerstate string `json:"lacppartnerstate,omitempty"` + Lacppartnertimeout string `json:"lacppartnertimeout,omitempty"` + Lacppartneraggregation string `json:"lacppartneraggregation,omitempty"` + Lacppartnerinsync string `json:"lacppartnerinsync,omitempty"` + Lacppartnercollecting string `json:"lacppartnercollecting,omitempty"` + Lacppartnerdistributing string `json:"lacppartnerdistributing,omitempty"` + Lacppartnerdefaulted string `json:"lacppartnerdefaulted,omitempty"` + Lacppartnerexpired string `json:"lacppartnerexpired,omitempty"` + Lacppartnerpriority string `json:"lacppartnerpriority,omitempty"` + Lacppartnersystemmac string `json:"lacppartnersystemmac,omitempty"` Lacppartnersystempriority string `json:"lacppartnersystempriority,omitempty"` - Lacppartnerportno string `json:"lacppartnerportno,omitempty"` - Lacppartnerkey string `json:"lacppartnerkey,omitempty"` - Lacpactoraggregation string `json:"lacpactoraggregation,omitempty"` - Lacpactorinsync string `json:"lacpactorinsync,omitempty"` - Lacpactorcollecting string `json:"lacpactorcollecting,omitempty"` - Lacpactordistributing string `json:"lacpactordistributing,omitempty"` - Lacpportmuxstate string `json:"lacpportmuxstate,omitempty"` - Lacpportrxstat string `json:"lacpportrxstat,omitempty"` - Lacpportselectstate string `json:"lacpportselectstate,omitempty"` - Lractiveintf string `json:"lractiveintf,omitempty"` - + Lacppartnerportno string `json:"lacppartnerportno,omitempty"` + Lacppartnerkey string `json:"lacppartnerkey,omitempty"` + Lacpactoraggregation string `json:"lacpactoraggregation,omitempty"` + Lacpactorinsync string `json:"lacpactorinsync,omitempty"` + Lacpactorcollecting string `json:"lacpactorcollecting,omitempty"` + Lacpactordistributing string `json:"lacpactordistributing,omitempty"` + Lacpportmuxstate string `json:"lacpportmuxstate,omitempty"` + Lacpportrxstat string `json:"lacpportrxstat,omitempty"` + Lacpportselectstate string `json:"lacpportselectstate,omitempty"` + Lractiveintf string `json:"lractiveintf,omitempty"` } diff --git a/resource/config/aaa/aaacertparams.go b/resource/config/aaacertparams.go similarity index 95% rename from resource/config/aaa/aaacertparams.go rename to resource/config/aaacertparams.go index ceff573..4b6d308 100644 --- a/resource/config/aaa/aaacertparams.go +++ b/resource/config/aaacertparams.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for certificate parameter resource. -*/ + */ type Aaacertparams struct { /** - * Client certificate field that contains the username, in the format :. - */ + * Client certificate field that contains the username, in the format :. + */ Usernamefield string `json:"usernamefield,omitempty"` /** * Client certificate field that specifies the group, in the format :. - */ + */ Groupnamefield string `json:"groupnamefield,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` //------- Read only Parameter ---------; Twofactor string `json:"twofactor,omitempty"` - } diff --git a/resource/config/aaa/aaaglobal_aaapreauthenticationpolicy_binding.go b/resource/config/aaaglobal_aaapreauthenticationpolicy_binding.go similarity index 96% rename from resource/config/aaa/aaaglobal_aaapreauthenticationpolicy_binding.go rename to resource/config/aaaglobal_aaapreauthenticationpolicy_binding.go index 8a81b4a..e24da41 100644 --- a/resource/config/aaa/aaaglobal_aaapreauthenticationpolicy_binding.go +++ b/resource/config/aaaglobal_aaapreauthenticationpolicy_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the aaapreauthenticationpolicy that can be bound to aaaglobal. -*/ + */ type Aaaglobalaaapreauthenticationpolicybinding struct { /** * Name of the policy to be unbound. - */ + */ Policy string `json:"policy,omitempty"` /** * Priority of the bound policy - */ + */ Priority int `json:"priority,omitempty"` /** * Bound policy type - */ + */ Bindpolicytype int `json:"bindpolicytype,omitempty"` /** * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. - */ + */ Builtin []string `json:"builtin,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaaglobal_authenticationnegotiateaction_binding.go b/resource/config/aaaglobal_authenticationnegotiateaction_binding.go similarity index 96% rename from resource/config/aaa/aaaglobal_authenticationnegotiateaction_binding.go rename to resource/config/aaaglobal_authenticationnegotiateaction_binding.go index 364beb9..3f25117 100644 --- a/resource/config/aaa/aaaglobal_authenticationnegotiateaction_binding.go +++ b/resource/config/aaaglobal_authenticationnegotiateaction_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the authenticationnegotiateaction that can be bound to aaaglobal. -*/ + */ type Aaaglobalauthenticationnegotiateactionbinding struct { /** * Name of the negotiate profile to be bound. - */ + */ Windowsprofile string `json:"windowsprofile,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaaglobal_binding.go b/resource/config/aaaglobal_binding.go similarity index 95% rename from resource/config/aaa/aaaglobal_binding.go rename to resource/config/aaaglobal_binding.go index d993435..a29a4de 100644 --- a/resource/config/aaa/aaaglobal_binding.go +++ b/resource/config/aaaglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** -* Binding object which returns the resources bound to aaaglobal_binding. -*/ +* Binding object which returns the resources bound to aaaglobal_binding. + */ type Aaaglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaaglobal_negotiateaction_binding.go b/resource/config/aaaglobal_negotiateaction_binding.go similarity index 96% rename from resource/config/aaa/aaaglobal_negotiateaction_binding.go rename to resource/config/aaaglobal_negotiateaction_binding.go index e97df26..af5c6f7 100644 --- a/resource/config/aaa/aaaglobal_negotiateaction_binding.go +++ b/resource/config/aaaglobal_negotiateaction_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the negotiateaction that can be bound to aaaglobal. -*/ + */ type Aaaglobalnegotiateactionbinding struct { /** * Name of the negotiate profile to be bound. - */ + */ Windowsprofile string `json:"windowsprofile,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaaglobal_preauthenticationpolicy_binding.go b/resource/config/aaaglobal_preauthenticationpolicy_binding.go similarity index 96% rename from resource/config/aaa/aaaglobal_preauthenticationpolicy_binding.go rename to resource/config/aaaglobal_preauthenticationpolicy_binding.go index db0046d..cb2730a 100644 --- a/resource/config/aaa/aaaglobal_preauthenticationpolicy_binding.go +++ b/resource/config/aaaglobal_preauthenticationpolicy_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the preauthenticationpolicy that can be bound to aaaglobal. -*/ + */ type Aaaglobalpreauthenticationpolicybinding struct { /** * Name of the policy to be unbound. - */ + */ Policy string `json:"policy,omitempty"` /** * Priority of the bound policy - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Bound policy type - */ + */ Bindpolicytype uint32 `json:"bindpolicytype,omitempty"` /** * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. - */ + */ Builtin []string `json:"builtin,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup.go b/resource/config/aaagroup.go similarity index 97% rename from resource/config/aaa/aaagroup.go rename to resource/config/aaagroup.go index 59ce865..7b01118 100644 --- a/resource/config/aaa/aaagroup.go +++ b/resource/config/aaagroup.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for AAA group resource. -*/ + */ type Aaagroup struct { /** * Name for the group. Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the group is added. @@ -29,11 +29,10 @@ type Aaagroup struct { Groupname string `json:"groupname,omitempty"` /** * Weight of this group with respect to other configured aaa groups (lower the number higher the weight) - */ + */ Weight int `json:"weight,omitempty"` /** * Display only the group members who are currently logged in. If there are large number of sessions, this command may provide partial details. - */ + */ Loggedin bool `json:"loggedin,omitempty"` - } diff --git a/resource/config/aaa/aaagroup_aaauser_binding.go b/resource/config/aaagroup_aaauser_binding.go similarity index 98% rename from resource/config/aaa/aaagroup_aaauser_binding.go rename to resource/config/aaagroup_aaauser_binding.go index e3ee0b1..96c7826 100644 --- a/resource/config/aaa/aaagroup_aaauser_binding.go +++ b/resource/config/aaagroup_aaauser_binding.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the aaauser that can be bound to aaagroup. -*/ + */ type Aaagroupaaauserbinding struct { /** * The user name. - */ + */ Username string `json:"username,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -44,6 +44,4 @@ type Aaagroupaaauserbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_auditnslogpolicy_binding.go b/resource/config/aaagroup_auditnslogpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_auditnslogpolicy_binding.go rename to resource/config/aaagroup_auditnslogpolicy_binding.go index 5f08adc..53e6e24 100644 --- a/resource/config/aaa/aaagroup_auditnslogpolicy_binding.go +++ b/resource/config/aaagroup_auditnslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the auditnslogpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupauditnslogpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaagroupauditnslogpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_auditsyslogpolicy_binding.go b/resource/config/aaagroup_auditsyslogpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_auditsyslogpolicy_binding.go rename to resource/config/aaagroup_auditsyslogpolicy_binding.go index 3cacac8..b209dc4 100644 --- a/resource/config/aaa/aaagroup_auditsyslogpolicy_binding.go +++ b/resource/config/aaagroup_auditsyslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the auditsyslogpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupauditsyslogpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaagroupauditsyslogpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_authorizationpolicy_binding.go b/resource/config/aaagroup_authorizationpolicy_binding.go similarity index 94% rename from resource/config/aaa/aaagroup_authorizationpolicy_binding.go rename to resource/config/aaagroup_authorizationpolicy_binding.go index 73a9420..2dc7b56 100644 --- a/resource/config/aaa/aaagroup_authorizationpolicy_binding.go +++ b/resource/config/aaagroup_authorizationpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the authorizationpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupauthorizationpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_binding.go b/resource/config/aaagroup_binding.go similarity index 90% rename from resource/config/aaa/aaagroup_binding.go rename to resource/config/aaagroup_binding.go index bd13c1c..07c2522 100644 --- a/resource/config/aaa/aaagroup_binding.go +++ b/resource/config/aaagroup_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** -* Binding object which returns the resources bound to aaagroup_binding. -*/ +* Binding object which returns the resources bound to aaagroup_binding. + */ type Aaagroupbinding struct { /** - * Name of the group.
Minimum value = - */ + * Name of the group.
Minimum value = + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_intranetapplication_binding.go b/resource/config/aaagroup_intranetapplication_binding.go similarity index 96% rename from resource/config/aaa/aaagroup_intranetapplication_binding.go rename to resource/config/aaagroup_intranetapplication_binding.go index 30edcf2..4d63eb5 100644 --- a/resource/config/aaa/aaagroup_intranetapplication_binding.go +++ b/resource/config/aaagroup_intranetapplication_binding.go @@ -12,22 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the intranetapplication that can be bound to aaagroup. -*/ + */ type Aaagroupintranetapplicationbinding struct { /** * Bind the group to the specified intranet VPN application. - */ + */ Intranetapplication string `json:"intranetapplication,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -45,6 +45,4 @@ type Aaagroupintranetapplicationbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_intranetip6_binding.go b/resource/config/aaagroup_intranetip6_binding.go similarity index 98% rename from resource/config/aaa/aaagroup_intranetip6_binding.go rename to resource/config/aaagroup_intranetip6_binding.go index 31cfb6f..08349b2 100644 --- a/resource/config/aaa/aaagroup_intranetip6_binding.go +++ b/resource/config/aaagroup_intranetip6_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the intranetip6 that can be bound to aaagroup. -*/ + */ type Aaagroupintranetip6binding struct { /** * The Intranet IP6(s) bound to the group - */ + */ Intranetip6 string `json:"intranetip6,omitempty"` /** * Numbers of ipv6 address bound starting with intranetip6 - */ + */ Numaddr int `json:"numaddr,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -48,6 +48,4 @@ type Aaagroupintranetip6binding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_intranetip_binding.go b/resource/config/aaagroup_intranetip_binding.go similarity index 98% rename from resource/config/aaa/aaagroup_intranetip_binding.go rename to resource/config/aaagroup_intranetip_binding.go index e216e9b..1618fb0 100644 --- a/resource/config/aaa/aaagroup_intranetip_binding.go +++ b/resource/config/aaagroup_intranetip_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the intranetip that can be bound to aaagroup. -*/ + */ type Aaagroupintranetipbinding struct { /** * The Intranet IP(s) bound to the group - */ + */ Intranetip string `json:"intranetip,omitempty"` /** * The netmask for the Intranet IP - */ + */ Netmask string `json:"netmask,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -48,6 +48,4 @@ type Aaagroupintranetipbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_nslogpolicy_binding.go b/resource/config/aaagroup_nslogpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_nslogpolicy_binding.go rename to resource/config/aaagroup_nslogpolicy_binding.go index 3945e25..3d078e6 100644 --- a/resource/config/aaa/aaagroup_nslogpolicy_binding.go +++ b/resource/config/aaagroup_nslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the nslogpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupnslogpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaagroupnslogpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_policy_binding.go b/resource/config/aaagroup_policy_binding.go similarity index 93% rename from resource/config/aaa/aaagroup_policy_binding.go rename to resource/config/aaagroup_policy_binding.go index d7caa99..92a5e20 100644 --- a/resource/config/aaa/aaagroup_policy_binding.go +++ b/resource/config/aaagroup_policy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the policy that can be bound to aaagroup. -*/ + */ type Aaagrouppolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_sessionpolicy_binding.go b/resource/config/aaagroup_sessionpolicy_binding.go similarity index 94% rename from resource/config/aaa/aaagroup_sessionpolicy_binding.go rename to resource/config/aaagroup_sessionpolicy_binding.go index 9a7775f..7d59c3d 100644 --- a/resource/config/aaa/aaagroup_sessionpolicy_binding.go +++ b/resource/config/aaagroup_sessionpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the sessionpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupsessionpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_syslogpolicy_binding.go b/resource/config/aaagroup_syslogpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_syslogpolicy_binding.go rename to resource/config/aaagroup_syslogpolicy_binding.go index f27df15..b6b3cb8 100644 --- a/resource/config/aaa/aaagroup_syslogpolicy_binding.go +++ b/resource/config/aaagroup_syslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the syslogpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupsyslogpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaagroupsyslogpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_tmsessionpolicy_binding.go b/resource/config/aaagroup_tmsessionpolicy_binding.go similarity index 94% rename from resource/config/aaa/aaagroup_tmsessionpolicy_binding.go rename to resource/config/aaagroup_tmsessionpolicy_binding.go index 456162d..5162231 100644 --- a/resource/config/aaa/aaagroup_tmsessionpolicy_binding.go +++ b/resource/config/aaagroup_tmsessionpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the tmsessionpolicy that can be bound to aaagroup. -*/ + */ type Aaagrouptmsessionpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_trafficpolicy_binding.go b/resource/config/aaagroup_trafficpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_trafficpolicy_binding.go rename to resource/config/aaagroup_trafficpolicy_binding.go index 9a29e67..e8cd8ab 100644 --- a/resource/config/aaa/aaagroup_trafficpolicy_binding.go +++ b/resource/config/aaagroup_trafficpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the trafficpolicy that can be bound to aaagroup. -*/ + */ type Aaagrouptrafficpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaagrouptrafficpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_url_binding.go b/resource/config/aaagroup_url_binding.go similarity index 98% rename from resource/config/aaa/aaagroup_url_binding.go rename to resource/config/aaagroup_url_binding.go index fc90baf..b187372 100644 --- a/resource/config/aaa/aaagroup_url_binding.go +++ b/resource/config/aaagroup_url_binding.go @@ -12,22 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the url that can be bound to aaagroup. -*/ + */ type Aaagroupurlbinding struct { /** * The intranet url - */ + */ Urlname string `json:"urlname,omitempty"` Acttype uint32 `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -45,6 +45,4 @@ type Aaagroupurlbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_urlpolicy_binding.go b/resource/config/aaagroup_urlpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_urlpolicy_binding.go rename to resource/config/aaagroup_urlpolicy_binding.go index 4040c67..42b8923 100644 --- a/resource/config/aaa/aaagroup_urlpolicy_binding.go +++ b/resource/config/aaagroup_urlpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the urlpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupurlpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaagroupurlpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_user_binding.go b/resource/config/aaagroup_user_binding.go similarity index 98% rename from resource/config/aaa/aaagroup_user_binding.go rename to resource/config/aaagroup_user_binding.go index 200b1cc..d45ca43 100644 --- a/resource/config/aaa/aaagroup_user_binding.go +++ b/resource/config/aaagroup_user_binding.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the user that can be bound to aaagroup. -*/ + */ type Aaagroupuserbinding struct { /** * The user name. - */ + */ Username string `json:"username,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -44,6 +44,4 @@ type Aaagroupuserbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_vpnintranetapplication_binding.go b/resource/config/aaagroup_vpnintranetapplication_binding.go similarity index 96% rename from resource/config/aaa/aaagroup_vpnintranetapplication_binding.go rename to resource/config/aaagroup_vpnintranetapplication_binding.go index 3304b62..0c87f6d 100644 --- a/resource/config/aaa/aaagroup_vpnintranetapplication_binding.go +++ b/resource/config/aaagroup_vpnintranetapplication_binding.go @@ -12,22 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnintranetapplication that can be bound to aaagroup. -*/ + */ type Aaagroupvpnintranetapplicationbinding struct { /** * Bind the group to the specified intranet VPN application. - */ + */ Intranetapplication string `json:"intranetapplication,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -45,6 +45,4 @@ type Aaagroupvpnintranetapplicationbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_vpnsessionpolicy_binding.go b/resource/config/aaagroup_vpnsessionpolicy_binding.go similarity index 94% rename from resource/config/aaa/aaagroup_vpnsessionpolicy_binding.go rename to resource/config/aaagroup_vpnsessionpolicy_binding.go index 5590ab0..51df308 100644 --- a/resource/config/aaa/aaagroup_vpnsessionpolicy_binding.go +++ b/resource/config/aaagroup_vpnsessionpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnsessionpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupvpnsessionpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_vpntrafficpolicy_binding.go b/resource/config/aaagroup_vpntrafficpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_vpntrafficpolicy_binding.go rename to resource/config/aaagroup_vpntrafficpolicy_binding.go index 8286f2f..9f588b2 100644 --- a/resource/config/aaa/aaagroup_vpntrafficpolicy_binding.go +++ b/resource/config/aaagroup_vpntrafficpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpntrafficpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupvpntrafficpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaagroupvpntrafficpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_vpnurl_binding.go b/resource/config/aaagroup_vpnurl_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_vpnurl_binding.go rename to resource/config/aaagroup_vpnurl_binding.go index 2472e6c..10aad34 100644 --- a/resource/config/aaa/aaagroup_vpnurl_binding.go +++ b/resource/config/aaagroup_vpnurl_binding.go @@ -12,22 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnurl that can be bound to aaagroup. -*/ + */ type Aaagroupvpnurlbinding struct { /** * The intranet url - */ + */ Urlname string `json:"urlname,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -45,6 +45,4 @@ type Aaagroupvpnurlbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaagroup_vpnurlpolicy_binding.go b/resource/config/aaagroup_vpnurlpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaagroup_vpnurlpolicy_binding.go rename to resource/config/aaagroup_vpnurlpolicy_binding.go index a255160..355eda2 100644 --- a/resource/config/aaa/aaagroup_vpnurlpolicy_binding.go +++ b/resource/config/aaagroup_vpnurlpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnurlpolicy that can be bound to aaagroup. -*/ + */ type Aaagroupvpnurlpolicybinding struct { /** * The policy name. - */ + */ Policy string `json:"policy,omitempty"` /** * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies is 64000. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Name of the group that you are binding. - */ + */ Groupname string `json:"groupname,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaagroupvpnurlpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaakcdaccount.go b/resource/config/aaakcdaccount.go similarity index 94% rename from resource/config/aaa/aaakcdaccount.go rename to resource/config/aaakcdaccount.go index 13535f2..ecf58c3 100644 --- a/resource/config/aaa/aaakcdaccount.go +++ b/resource/config/aaakcdaccount.go @@ -12,58 +12,57 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for Kerberos constrained delegation account resource. -*/ + */ type Aaakcdaccount struct { /** * The name of the KCD account. - */ + */ Kcdaccount string `json:"kcdaccount,omitempty"` /** * The path to the keytab file. If specified other parameters in this command need not be given - */ + */ Keytab string `json:"keytab,omitempty"` /** * Kerberos Realm. - */ + */ Realmstr string `json:"realmstr,omitempty"` /** * Username that can perform kerberos constrained delegation. - */ + */ Delegateduser string `json:"delegateduser,omitempty"` /** * Password for Delegated User. - */ + */ Kcdpassword string `json:"kcdpassword,omitempty"` /** * SSL Cert (including private key) for Delegated User. - */ + */ Usercert string `json:"usercert,omitempty"` /** * CA Cert for UserCert or when doing PKINIT backchannel. - */ + */ Cacert string `json:"cacert,omitempty"` /** * Realm of the user - */ + */ Userrealm string `json:"userrealm,omitempty"` /** * Enterprise Realm of the user. This should be given only in certain KDC deployments where KDC expects Enterprise username instead of Principal Name - */ + */ Enterpriserealm string `json:"enterpriserealm,omitempty"` /** * Service SPN. When specified, this will be used to fetch kerberos tickets. If not specified, Citrix ADC will construct SPN using service fqdn - */ + */ Servicespn string `json:"servicespn,omitempty"` //------- Read only Parameter ---------; Principle string `json:"principle,omitempty"` - Kcdspn string `json:"kcdspn,omitempty"` - + Kcdspn string `json:"kcdspn,omitempty"` } diff --git a/resource/config/aaa/aaaldapparams.go b/resource/config/aaaldapparams.go similarity index 92% rename from resource/config/aaa/aaaldapparams.go rename to resource/config/aaaldapparams.go index 7cbe467..430452b 100644 --- a/resource/config/aaa/aaaldapparams.go +++ b/resource/config/aaaldapparams.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for LDAP parameter resource. -*/ + */ type Aaaldapparams struct { /** * IP address of your LDAP server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port number on which the LDAP server listens for connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Maximum number of seconds that the Citrix ADC waits for a response from the LDAP server. - */ + */ Authtimeout int `json:"authtimeout,omitempty"` /** - * Base (the server and location) from which LDAP search commands should start. + * Base (the server and location) from which LDAP search commands should start. If the LDAP server is running locally, the default value of base is dc=netscaler, dc=com. */ Ldapbase string `json:"ldapbase,omitempty"` /** * Complete distinguished name (DN) string used for binding to the LDAP server. - */ + */ Ldapbinddn string `json:"ldapbinddn,omitempty"` /** * Password for binding to the LDAP server. - */ + */ Ldapbinddnpassword string `json:"ldapbinddnpassword,omitempty"` /** * Name attribute that the Citrix ADC uses to query the external LDAP server or an Active Directory. - */ + */ Ldaploginname string `json:"ldaploginname,omitempty"` /** - * String to be combined with the default LDAP user search string to form the value to use when executing an LDAP search. + * String to be combined with the default LDAP user search string to form the value to use when executing an LDAP search. For example, the following values: vpnallowed=true, ldaploginame=""samaccount"" @@ -60,62 +60,61 @@ type Aaaldapparams struct { Searchfilter string `json:"searchfilter,omitempty"` /** * Attribute name used for group extraction from the LDAP server. - */ + */ Groupattrname string `json:"groupattrname,omitempty"` /** * Subattribute name used for group extraction from the LDAP server. - */ + */ Subattributename string `json:"subattributename,omitempty"` /** * Type of security used for communications between the Citrix ADC and the LDAP server. For the PLAINTEXT setting, no encryption is required. - */ + */ Sectype string `json:"sectype,omitempty"` /** * The type of LDAP server. - */ + */ Svrtype string `json:"svrtype,omitempty"` /** - * Attribute used by the Citrix ADC to query an external LDAP server or Active Directory for an alternative username. + * Attribute used by the Citrix ADC to query an external LDAP server or Active Directory for an alternative username. This alternative username is then used for single sign-on (SSO). */ Ssonameattribute string `json:"ssonameattribute,omitempty"` /** * Accept password change requests. - */ + */ Passwdchange string `json:"passwdchange,omitempty"` /** * Queries the external LDAP server to determine whether the specified group belongs to another group. - */ + */ Nestedgroupextraction string `json:"nestedgroupextraction,omitempty"` /** * Number of levels up to which the system can query nested LDAP groups. - */ + */ Maxnestinglevel int `json:"maxnestinglevel,omitempty"` /** * LDAP-group attribute that uniquely identifies the group. No two groups on one LDAP server can have the same group name identifier. - */ + */ Groupnameidentifier string `json:"groupnameidentifier,omitempty"` /** * LDAP-group attribute that designates the parent group of the specified group. Use this attribute to search for a group's parent group. - */ + */ Groupsearchattribute string `json:"groupsearchattribute,omitempty"` /** * LDAP-group subattribute that designates the parent group of the specified group. Use this attribute to search for a group's parent group. - */ + */ Groupsearchsubattribute string `json:"groupsearchsubattribute,omitempty"` /** * Search-expression that can be specified for sending group-search requests to the LDAP server. - */ + */ Groupsearchfilter string `json:"groupsearchfilter,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` //------- Read only Parameter ---------; Groupauthname string `json:"groupauthname,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/aaa/aaaotpparameter.go b/resource/config/aaaotpparameter.go similarity index 96% rename from resource/config/aaa/aaaotpparameter.go rename to resource/config/aaaotpparameter.go index a02ded3..66e1e22 100644 --- a/resource/config/aaa/aaaotpparameter.go +++ b/resource/config/aaaotpparameter.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for AAA otpparameter resource. -*/ + */ type Aaaotpparameter struct { /** * To encrypt otp secret in AD or not. Default value is OFF - */ + */ Encryption string `json:"encryption,omitempty"` /** * Maximum number of otp devices user can register. Default value is 4. Max value is 255 - */ + */ Maxotpdevices int `json:"maxotpdevices,omitempty"` - } diff --git a/resource/config/aaa/aaaparameter.go b/resource/config/aaaparameter.go similarity index 95% rename from resource/config/aaa/aaaparameter.go rename to resource/config/aaaparameter.go index 9cc759c..99596e9 100644 --- a/resource/config/aaa/aaaparameter.go +++ b/resource/config/aaaparameter.go @@ -12,49 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for AAA parameter resource. -*/ + */ type Aaaparameter struct { /** * The default state of VPN Static Page caching. If nothing is specified, the default value is set to YES. - */ + */ Enablestaticpagecaching string `json:"enablestaticpagecaching,omitempty"` /** * Enhanced auth feedback provides more information to the end user about the reason for an authentication failure. The default value is set to NO. - */ + */ Enableenhancedauthfeedback string `json:"enableenhancedauthfeedback,omitempty"` /** * The default authentication server type. - */ + */ Defaultauthtype string `json:"defaultauthtype,omitempty"` /** * Maximum number of concurrent users allowed to log on to VPN simultaneously. - */ + */ Maxaaausers int `json:"maxaaausers,omitempty"` /** * Maximum Number of login Attempts - */ + */ Maxloginattempts int `json:"maxloginattempts,omitempty"` /** * Number of minutes an account will be locked if user exceeds maximum permissible attempts - */ + */ Failedlogintimeout int `json:"failedlogintimeout,omitempty"` /** * Source IP address to use for traffic that is sent to the authentication server. - */ + */ Aaadnatip string `json:"aaadnatip,omitempty"` /** * Enables/Disables stickiness to authentication servers - */ + */ Enablesessionstickiness string `json:"enablesessionstickiness,omitempty"` /** - * Audit log level, which specifies the types of events to log for cli executed commands. - Available values function as follows: + * Audit log level, which specifies the types of events to log for cli executed commands. + Available values function as follows: * EMERGENCY - Events that indicate an immediate crisis on the server. * ALERT - Events that might require action. * CRITICAL - Events that indicate an imminent server crisis. @@ -66,8 +66,8 @@ type Aaaparameter struct { */ Aaasessionloglevel string `json:"aaasessionloglevel,omitempty"` /** - * AAAD log level, which specifies the types of AAAD events to log in nsvpn.log. - Available values function as follows: + * AAAD log level, which specifies the types of AAAD events to log in nsvpn.log. + Available values function as follows: * EMERGENCY - Events that indicate an immediate crisis on the server. * ALERT - Events that might require action. * CRITICAL - Events that indicate an imminent server crisis. @@ -80,52 +80,51 @@ type Aaaparameter struct { Aaadloglevel string `json:"aaadloglevel,omitempty"` /** * Set by the DHCP client when the IP address was fetched dynamically. - */ + */ Dynaddr string `json:"dynaddr,omitempty"` /** * First time user mode determines which configuration options are shown by default when logging in to the GUI. This setting is controlled by the GUI. - */ + */ Ftmode string `json:"ftmode,omitempty"` /** * This will set the maximum deflate size in case of SAML Redirect binding. - */ + */ Maxsamldeflatesize int `json:"maxsamldeflatesize,omitempty"` /** * Persistent storage of unsuccessful user login attempts - */ + */ Persistentloginattempts string `json:"persistentloginattempts,omitempty"` /** * This will set the threshold time in days for password expiry notification. Default value is 0, which means no notification is sent - */ + */ Pwdexpirynotificationdays int `json:"pwdexpirynotificationdays,omitempty"` /** * This will set maximum number of Questions to be asked for KB Validation. Default value is 2, Max Value is 6 - */ + */ Maxkbquestions int `json:"maxkbquestions,omitempty"` /** * Parameter to encrypt login information for nFactor flow - */ + */ Loginencryption string `json:"loginencryption,omitempty"` /** * SameSite attribute value for Cookies generated in AAATM context. This attribute value will be appended only for the cookies which are specified in the builtin patset ns_cookies_samesite - */ + */ Samesite string `json:"samesite,omitempty"` /** * Option to enable/disable API cache feature. - */ + */ Apitokencache string `json:"apitokencache,omitempty"` /** * Frequency at which a token must be verified at the Authorization Server (AS) despite being found in cache. - */ + */ Tokenintrospectioninterval int `json:"tokenintrospectioninterval,omitempty"` /** * Parameter to enable/disable default CSP header - */ + */ Defaultcspheader string `json:"defaultcspheader,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/aaa/aaapreauthenticationaction.go b/resource/config/aaapreauthenticationaction.go similarity index 97% rename from resource/config/aaa/aaapreauthenticationaction.go rename to resource/config/aaapreauthenticationaction.go index ede7a75..487f9ae 100644 --- a/resource/config/aaa/aaapreauthenticationaction.go +++ b/resource/config/aaapreauthenticationaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for pre authentication action resource. -*/ + */ type Aaapreauthenticationaction struct { /** * Name for the preauthentication action. Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after preauthentication action is created. @@ -28,24 +28,23 @@ type Aaapreauthenticationaction struct { Name string `json:"name,omitempty"` /** * Allow or deny logon after endpoint analysis (EPA) results. - */ + */ Preauthenticationaction string `json:"preauthenticationaction,omitempty"` /** * String specifying the name of a process to be terminated by the endpoint analysis (EPA) tool. - */ + */ Killprocess string `json:"killprocess,omitempty"` /** * String specifying the path(s) and name(s) of the files to be deleted by the endpoint analysis (EPA) tool. - */ + */ Deletefiles string `json:"deletefiles,omitempty"` /** * This is the default group that is chosen when the EPA check succeeds. - */ + */ Defaultepagroup string `json:"defaultepagroup,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/aaa/aaapreauthenticationparameter.go b/resource/config/aaapreauthenticationparameter.go similarity index 97% rename from resource/config/aaa/aaapreauthenticationparameter.go rename to resource/config/aaapreauthenticationparameter.go index 0331519..4111814 100644 --- a/resource/config/aaa/aaapreauthenticationparameter.go +++ b/resource/config/aaapreauthenticationparameter.go @@ -12,34 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for pre authentication parameter resource. -*/ + */ type Aaapreauthenticationparameter struct { /** * Deny or allow login on the basis of end point analysis results. - */ + */ Preauthenticationaction string `json:"preauthenticationaction,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, to be evaluated by the EPA tool. - */ + */ Rule string `json:"rule,omitempty"` /** * String specifying the name of a process to be terminated by the EPA tool. - */ + */ Killprocess string `json:"killprocess,omitempty"` /** * String specifying the path(s) to and name(s) of the files to be deleted by the EPA tool, as a string of between 1 and 1023 characters. - */ + */ Deletefiles string `json:"deletefiles,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/aaa/aaapreauthenticationpolicy.go b/resource/config/aaapreauthenticationpolicy.go similarity index 95% rename from resource/config/aaa/aaapreauthenticationpolicy.go rename to resource/config/aaapreauthenticationpolicy.go index 1c6d63c..c2996e6 100644 --- a/resource/config/aaa/aaapreauthenticationpolicy.go +++ b/resource/config/aaapreauthenticationpolicy.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for pre authentication policy resource. -*/ + */ type Aaapreauthenticationpolicy struct { /** * Name for the preauthentication policy. Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the preauthentication policy is created. @@ -28,17 +28,16 @@ type Aaapreauthenticationpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, defining connections that match the policy. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the action that the policy is to invoke when a connection matches the policy. - */ + */ Reqaction string `json:"reqaction,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/aaa/aaapreauthenticationpolicy_aaaglobal_binding.go b/resource/config/aaapreauthenticationpolicy_aaaglobal_binding.go similarity index 83% rename from resource/config/aaa/aaapreauthenticationpolicy_aaaglobal_binding.go rename to resource/config/aaapreauthenticationpolicy_aaaglobal_binding.go index a76c0c4..ac35fc6 100644 --- a/resource/config/aaa/aaapreauthenticationpolicy_aaaglobal_binding.go +++ b/resource/config/aaapreauthenticationpolicy_aaaglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the aaaglobal that can be bound to aaapreauthenticationpolicy. -*/ + */ type Aaapreauthenticationpolicyaaaglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the preauthentication policy whose properties you want to view. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaapreauthenticationpolicy_binding.go b/resource/config/aaapreauthenticationpolicy_binding.go similarity index 90% rename from resource/config/aaa/aaapreauthenticationpolicy_binding.go rename to resource/config/aaapreauthenticationpolicy_binding.go index 9d2f42d..5fc241e 100644 --- a/resource/config/aaa/aaapreauthenticationpolicy_binding.go +++ b/resource/config/aaapreauthenticationpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** -* Binding object which returns the resources bound to aaapreauthenticationpolicy_binding. -*/ +* Binding object which returns the resources bound to aaapreauthenticationpolicy_binding. + */ type Aaapreauthenticationpolicybinding struct { /** - * Name of the preauthentication policy whose properties you want to view.
Minimum value = - */ + * Name of the preauthentication policy whose properties you want to view.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaapreauthenticationpolicy_global_binding.go b/resource/config/aaapreauthenticationpolicy_global_binding.go similarity index 88% rename from resource/config/aaa/aaapreauthenticationpolicy_global_binding.go rename to resource/config/aaapreauthenticationpolicy_global_binding.go index d986cf7..0628705 100644 --- a/resource/config/aaa/aaapreauthenticationpolicy_global_binding.go +++ b/resource/config/aaapreauthenticationpolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the global that can be bound to aaapreauthenticationpolicy. -*/ + */ type Aaapreauthenticationpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the preauthentication policy whose properties you want to view. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaapreauthenticationpolicy_vpnvserver_binding.go b/resource/config/aaapreauthenticationpolicy_vpnvserver_binding.go similarity index 83% rename from resource/config/aaa/aaapreauthenticationpolicy_vpnvserver_binding.go rename to resource/config/aaapreauthenticationpolicy_vpnvserver_binding.go index a9d7989..1b55379 100644 --- a/resource/config/aaa/aaapreauthenticationpolicy_vpnvserver_binding.go +++ b/resource/config/aaapreauthenticationpolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnvserver that can be bound to aaapreauthenticationpolicy. -*/ + */ type Aaapreauthenticationpolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the preauthentication policy whose properties you want to view. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaapreauthenticationpolicy_vserver_binding.go b/resource/config/aaapreauthenticationpolicy_vserver_binding.go similarity index 88% rename from resource/config/aaa/aaapreauthenticationpolicy_vserver_binding.go rename to resource/config/aaapreauthenticationpolicy_vserver_binding.go index 304f3e1..0f8c113 100644 --- a/resource/config/aaa/aaapreauthenticationpolicy_vserver_binding.go +++ b/resource/config/aaapreauthenticationpolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vserver that can be bound to aaapreauthenticationpolicy. -*/ + */ type Aaapreauthenticationpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the preauthentication policy whose properties you want to view. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaaradiusparams.go b/resource/config/aaaradiusparams.go similarity index 91% rename from resource/config/aaa/aaaradiusparams.go rename to resource/config/aaaradiusparams.go index 00227d7..ca39745 100644 --- a/resource/config/aaa/aaaradiusparams.go +++ b/resource/config/aaaradiusparams.go @@ -12,106 +12,105 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for RADIUS parameter resource. -*/ + */ type Aaaradiusparams struct { /** * IP address of your RADIUS server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port number on which the RADIUS server listens for connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Maximum number of seconds that the Citrix ADC waits for a response from the RADIUS server. - */ + */ Authtimeout int `json:"authtimeout,omitempty"` /** - * The key shared between the RADIUS server and clients. + * The key shared between the RADIUS server and clients. Required for allowing the Citrix ADC to communicate with the RADIUS server. */ Radkey string `json:"radkey,omitempty"` /** * Send the Citrix ADC IP (NSIP) address to the RADIUS server as the Network Access Server IP (NASIP) part of the Radius protocol. - */ + */ Radnasip string `json:"radnasip,omitempty"` /** * Send the Network Access Server ID (NASID) for your Citrix ADC to the RADIUS server as the nasid part of the Radius protocol. - */ + */ Radnasid string `json:"radnasid,omitempty"` /** * Vendor ID for RADIUS group extraction. - */ + */ Radvendorid int `json:"radvendorid,omitempty"` /** * Attribute type for RADIUS group extraction. - */ + */ Radattributetype int `json:"radattributetype,omitempty"` /** * Prefix string that precedes group names within a RADIUS attribute for RADIUS group extraction. - */ + */ Radgroupsprefix string `json:"radgroupsprefix,omitempty"` /** * Group separator string that delimits group names within a RADIUS attribute for RADIUS group extraction. - */ + */ Radgroupseparator string `json:"radgroupseparator,omitempty"` /** * Enable password encoding in RADIUS packets that the Citrix ADC sends to the RADIUS server. - */ + */ Passencoding string `json:"passencoding,omitempty"` /** - * Vendor ID attribute in the RADIUS response. + * Vendor ID attribute in the RADIUS response. If the attribute is not vendor-encoded, it is set to 0. */ Ipvendorid int `json:"ipvendorid,omitempty"` /** * IP attribute type in the RADIUS response. - */ + */ Ipattributetype int `json:"ipattributetype,omitempty"` /** * Configure the RADIUS server state to accept or refuse accounting messages. - */ + */ Accounting string `json:"accounting,omitempty"` /** * Vendor ID of the password in the RADIUS response. Used to extract the user password. - */ + */ Pwdvendorid int `json:"pwdvendorid,omitempty"` /** * Attribute type of the Vendor ID in the RADIUS response. - */ + */ Pwdattributetype int `json:"pwdattributetype,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Send Calling-Station-ID of the client to the RADIUS server. IP Address of the client is sent as its Calling-Station-ID. - */ + */ Callingstationid string `json:"callingstationid,omitempty"` /** * Number of retry by the Citrix ADC before getting response from the RADIUS server. - */ + */ Authservretry int `json:"authservretry,omitempty"` /** * Configure the RADIUS server state to accept or refuse authentication messages. - */ + */ Authentication string `json:"authentication,omitempty"` /** * Send Tunnel Endpoint Client IP address to the RADIUS server. - */ + */ Tunnelendpointclientip string `json:"tunnelendpointclientip,omitempty"` //------- Read only Parameter ---------; Groupauthname string `json:"groupauthname,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Ipaddress string `json:"ipaddress,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/aaa/aaasession.go b/resource/config/aaasession.go similarity index 75% rename from resource/config/aaa/aaasession.go rename to resource/config/aaasession.go index 278abdf..d2a006a 100644 --- a/resource/config/aaa/aaasession.go +++ b/resource/config/aaasession.go @@ -12,55 +12,54 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for active connection resource. -*/ + */ type Aaasession struct { /** * Name of the AAA user. - */ + */ Username string `json:"username,omitempty"` /** * Name of the AAA group. - */ + */ Groupname string `json:"groupname,omitempty"` /** * IP address or the first address in the intranet IP range. - */ + */ Iip string `json:"iip,omitempty"` /** * Subnet mask for the intranet IP range. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Show aaa session associated with given session key - */ + */ Sessionkey string `json:"sessionkey,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` /** * Terminate all active AAA-TM/VPN sessions. - */ + */ All bool `json:"all,omitempty"` //------- Read only Parameter ---------; - Publicip string `json:"publicip,omitempty"` - Publicport string `json:"publicport,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Port string `json:"port,omitempty"` - Privateip string `json:"privateip,omitempty"` + Publicip string `json:"publicip,omitempty"` + Publicport string `json:"publicport,omitempty"` + Ipaddress string `json:"ipaddress,omitempty"` + Port string `json:"port,omitempty"` + Privateip string `json:"privateip,omitempty"` Privateport string `json:"privateport,omitempty"` - Destip string `json:"destip,omitempty"` - Destport string `json:"destport,omitempty"` - Intranetip string `json:"intranetip,omitempty"` + Destip string `json:"destip,omitempty"` + Destport string `json:"destport,omitempty"` + Intranetip string `json:"intranetip,omitempty"` Intranetip6 string `json:"intranetip6,omitempty"` - Peid string `json:"peid,omitempty"` - + Peid string `json:"peid,omitempty"` } diff --git a/resource/config/aaa/aaassoprofile.go b/resource/config/aaassoprofile.go similarity index 98% rename from resource/config/aaa/aaassoprofile.go rename to resource/config/aaassoprofile.go index 43340d1..8d822e6 100644 --- a/resource/config/aaa/aaassoprofile.go +++ b/resource/config/aaassoprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for aaa sso profile resource. -*/ + */ type Aaassoprofile struct { /** * Name for the SSO Profile. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after a SSO Profile is created. @@ -33,7 +33,6 @@ type Aaassoprofile struct { Username string `json:"username,omitempty"` /** * Password with which the user logs on. Required for Single sign on to external server. - */ + */ Password string `json:"password,omitempty"` - } diff --git a/resource/config/aaa/aaatacacsparams.go b/resource/config/aaatacacsparams.go similarity index 96% rename from resource/config/aaa/aaatacacsparams.go rename to resource/config/aaatacacsparams.go index a7e4a74..4a23fce 100644 --- a/resource/config/aaa/aaatacacsparams.go +++ b/resource/config/aaatacacsparams.go @@ -12,54 +12,53 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for tacacs parameters resource. -*/ + */ type Aaatacacsparams struct { /** * IP address of your TACACS+ server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port number on which the TACACS+ server listens for connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Maximum number of seconds that the Citrix ADC waits for a response from the TACACS+ server. - */ + */ Authtimeout int `json:"authtimeout,omitempty"` /** * Key shared between the TACACS+ server and clients. Required for allowing the Citrix ADC to communicate with the TACACS+ server. - */ + */ Tacacssecret string `json:"tacacssecret,omitempty"` /** * Use streaming authorization on the TACACS+ server. - */ + */ Authorization string `json:"authorization,omitempty"` /** * Send accounting messages to the TACACS+ server. - */ + */ Accounting string `json:"accounting,omitempty"` /** * The option for sending accounting messages to the TACACS+ server. - */ + */ Auditfailedcmds string `json:"auditfailedcmds,omitempty"` /** * TACACS+ group attribute name.Used for group extraction on the TACACS+ server. - */ + */ Groupattrname string `json:"groupattrname,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/aaa/aaauser.go b/resource/config/aaauser.go similarity index 98% rename from resource/config/aaa/aaauser.go rename to resource/config/aaauser.go index 695166c..d5b73fb 100644 --- a/resource/config/aaa/aaauser.go +++ b/resource/config/aaauser.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Configuration for AAA user resource. -*/ + */ type Aaauser struct { /** * Name for the user. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the user is added. @@ -28,13 +28,12 @@ type Aaauser struct { */ Username string `json:"username,omitempty"` /** - * Password with which the user logs on. Required for any user account that does not exist on an external authentication server. + * Password with which the user logs on. Required for any user account that does not exist on an external authentication server. If you are not using an external authentication server, all user accounts must have a password. If you are using an external authentication server, you must provide a password for local user accounts that do not exist on the authentication server. */ Password string `json:"password,omitempty"` /** * Show whether the user is logged in or not. - */ + */ Loggedin bool `json:"loggedin,omitempty"` - } diff --git a/resource/config/aaa/aaauser_aaagroup_binding.go b/resource/config/aaauser_aaagroup_binding.go similarity index 98% rename from resource/config/aaa/aaauser_aaagroup_binding.go rename to resource/config/aaauser_aaagroup_binding.go index 537c92e..62dc843 100644 --- a/resource/config/aaa/aaauser_aaagroup_binding.go +++ b/resource/config/aaauser_aaagroup_binding.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the aaagroup that can be bound to aaauser. -*/ + */ type Aaauseraaagroupbinding struct { /** * The group name - */ + */ Groupname string `json:"groupname,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -44,6 +44,4 @@ type Aaauseraaagroupbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_auditnslogpolicy_binding.go b/resource/config/aaauser_auditnslogpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaauser_auditnslogpolicy_binding.go rename to resource/config/aaauser_auditnslogpolicy_binding.go index d86f63a..bbb9285 100644 --- a/resource/config/aaa/aaauser_auditnslogpolicy_binding.go +++ b/resource/config/aaauser_auditnslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the auditnslogpolicy that can be bound to aaauser. -*/ + */ type Aaauserauditnslogpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaauserauditnslogpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_auditsyslogpolicy_binding.go b/resource/config/aaauser_auditsyslogpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaauser_auditsyslogpolicy_binding.go rename to resource/config/aaauser_auditsyslogpolicy_binding.go index 78198d7..109f9b3 100644 --- a/resource/config/aaa/aaauser_auditsyslogpolicy_binding.go +++ b/resource/config/aaauser_auditsyslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the auditsyslogpolicy that can be bound to aaauser. -*/ + */ type Aaauserauditsyslogpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaauserauditsyslogpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_authorizationpolicy_binding.go b/resource/config/aaauser_authorizationpolicy_binding.go similarity index 93% rename from resource/config/aaa/aaauser_authorizationpolicy_binding.go rename to resource/config/aaauser_authorizationpolicy_binding.go index ad53158..55214ea 100644 --- a/resource/config/aaa/aaauser_authorizationpolicy_binding.go +++ b/resource/config/aaauser_authorizationpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the authorizationpolicy that can be bound to aaauser. -*/ + */ type Aaauserauthorizationpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_binding.go b/resource/config/aaauser_binding.go similarity index 88% rename from resource/config/aaa/aaauser_binding.go rename to resource/config/aaauser_binding.go index 9f1d24a..8c2ae58 100644 --- a/resource/config/aaa/aaauser_binding.go +++ b/resource/config/aaauser_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** -* Binding object which returns the resources bound to aaauser_binding. -*/ +* Binding object which returns the resources bound to aaauser_binding. + */ type Aaauserbinding struct { /** - * Name of the user who has the account.
Minimum value = - */ + * Name of the user who has the account.
Minimum value = + */ Username string `json:"username,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_group_binding.go b/resource/config/aaauser_group_binding.go similarity index 98% rename from resource/config/aaa/aaauser_group_binding.go rename to resource/config/aaauser_group_binding.go index 7e76c63..bc0f79b 100644 --- a/resource/config/aaa/aaauser_group_binding.go +++ b/resource/config/aaauser_group_binding.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the group that can be bound to aaauser. -*/ + */ type Aaausergroupbinding struct { /** * The group name - */ + */ Groupname string `json:"groupname,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -44,6 +44,4 @@ type Aaausergroupbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_intranetapplication_binding.go b/resource/config/aaauser_intranetapplication_binding.go similarity index 96% rename from resource/config/aaa/aaauser_intranetapplication_binding.go rename to resource/config/aaauser_intranetapplication_binding.go index 0a04260..16f525a 100644 --- a/resource/config/aaa/aaauser_intranetapplication_binding.go +++ b/resource/config/aaauser_intranetapplication_binding.go @@ -12,22 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the intranetapplication that can be bound to aaauser. -*/ + */ type Aaauserintranetapplicationbinding struct { /** * Name of the intranet VPN application to which the policy applies. - */ + */ Intranetapplication string `json:"intranetapplication,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -45,6 +45,4 @@ type Aaauserintranetapplicationbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_intranetip6_binding.go b/resource/config/aaauser_intranetip6_binding.go similarity index 98% rename from resource/config/aaa/aaauser_intranetip6_binding.go rename to resource/config/aaauser_intranetip6_binding.go index 581617d..8ab9f5b 100644 --- a/resource/config/aaa/aaauser_intranetip6_binding.go +++ b/resource/config/aaauser_intranetip6_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the intranetip6 that can be bound to aaauser. -*/ + */ type Aaauserintranetip6binding struct { /** * The Intranet IP6 bound to the user - */ + */ Intranetip6 string `json:"intranetip6,omitempty"` /** * Numbers of ipv6 address bound starting with intranetip6 - */ + */ Numaddr int `json:"numaddr,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -48,6 +48,4 @@ type Aaauserintranetip6binding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_intranetip_binding.go b/resource/config/aaauser_intranetip_binding.go similarity index 98% rename from resource/config/aaa/aaauser_intranetip_binding.go rename to resource/config/aaauser_intranetip_binding.go index adcc763..311212a 100644 --- a/resource/config/aaa/aaauser_intranetip_binding.go +++ b/resource/config/aaauser_intranetip_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the intranetip that can be bound to aaauser. -*/ + */ type Aaauserintranetipbinding struct { /** * The Intranet IP bound to the user - */ + */ Intranetip string `json:"intranetip,omitempty"` /** * The netmask for the Intranet IP - */ + */ Netmask string `json:"netmask,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -48,6 +48,4 @@ type Aaauserintranetipbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_nslogpolicy_binding.go b/resource/config/aaauser_nslogpolicy_binding.go similarity index 96% rename from resource/config/aaa/aaauser_nslogpolicy_binding.go rename to resource/config/aaauser_nslogpolicy_binding.go index cef2139..d80f612 100644 --- a/resource/config/aaa/aaauser_nslogpolicy_binding.go +++ b/resource/config/aaauser_nslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the nslogpolicy that can be bound to aaauser. -*/ + */ type Aaausernslogpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaausernslogpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_policy_binding.go b/resource/config/aaauser_policy_binding.go similarity index 93% rename from resource/config/aaa/aaauser_policy_binding.go rename to resource/config/aaauser_policy_binding.go index 23572c3..a17982f 100644 --- a/resource/config/aaa/aaauser_policy_binding.go +++ b/resource/config/aaauser_policy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the policy that can be bound to aaauser. -*/ + */ type Aaauserpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_sessionpolicy_binding.go b/resource/config/aaauser_sessionpolicy_binding.go similarity index 93% rename from resource/config/aaa/aaauser_sessionpolicy_binding.go rename to resource/config/aaauser_sessionpolicy_binding.go index 89f8ecf..a52bd92 100644 --- a/resource/config/aaa/aaauser_sessionpolicy_binding.go +++ b/resource/config/aaauser_sessionpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the sessionpolicy that can be bound to aaauser. -*/ + */ type Aaausersessionpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_syslogpolicy_binding.go b/resource/config/aaauser_syslogpolicy_binding.go similarity index 96% rename from resource/config/aaa/aaauser_syslogpolicy_binding.go rename to resource/config/aaauser_syslogpolicy_binding.go index 5b35aa3..8bf1732 100644 --- a/resource/config/aaa/aaauser_syslogpolicy_binding.go +++ b/resource/config/aaauser_syslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the syslogpolicy that can be bound to aaauser. -*/ + */ type Aaausersyslogpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaausersyslogpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_tmsessionpolicy_binding.go b/resource/config/aaauser_tmsessionpolicy_binding.go similarity index 93% rename from resource/config/aaa/aaauser_tmsessionpolicy_binding.go rename to resource/config/aaauser_tmsessionpolicy_binding.go index 3583ad2..1e33124 100644 --- a/resource/config/aaa/aaauser_tmsessionpolicy_binding.go +++ b/resource/config/aaauser_tmsessionpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the tmsessionpolicy that can be bound to aaauser. -*/ + */ type Aaausertmsessionpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_trafficpolicy_binding.go b/resource/config/aaauser_trafficpolicy_binding.go similarity index 96% rename from resource/config/aaa/aaauser_trafficpolicy_binding.go rename to resource/config/aaauser_trafficpolicy_binding.go index 934f180..658dfb8 100644 --- a/resource/config/aaa/aaauser_trafficpolicy_binding.go +++ b/resource/config/aaauser_trafficpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the trafficpolicy that can be bound to aaauser. -*/ + */ type Aaausertrafficpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaausertrafficpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_url_binding.go b/resource/config/aaauser_url_binding.go similarity index 98% rename from resource/config/aaa/aaauser_url_binding.go rename to resource/config/aaauser_url_binding.go index 19407e8..b5ee119 100644 --- a/resource/config/aaa/aaauser_url_binding.go +++ b/resource/config/aaauser_url_binding.go @@ -12,22 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the url that can be bound to aaauser. -*/ + */ type Aaauserurlbinding struct { /** * The intranet url. - */ + */ Urlname string `json:"urlname,omitempty"` Acttype uint32 `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -45,6 +45,4 @@ type Aaauserurlbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_urlpolicy_binding.go b/resource/config/aaauser_urlpolicy_binding.go similarity index 96% rename from resource/config/aaa/aaauser_urlpolicy_binding.go rename to resource/config/aaauser_urlpolicy_binding.go index 3797a4c..e0b44f9 100644 --- a/resource/config/aaa/aaauser_urlpolicy_binding.go +++ b/resource/config/aaauser_urlpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the urlpolicy that can be bound to aaauser. -*/ + */ type Aaauserurlpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaauserurlpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_vpnintranetapplication_binding.go b/resource/config/aaauser_vpnintranetapplication_binding.go similarity index 96% rename from resource/config/aaa/aaauser_vpnintranetapplication_binding.go rename to resource/config/aaauser_vpnintranetapplication_binding.go index b7c004c..2478664 100644 --- a/resource/config/aaa/aaauser_vpnintranetapplication_binding.go +++ b/resource/config/aaauser_vpnintranetapplication_binding.go @@ -12,22 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnintranetapplication that can be bound to aaauser. -*/ + */ type Aaauservpnintranetapplicationbinding struct { /** * Name of the intranet VPN application to which the policy applies. - */ + */ Intranetapplication string `json:"intranetapplication,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -45,6 +45,4 @@ type Aaauservpnintranetapplicationbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_vpnsessionpolicy_binding.go b/resource/config/aaauser_vpnsessionpolicy_binding.go similarity index 93% rename from resource/config/aaa/aaauser_vpnsessionpolicy_binding.go rename to resource/config/aaauser_vpnsessionpolicy_binding.go index e44207b..94ab797 100644 --- a/resource/config/aaa/aaauser_vpnsessionpolicy_binding.go +++ b/resource/config/aaauser_vpnsessionpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnsessionpolicy that can be bound to aaauser. -*/ + */ type Aaauservpnsessionpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_vpntrafficpolicy_binding.go b/resource/config/aaauser_vpntrafficpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaauser_vpntrafficpolicy_binding.go rename to resource/config/aaauser_vpntrafficpolicy_binding.go index 60f3812..4f6def7 100644 --- a/resource/config/aaa/aaauser_vpntrafficpolicy_binding.go +++ b/resource/config/aaauser_vpntrafficpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpntrafficpolicy that can be bound to aaauser. -*/ + */ type Aaauservpntrafficpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaauservpntrafficpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_vpnurl_binding.go b/resource/config/aaauser_vpnurl_binding.go similarity index 97% rename from resource/config/aaa/aaauser_vpnurl_binding.go rename to resource/config/aaauser_vpnurl_binding.go index 3ca686a..56f3f4f 100644 --- a/resource/config/aaa/aaauser_vpnurl_binding.go +++ b/resource/config/aaauser_vpnurl_binding.go @@ -12,22 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnurl that can be bound to aaauser. -*/ + */ type Aaauservpnurlbinding struct { /** * The intranet url. - */ + */ Urlname string `json:"urlname,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -45,6 +45,4 @@ type Aaauservpnurlbinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/aaa/aaauser_vpnurlpolicy_binding.go b/resource/config/aaauser_vpnurlpolicy_binding.go similarity index 97% rename from resource/config/aaa/aaauser_vpnurlpolicy_binding.go rename to resource/config/aaauser_vpnurlpolicy_binding.go index ad581b7..3e15614 100644 --- a/resource/config/aaa/aaauser_vpnurlpolicy_binding.go +++ b/resource/config/aaauser_vpnurlpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package aaa +package config /** * Binding class showing the vpnurlpolicy that can be bound to aaauser. -*/ + */ type Aaauservpnurlpolicybinding struct { /** * The policy Name. - */ + */ Policy string `json:"policy,omitempty"` /** - * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. - */ + * Integer specifying the priority of the policy. A lower number indicates a higher priority. Policies are evaluated in the order of their priority numbers. Maximum value for default syntax policies is 2147483647 and for classic policies max priority is 64000. + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * User account to which to bind the policy. - */ + */ Username string `json:"username,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -53,6 +53,4 @@ type Aaauservpnurlpolicybinding struct { * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/adm/admparameter.go b/resource/config/admparameter.go similarity index 98% rename from resource/config/adm/admparameter.go rename to resource/config/admparameter.go index fbfa05a..4321375 100644 --- a/resource/config/adm/admparameter.go +++ b/resource/config/admparameter.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package adm +package config /** * Configuration for ADM parameter resource. -*/ + */ type Admparameter struct { /** * Parameter to enable/disable Citrix ADM Service Connect. This feature helps you discover your Citrix ADC instances effortlessly on Citrix ADM service and get insights and curated machine learning based recommendations for applications and Citrix ADC infrastructure. This feature lets the Citrix ADC instance automatically send system, usage and telemetry data to Citrix ADM service. View here [https://docs.citrix.com/en-us/citrix-adc/13/data-governance.html] to learn more about this feature. Use of this feature is subject to the Citrix End User ServiceAgreement. View here [https://www.citrix.com/buy/licensing/agreements.html] - */ + */ Admserviceconnect string `json:"admserviceconnect,omitempty"` - } diff --git a/resource/config/analytics/analyticsglobal_analyticsprofile_binding.go b/resource/config/analyticsglobal_analyticsprofile_binding.go similarity index 96% rename from resource/config/analytics/analyticsglobal_analyticsprofile_binding.go rename to resource/config/analyticsglobal_analyticsprofile_binding.go index 96ca028..ee0328e 100644 --- a/resource/config/analytics/analyticsglobal_analyticsprofile_binding.go +++ b/resource/config/analyticsglobal_analyticsprofile_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package analytics +package config /** * Binding class showing the analyticsprofile that can be bound to analyticsglobal. -*/ + */ type Analyticsglobalanalyticsprofilebinding struct { /** * Name of the analytics profile bound. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/analytics/analyticsglobal_binding.go b/resource/config/analyticsglobal_binding.go similarity index 94% rename from resource/config/analytics/analyticsglobal_binding.go rename to resource/config/analyticsglobal_binding.go index e89fd34..a36c229 100644 --- a/resource/config/analytics/analyticsglobal_binding.go +++ b/resource/config/analyticsglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package analytics +package config /** -* Binding object which returns the resources bound to analyticsglobal_binding. -*/ +* Binding object which returns the resources bound to analyticsglobal_binding. + */ type Analyticsglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/analytics/analyticsglobal_profile_binding.go b/resource/config/analyticsglobal_profile_binding.go similarity index 96% rename from resource/config/analytics/analyticsglobal_profile_binding.go rename to resource/config/analyticsglobal_profile_binding.go index 24118a7..02acd8d 100644 --- a/resource/config/analytics/analyticsglobal_profile_binding.go +++ b/resource/config/analyticsglobal_profile_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package analytics +package config /** * Binding class showing the profile that can be bound to analyticsglobal. -*/ + */ type Analyticsglobalprofilebinding struct { /** * Name of the analytics profile bound. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/analytics/analyticsprofile.go b/resource/config/analyticsprofile.go similarity index 97% rename from resource/config/analytics/analyticsprofile.go rename to resource/config/analyticsprofile.go index 345f76a..376bd4e 100644 --- a/resource/config/analytics/analyticsprofile.go +++ b/resource/config/analyticsprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package analytics +package config /** * Configuration for Analytics profile resource. -*/ + */ type Analyticsprofile struct { /** * Name for the analytics profile. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at @@ -29,123 +29,122 @@ type Analyticsprofile struct { Name string `json:"name,omitempty"` /** * The collector can be an IP, an appflow collector name, a service or a vserver. If IP is specified, the transport is considered as logstream and default port of 5557 is taken. If collector name is specified, the collector properties are taken from the configured collector. If service is specified, the configured service is assumed as the collector. If vserver is specified, the services bound to it are considered as collectors and the records are load balanced. - */ + */ Collectors string `json:"collectors,omitempty"` /** * This option indicates what information needs to be collected and exported. - */ + */ Type string `json:"type,omitempty"` /** * On enabling this option, the Citrix ADC will insert a javascript into the HTTP response to collect the client side page-timings and will send the same to the configured collectors. - */ + */ Httpclientsidemeasurements string `json:"httpclientsidemeasurements,omitempty"` /** * On enabling this option, the Citrix ADC will link the embedded objects of a page together. - */ + */ Httppagetracking string `json:"httppagetracking,omitempty"` /** * On enabling this option, the Citrix ADC will log the URL in appflow records - */ + */ Httpurl string `json:"httpurl,omitempty"` /** * On enabling this option, the Citrix ADC will log the Host header in appflow records - */ + */ Httphost string `json:"httphost,omitempty"` /** * On enabling this option, the Citrix ADC will log the method header in appflow records - */ + */ Httpmethod string `json:"httpmethod,omitempty"` /** * On enabling this option, the Citrix ADC will log the referer header in appflow records - */ + */ Httpreferer string `json:"httpreferer,omitempty"` /** * On enabling this option, the Citrix ADC will log User-Agent header. - */ + */ Httpuseragent string `json:"httpuseragent,omitempty"` /** * On enabling this option, the Citrix ADC will log cookie header. - */ + */ Httpcookie string `json:"httpcookie,omitempty"` /** * On enabling this option, the Citrix ADC will log location header. - */ + */ Httplocation string `json:"httplocation,omitempty"` /** * On enabling this option, the Citrix ADC will send the URL category record. - */ + */ Urlcategory string `json:"urlcategory,omitempty"` /** * On enabling this option, the Citrix ADC will log all the request and response headers. - */ + */ Allhttpheaders string `json:"allhttpheaders,omitempty"` /** * On enabling this option, the Citrix ADC will log content-length header. - */ + */ Httpcontenttype string `json:"httpcontenttype,omitempty"` /** * On enabling this option, the Citrix ADC will log Authentication header. - */ + */ Httpauthentication string `json:"httpauthentication,omitempty"` /** * On enabling this option, the Citrix ADC will Via header. - */ + */ Httpvia string `json:"httpvia,omitempty"` /** * On enabling this option, the Citrix ADC will log X-Forwarded-For header. - */ + */ Httpxforwardedforheader string `json:"httpxforwardedforheader,omitempty"` /** * On enabling this option, the Citrix ADC will log set-cookie header. - */ + */ Httpsetcookie string `json:"httpsetcookie,omitempty"` /** * On enabling this option, the Citrix ADC will log set-cookie2 header. - */ + */ Httpsetcookie2 string `json:"httpsetcookie2,omitempty"` /** * On enabling this option, the Citrix ADC will log domain name. - */ + */ Httpdomainname string `json:"httpdomainname,omitempty"` /** * On enabling this option, the Citrix ADC will log URL Query. - */ + */ Httpurlquery string `json:"httpurlquery,omitempty"` /** * On enabling this option, the Citrix ADC will log TCP burst parameters. - */ + */ Tcpburstreporting string `json:"tcpburstreporting,omitempty"` /** * On enabling this option, the Citrix ADC will log TCP CQA parameters. - */ + */ Cqareporting string `json:"cqareporting,omitempty"` /** * On enabling this option, the Citrix ADC will log the Integrated Caching appflow records - */ + */ Integratedcache string `json:"integratedcache,omitempty"` /** * On enabling this option, the Citrix ADC will log the gRPC status headers - */ + */ Grpcstatus string `json:"grpcstatus,omitempty"` /** * This option indicates the format of REST API POST body. It depends on the consumer of the analytics data. - */ + */ Outputmode string `json:"outputmode,omitempty"` /** * This option indicates the whether metrics should be sent to the REST collector. - */ + */ Metrics string `json:"metrics,omitempty"` /** * This option indicates the whether events should be sent to the REST collector. - */ + */ Events string `json:"events,omitempty"` /** * This option indicates the whether auditlog should be sent to the REST collector. - */ + */ Auditlogs string `json:"auditlogs,omitempty"` //------- Read only Parameter ---------; Refcnt string `json:"refcnt,omitempty"` - } diff --git a/resource/config/network/appalgparam.go b/resource/config/appalgparam.go similarity index 96% rename from resource/config/network/appalgparam.go rename to resource/config/appalgparam.go index fa5a288..52d38a2 100644 --- a/resource/config/network/appalgparam.go +++ b/resource/config/appalgparam.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for AppAlg Param resource. -*/ + */ type Appalgparam struct { /** * Interval in sec, after which data sessions of PPTP GRE is cleared. - */ + */ Pptpgreidletimeout int `json:"pptpgreidletimeout,omitempty"` - } diff --git a/resource/config/appflow/appflowaction.go b/resource/config/appflowaction.go similarity index 94% rename from resource/config/appflow/appflowaction.go rename to resource/config/appflowaction.go index 0bb2e54..df40533 100644 --- a/resource/config/appflow/appflowaction.go +++ b/resource/config/appflowaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Configuration for AppFlow action resource. -*/ + */ type Appflowaction struct { /** * Name for the action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -28,55 +28,55 @@ type Appflowaction struct { Name string `json:"name,omitempty"` /** * Name(s) of collector(s) to be associated with the AppFlow action. - */ + */ Collectors []string `json:"collectors,omitempty"` /** * On enabling this option, the Citrix ADC will collect the time required to load and render the mainpage on the client. - */ + */ Clientsidemeasurements string `json:"clientsidemeasurements,omitempty"` /** * On enabling this option, the Citrix ADC will start tracking the page for waterfall chart by inserting a NS_ESNS cookie in the response. - */ + */ Pagetracking string `json:"pagetracking,omitempty"` /** * On enabling this option, the Citrix ADC will send the webinsight records to the configured collectors. - */ + */ Webinsight string `json:"webinsight,omitempty"` /** * On enabling this option, the Citrix ADC will send the security insight records to the configured collectors. - */ + */ Securityinsight string `json:"securityinsight,omitempty"` /** * On enabling this option, the Citrix ADC will send the bot insight records to the configured collectors. - */ + */ Botinsight string `json:"botinsight,omitempty"` /** * On enabling this option, the Citrix ADC will send the ContentInspection Insight records to the configured collectors. - */ + */ Ciinsight string `json:"ciinsight,omitempty"` /** * On enabling this option, the Citrix ADC will send the videoinsight records to the configured collectors. - */ + */ Videoanalytics string `json:"videoanalytics,omitempty"` /** * On enabling this option, the Citrix ADC will distribute records among the collectors. Else, all records will be sent to all the collectors. - */ + */ Distributionalgorithm string `json:"distributionalgorithm,omitempty"` /** * If only the stats records are to be exported, turn on this option. - */ + */ Metricslog bool `json:"metricslog,omitempty"` /** * Log ANOMALOUS or ALL transactions - */ + */ Transactionlog string `json:"transactionlog,omitempty"` /** * Any comments about this action. In the CLI, if including spaces between words, enclose the comment in quotation marks. (The quotation marks are not required in the configuration utility.) - */ + */ Comment string `json:"comment,omitempty"` /** * New name for the AppFlow action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at - (@), equals (=), and hyphen (-) characters. + (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my appflow action" or 'my appflow action'). */ @@ -84,8 +84,7 @@ type Appflowaction struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Referencecount string `json:"referencecount,omitempty"` - Description string `json:"description,omitempty"` - + Description string `json:"description,omitempty"` } diff --git a/resource/config/appflow/appflowaction_analyticsprofile_binding.go b/resource/config/appflowaction_analyticsprofile_binding.go similarity index 97% rename from resource/config/appflow/appflowaction_analyticsprofile_binding.go rename to resource/config/appflowaction_analyticsprofile_binding.go index 81ad504..44b2eb6 100644 --- a/resource/config/appflow/appflowaction_analyticsprofile_binding.go +++ b/resource/config/appflowaction_analyticsprofile_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the analyticsprofile that can be bound to appflowaction. -*/ + */ type Appflowactionanalyticsprofilebinding struct { /** * Analytics profile to be bound to the appflow action - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * Name for the action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -30,6 +30,4 @@ type Appflowactionanalyticsprofilebinding struct { If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my appflow action" or 'my appflow action'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowaction_binding.go b/resource/config/appflowaction_binding.go similarity index 94% rename from resource/config/appflow/appflowaction_binding.go rename to resource/config/appflowaction_binding.go index 23c908e..198b6cf 100644 --- a/resource/config/appflow/appflowaction_binding.go +++ b/resource/config/appflowaction_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** -* Binding object which returns the resources bound to appflowaction_binding. -*/ +* Binding object which returns the resources bound to appflowaction_binding. + */ type Appflowactionbinding struct { /** * Name of the action about which to display information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowaction_profile_binding.go b/resource/config/appflowaction_profile_binding.go similarity index 97% rename from resource/config/appflow/appflowaction_profile_binding.go rename to resource/config/appflowaction_profile_binding.go index fe2c432..bfe75fe 100644 --- a/resource/config/appflow/appflowaction_profile_binding.go +++ b/resource/config/appflowaction_profile_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the profile that can be bound to appflowaction. -*/ + */ type Appflowactionprofilebinding struct { /** * Analytics profile to be bound to the appflow action - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * Name for the action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -30,6 +30,4 @@ type Appflowactionprofilebinding struct { If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my appflow action" or 'my appflow action'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowcollector.go b/resource/config/appflowcollector.go similarity index 96% rename from resource/config/appflow/appflowcollector.go rename to resource/config/appflowcollector.go index 93f1076..6ce0da5 100644 --- a/resource/config/appflow/appflowcollector.go +++ b/resource/config/appflowcollector.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Configuration for AppFlow collector resource. -*/ + */ type Appflowcollector struct { /** * Name for the collector. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - Only four collectors can be configured. + Only four collectors can be configured. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my appflow collector" or 'my appflow collector'). */ Name string `json:"name,omitempty"` /** * IPv4 address of the collector. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port on which the collector listens. - */ + */ Port int `json:"port,omitempty"` /** * Netprofile to associate with the collector. The IP address defined in the profile is used as the source IP address for AppFlow traffic for this collector. If you do not set this parameter, the Citrix ADC IP (NSIP) address is used as the source IP address. - */ + */ Netprofile string `json:"netprofile,omitempty"` /** * Type of collector: either logstream or ipfix or rest. - */ + */ Transport string `json:"transport,omitempty"` /** * New name for the collector. Must begin with an ASCII alphabetic or underscore (_) character, and must - contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at(@), equals (=), and hyphen (-) characters. + contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at(@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my appflow coll" or 'my appflow coll'). */ @@ -55,5 +55,4 @@ type Appflowcollector struct { //------- Read only Parameter ---------; State string `json:"state,omitempty"` - } diff --git a/resource/config/appflow/appflowglobal_appflowpolicy_binding.go b/resource/config/appflowglobal_appflowpolicy_binding.go similarity index 94% rename from resource/config/appflow/appflowglobal_appflowpolicy_binding.go rename to resource/config/appflowglobal_appflowpolicy_binding.go index ebfbc1d..14d1afa 100644 --- a/resource/config/appflow/appflowglobal_appflowpolicy_binding.go +++ b/resource/config/appflowglobal_appflowpolicy_binding.go @@ -12,51 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the appflowpolicy that can be bound to appflowglobal. -*/ + */ type Appflowglobalappflowpolicybinding struct { /** * Name of the AppFlow policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Global bind point for which to show detailed information about the policies bound to the bind point. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Specify vserver for a policy label associated with a virtual server, or policylabel for a user-defined policy label. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol int `json:"numpol,omitempty"` /** * Flow type of the bound AppFlow policy. - */ - Flowtype int `json:"flowtype,omitempty"` + */ + Flowtype int `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowglobal_binding.go b/resource/config/appflowglobal_binding.go similarity index 94% rename from resource/config/appflow/appflowglobal_binding.go rename to resource/config/appflowglobal_binding.go index 97600a4..6b822b9 100644 --- a/resource/config/appflow/appflowglobal_binding.go +++ b/resource/config/appflowglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** -* Binding object which returns the resources bound to appflowglobal_binding. -*/ +* Binding object which returns the resources bound to appflowglobal_binding. + */ type Appflowglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowglobal_policy_binding.go b/resource/config/appflowglobal_policy_binding.go similarity index 94% rename from resource/config/appflow/appflowglobal_policy_binding.go rename to resource/config/appflowglobal_policy_binding.go index 32a891a..ed5c90b 100644 --- a/resource/config/appflow/appflowglobal_policy_binding.go +++ b/resource/config/appflowglobal_policy_binding.go @@ -12,51 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the policy that can be bound to appflowglobal. -*/ + */ type Appflowglobalpolicybinding struct { /** * Name of the AppFlow policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Global bind point for which to show detailed information about the policies bound to the bind point. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Specify vserver for a policy label associated with a virtual server, or policylabel for a user-defined policy label. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol uint32 `json:"numpol,omitempty"` /** * Flow type of the bound AppFlow policy. - */ - Flowtype uint32 `json:"flowtype,omitempty"` + */ + Flowtype uint32 `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowparam.go b/resource/config/appflowparam.go similarity index 94% rename from resource/config/appflow/appflowparam.go rename to resource/config/appflowparam.go index d4e74d5..d72eadf 100644 --- a/resource/config/appflow/appflowparam.go +++ b/resource/config/appflowparam.go @@ -12,224 +12,223 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Configuration for AppFlow parameter resource. -*/ + */ type Appflowparam struct { /** * Refresh interval, in seconds, at which to export the template data. Because data transmission is in UDP, the templates must be resent at regular intervals. - */ + */ Templaterefresh int `json:"templaterefresh,omitempty"` /** * Interval, in seconds, at which to send Appnames to the configured collectors. Appname refers to the name of an entity (virtual server, service, or service group) in the Citrix ADC. - */ + */ Appnamerefresh int `json:"appnamerefresh,omitempty"` /** * Interval, in seconds, at which to send flow records to the configured collectors. - */ + */ Flowrecordinterval int `json:"flowrecordinterval,omitempty"` /** * Interval, in seconds, at which to send security insight flow records to the configured collectors. - */ + */ Securityinsightrecordinterval int `json:"securityinsightrecordinterval,omitempty"` /** * MTU, in bytes, for IPFIX UDP packets. - */ + */ Udppmtu int `json:"udppmtu,omitempty"` /** * Include the http URL that the Citrix ADC received from the client. - */ + */ Httpurl string `json:"httpurl,omitempty"` /** * Enable AppFlow AAA Username logging. - */ + */ Aaausername string `json:"aaausername,omitempty"` /** * Include the cookie that was in the HTTP request the appliance received from the client. - */ + */ Httpcookie string `json:"httpcookie,omitempty"` /** * Include the web page that was last visited by the client. - */ + */ Httpreferer string `json:"httpreferer,omitempty"` /** * Include the method that was specified in the HTTP request that the appliance received from the client. - */ + */ Httpmethod string `json:"httpmethod,omitempty"` /** * Include the host identified in the HTTP request that the appliance received from the client. - */ + */ Httphost string `json:"httphost,omitempty"` /** * Include the client application through which the HTTP request was received by the Citrix ADC. - */ + */ Httpuseragent string `json:"httpuseragent,omitempty"` /** * Generate AppFlow records for only the traffic from the client. - */ + */ Clienttrafficonly string `json:"clienttrafficonly,omitempty"` /** * Include the HTTP Content-Type header sent from the server to the client to determine the type of the content sent. - */ + */ Httpcontenttype string `json:"httpcontenttype,omitempty"` /** * Include the HTTP Authorization header information. - */ + */ Httpauthorization string `json:"httpauthorization,omitempty"` /** * Include the httpVia header which contains the IP address of proxy server through which the client accessed the server. - */ + */ Httpvia string `json:"httpvia,omitempty"` /** * Include the httpXForwardedFor header, which contains the original IP Address of the client using a proxy server to access the server. - */ + */ Httpxforwardedfor string `json:"httpxforwardedfor,omitempty"` /** * Include the HTTP location headers returned from the HTTP responses. - */ + */ Httplocation string `json:"httplocation,omitempty"` /** * Include the Set-cookie header sent from the server to the client in response to a HTTP request. - */ + */ Httpsetcookie string `json:"httpsetcookie,omitempty"` /** * Include the Set-cookie header sent from the server to the client in response to a HTTP request. - */ + */ Httpsetcookie2 string `json:"httpsetcookie2,omitempty"` /** * Enable connection chaining so that the client server flows of a connection are linked. Also the connection chain ID is propagated across Citrix ADCs, so that in a multi-hop environment the flows belonging to the same logical connection are linked. This id is also logged as part of appflow record - */ + */ Connectionchaining string `json:"connectionchaining,omitempty"` /** * Include the http domain request to be exported. - */ + */ Httpdomain string `json:"httpdomain,omitempty"` /** * Skip Cache http transaction. This HTTP transaction is specific to Cache Redirection module. In Case of Cache Miss there will be another HTTP transaction initiated by the cache server. - */ + */ Skipcacheredirectionhttptransaction string `json:"skipcacheredirectionhttptransaction,omitempty"` /** * Include the stream identifier name to be exported. - */ + */ Identifiername string `json:"identifiername,omitempty"` /** * Include the stream identifier session name to be exported. - */ + */ Identifiersessionname string `json:"identifiersessionname,omitempty"` /** * An observation domain groups a set of Citrix ADCs based on deployment: cluster, HA etc. A unique Observation Domain ID is required to be assigned to each such group. - */ + */ Observationdomainid int `json:"observationdomainid,omitempty"` /** * Name of the Observation Domain defined by the observation domain ID. - */ + */ Observationdomainname string `json:"observationdomainname,omitempty"` /** * Enable this option for logging end user MSISDN in L4/L7 appflow records - */ + */ Subscriberawareness string `json:"subscriberawareness,omitempty"` /** * Enable this option for obfuscating MSISDN in L4/L7 appflow records - */ + */ Subscriberidobfuscation string `json:"subscriberidobfuscation,omitempty"` /** * Algorithm(MD5 or SHA256) to be used for obfuscating MSISDN - */ + */ Subscriberidobfuscationalgo string `json:"subscriberidobfuscationalgo,omitempty"` /** * Enable this option for Gx session reporting - */ + */ Gxsessionreporting string `json:"gxsessionreporting,omitempty"` /** * Enable/disable the feature individually on appflow action. - */ + */ Securityinsighttraffic string `json:"securityinsighttraffic,omitempty"` /** * Flag to determine whether cache records need to be exported or not. If this flag is true and IC is enabled, cache records are exported instead of L7 HTTP records - */ + */ Cacheinsight string `json:"cacheinsight,omitempty"` /** * Enable/disable the feature individually on appflow action. - */ + */ Videoinsight string `json:"videoinsight,omitempty"` /** * Include the HTTP query segment along with the URL that the Citrix ADC received from the client. - */ + */ Httpquerywithurl string `json:"httpquerywithurl,omitempty"` /** * Include the URL category record. - */ + */ Urlcategory string `json:"urlcategory,omitempty"` /** * On enabling this option, the Citrix ADC will send the Large Scale Nat(LSN) records to the configured collectors. - */ + */ Lsnlogging string `json:"lsnlogging,omitempty"` /** * TCP CQA reporting enable/disable knob. - */ + */ Cqareporting string `json:"cqareporting,omitempty"` /** * Enable AppFlow user email-id logging. - */ + */ Emailaddress string `json:"emailaddress,omitempty"` /** * On enabling this option, the NGS will send bandwidth usage record to configured collectors. - */ + */ Usagerecordinterval int `json:"usagerecordinterval,omitempty"` /** * On enabling this option, NGS will send data used by Web/saas app at the end of every HTTP transaction to configured collectors. - */ + */ Websaasappusagereporting string `json:"websaasappusagereporting,omitempty"` /** * Enable Citrix ADC Stats to be sent to the Telemetry Agent - */ + */ Metrics string `json:"metrics,omitempty"` /** * Enable Events to be sent to the Telemetry Agent - */ + */ Events string `json:"events,omitempty"` /** * Enable Auditlogs to be sent to the Telemetry Agent - */ + */ Auditlogs string `json:"auditlogs,omitempty"` /** * An observation point ID is identifier for the NetScaler from which appflow records are being exported. By default, the NetScaler IP is the observation point ID. - */ + */ Observationpointid int `json:"observationpointid,omitempty"` /** * Enable generation of the distributed tracing templates in the Appflow records - */ + */ Distributedtracing string `json:"distributedtracing,omitempty"` /** * Sampling rate for Distributed Tracing - */ + */ Disttracingsamplingrate int `json:"disttracingsamplingrate,omitempty"` /** * Interval, in seconds, at which to send tcp attack counters to the configured collectors. If 0 is configured, the record is not sent. - */ + */ Tcpattackcounterinterval int `json:"tcpattackcounterinterval,omitempty"` /** * To use the Citrix ADC IP to send Logstream records instead of the SNIP - */ + */ Logstreamovernsip string `json:"logstreamovernsip,omitempty"` /** * Authentication token to be set by the agent. - */ + */ Analyticsauthtoken string `json:"analyticsauthtoken,omitempty"` /** * To use the Citrix ADC IP to send Time series data such as metrics and events, instead of the SNIP - */ + */ Timeseriesovernsip string `json:"timeseriesovernsip,omitempty"` //------- Read only Parameter ---------; - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Tcpburstreporting string `json:"tcpburstreporting,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Tcpburstreporting string `json:"tcpburstreporting,omitempty"` Tcpburstreportingthreshold string `json:"tcpburstreportingthreshold,omitempty"` - } diff --git a/resource/config/appflow/appflowpolicy.go b/resource/config/appflowpolicy.go similarity index 89% rename from resource/config/appflow/appflowpolicy.go rename to resource/config/appflowpolicy.go index d722f76..dc6f7cc 100644 --- a/resource/config/appflow/appflowpolicy.go +++ b/resource/config/appflowpolicy.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Configuration for AppFlow policy resource. -*/ + */ type Appflowpolicy struct { /** * Name for the policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at - (@), equals (=), and hyphen (-) characters. + (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my appflow policy" or 'my appflow policy'). */ @@ -31,21 +31,21 @@ type Appflowpolicy struct { * Expression or other value against which the traffic is evaluated. Must be a Boolean expression. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** * Name of the action to be associated with this policy. - */ + */ Action string `json:"action,omitempty"` /** * Name of the appflow action to be associated with this policy when an undef event occurs. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * Any comments about this policy. - */ + */ Comment string `json:"comment,omitempty"` /** * New name for the policy. Must begin with an ASCII alphabetic or underscore (_)character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -56,10 +56,9 @@ type Appflowpolicy struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Undefhits string `json:"undefhits,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` Description string `json:"description,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/appflow/appflowpolicy_appflowglobal_binding.go b/resource/config/appflowpolicy_appflowglobal_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicy_appflowglobal_binding.go rename to resource/config/appflowpolicy_appflowglobal_binding.go index f5f6e9e..d664976 100644 --- a/resource/config/appflow/appflowpolicy_appflowglobal_binding.go +++ b/resource/config/appflowpolicy_appflowglobal_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the appflowglobal that can be bound to appflowpolicy. -*/ + */ type Appflowpolicyappflowglobalbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicy_appflowpolicylabel_binding.go b/resource/config/appflowpolicy_appflowpolicylabel_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicy_appflowpolicylabel_binding.go rename to resource/config/appflowpolicy_appflowpolicylabel_binding.go index 5374364..fa8879b 100644 --- a/resource/config/appflow/appflowpolicy_appflowpolicylabel_binding.go +++ b/resource/config/appflowpolicy_appflowpolicylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the appflowpolicylabel that can be bound to appflowpolicy. -*/ + */ type Appflowpolicyappflowpolicylabelbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicy_binding.go b/resource/config/appflowpolicy_binding.go similarity index 95% rename from resource/config/appflow/appflowpolicy_binding.go rename to resource/config/appflowpolicy_binding.go index 8949f6f..19e5f2f 100644 --- a/resource/config/appflow/appflowpolicy_binding.go +++ b/resource/config/appflowpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** -* Binding object which returns the resources bound to appflowpolicy_binding. -*/ +* Binding object which returns the resources bound to appflowpolicy_binding. + */ type Appflowpolicybinding struct { /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicy_csvserver_binding.go b/resource/config/appflowpolicy_csvserver_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicy_csvserver_binding.go rename to resource/config/appflowpolicy_csvserver_binding.go index 46f75fd..1328e4d 100644 --- a/resource/config/appflow/appflowpolicy_csvserver_binding.go +++ b/resource/config/appflowpolicy_csvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the csvserver that can be bound to appflowpolicy. -*/ + */ type Appflowpolicycsvserverbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicy_global_binding.go b/resource/config/appflowpolicy_global_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicy_global_binding.go rename to resource/config/appflowpolicy_global_binding.go index 0fc790a..10862d8 100644 --- a/resource/config/appflow/appflowpolicy_global_binding.go +++ b/resource/config/appflowpolicy_global_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the global that can be bound to appflowpolicy. -*/ + */ type Appflowpolicyglobalbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicy_lbvserver_binding.go b/resource/config/appflowpolicy_lbvserver_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicy_lbvserver_binding.go rename to resource/config/appflowpolicy_lbvserver_binding.go index e0dc9ea..f9edcf6 100644 --- a/resource/config/appflow/appflowpolicy_lbvserver_binding.go +++ b/resource/config/appflowpolicy_lbvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the lbvserver that can be bound to appflowpolicy. -*/ + */ type Appflowpolicylbvserverbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicy_policylabel_binding.go b/resource/config/appflowpolicy_policylabel_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicy_policylabel_binding.go rename to resource/config/appflowpolicy_policylabel_binding.go index 1fe1298..0174528 100644 --- a/resource/config/appflow/appflowpolicy_policylabel_binding.go +++ b/resource/config/appflowpolicy_policylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the policylabel that can be bound to appflowpolicy. -*/ + */ type Appflowpolicypolicylabelbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicy_vpnvserver_binding.go b/resource/config/appflowpolicy_vpnvserver_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicy_vpnvserver_binding.go rename to resource/config/appflowpolicy_vpnvserver_binding.go index e2e7a8e..e05d782 100644 --- a/resource/config/appflow/appflowpolicy_vpnvserver_binding.go +++ b/resource/config/appflowpolicy_vpnvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the vpnvserver that can be bound to appflowpolicy. -*/ + */ type Appflowpolicyvpnvserverbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicy_vserver_binding.go b/resource/config/appflowpolicy_vserver_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicy_vserver_binding.go rename to resource/config/appflowpolicy_vserver_binding.go index f5bc8a6..2b7fb1b 100644 --- a/resource/config/appflow/appflowpolicy_vserver_binding.go +++ b/resource/config/appflowpolicy_vserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the vserver that can be bound to appflowpolicy. -*/ + */ type Appflowpolicyvserverbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicylabel.go b/resource/config/appflowpolicylabel.go similarity index 77% rename from resource/config/appflow/appflowpolicylabel.go rename to resource/config/appflowpolicylabel.go index 8b2a694..56fe6f3 100644 --- a/resource/config/appflow/appflowpolicylabel.go +++ b/resource/config/appflowpolicylabel.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Configuration for AppFlow policy label resource. -*/ + */ type Appflowpolicylabel struct { /** * Name of the AppFlow policy label. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at @@ -29,10 +29,10 @@ type Appflowpolicylabel struct { Labelname string `json:"labelname,omitempty"` /** * Type of traffic evaluated by the policies bound to the policy label. - */ + */ Policylabeltype string `json:"policylabeltype,omitempty"` /** - * New name for the policy label. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + * New name for the policy label. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my appflow policylabel" or 'my appflow policylabel') */ @@ -40,14 +40,13 @@ type Appflowpolicylabel struct { //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority string `json:"priority,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority string `json:"priority,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Flowtype string `json:"flowtype,omitempty"` - Description string `json:"description,omitempty"` - + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` } diff --git a/resource/config/appflow/appflowpolicylabel_appflowpolicy_binding.go b/resource/config/appflowpolicylabel_appflowpolicy_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicylabel_appflowpolicy_binding.go rename to resource/config/appflowpolicylabel_appflowpolicy_binding.go index 5de209e..8049908 100644 --- a/resource/config/appflow/appflowpolicylabel_appflowpolicy_binding.go +++ b/resource/config/appflowpolicylabel_appflowpolicy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the appflowpolicy that can be bound to appflowpolicylabel. -*/ + */ type Appflowpolicylabelappflowpolicybinding struct { /** * Name of the AppFlow policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicylabel_binding.go b/resource/config/appflowpolicylabel_binding.go similarity index 91% rename from resource/config/appflow/appflowpolicylabel_binding.go rename to resource/config/appflowpolicylabel_binding.go index 2860e8b..f82be7d 100644 --- a/resource/config/appflow/appflowpolicylabel_binding.go +++ b/resource/config/appflowpolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** -* Binding object which returns the resources bound to appflowpolicylabel_binding. -*/ +* Binding object which returns the resources bound to appflowpolicylabel_binding. + */ type Appflowpolicylabelbinding struct { /** - * Name of the policy label about which to display detailed information.
Minimum value = - */ + * Name of the policy label about which to display detailed information.
Minimum value = + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appflow/appflowpolicylabel_policy_binding.go b/resource/config/appflowpolicylabel_policy_binding.go similarity index 96% rename from resource/config/appflow/appflowpolicylabel_policy_binding.go rename to resource/config/appflowpolicylabel_policy_binding.go index ee5048c..459874b 100644 --- a/resource/config/appflow/appflowpolicylabel_policy_binding.go +++ b/resource/config/appflowpolicylabel_policy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appflow +package config /** * Binding class showing the policy that can be bound to appflowpolicylabel. -*/ + */ type Appflowpolicylabelpolicybinding struct { /** * Name of the AppFlow policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwtransactionrecords.go b/resource/config/appfw/appfwtransactionrecords.go deleted file mode 100644 index 4734c6c..0000000 --- a/resource/config/appfw/appfwtransactionrecords.go +++ /dev/null @@ -1,46 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package appfw - -/** -* Configuration for Application firewall transaction record resource. -*/ -type Appfwtransactionrecords struct { - /** - * Unique number that identifies the cluster node. - */ - Nodeid int `json:"nodeid,omitempty"` - - //------- Read only Parameter ---------; - - Httptransactionid string `json:"httptransactionid,omitempty"` - Packetengineid string `json:"packetengineid,omitempty"` - Appfwsessionid string `json:"appfwsessionid,omitempty"` - Profilename string `json:"profilename,omitempty"` - Url string `json:"url,omitempty"` - Clientip string `json:"clientip,omitempty"` - Destip string `json:"destip,omitempty"` - Starttime string `json:"starttime,omitempty"` - Endtime string `json:"endtime,omitempty"` - Requestcontentlength string `json:"requestcontentlength,omitempty"` - Requestyields string `json:"requestyields,omitempty"` - Requestmaxprocessingtime string `json:"requestmaxprocessingtime,omitempty"` - Responsecontentlength string `json:"responsecontentlength,omitempty"` - Responseyields string `json:"responseyields,omitempty"` - Responsemaxprocessingtime string `json:"responsemaxprocessingtime,omitempty"` - -} diff --git a/resource/config/appfw/appfwarchive.go b/resource/config/appfwarchive.go similarity index 97% rename from resource/config/appfw/appfwarchive.go rename to resource/config/appfwarchive.go index 61a103b..a93b702 100644 --- a/resource/config/appfw/appfwarchive.go +++ b/resource/config/appfwarchive.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for archive resource. -*/ + */ type Appfwarchive struct { /** * Name of tar archive - */ + */ Name string `json:"name,omitempty"` /** * Path to the file to be exported - */ + */ Target string `json:"target,omitempty"` /** * Indicates the source of the tar archive file as a URL @@ -39,16 +39,15 @@ type Appfwarchive struct { is the path of the file on the server. Import will fail if an https server requires client certificate authentication. - + */ Src string `json:"src,omitempty"` /** * Comments associated with this archive. - */ + */ Comment string `json:"comment,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/appfw/appfwconfidfield.go b/resource/config/appfwconfidfield.go similarity index 96% rename from resource/config/appfw/appfwconfidfield.go rename to resource/config/appfwconfidfield.go index e2926eb..6bbfc7c 100644 --- a/resource/config/appfw/appfwconfidfield.go +++ b/resource/config/appfwconfidfield.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for configured confidential form fields resource. -*/ + */ type Appfwconfidfield struct { /** * Name of the form field to designate as confidential. - */ + */ Fieldname string `json:"fieldname,omitempty"` /** * URL of the web page that contains the web form. - */ + */ Url string `json:"url,omitempty"` /** * Method of specifying the form field name. Available settings function as follows: @@ -36,11 +36,10 @@ type Appfwconfidfield struct { Isregex string `json:"isregex,omitempty"` /** * Any comments to preserve information about the form field designation. - */ + */ Comment string `json:"comment,omitempty"` /** * Enable or disable the confidential field designation. - */ + */ State string `json:"state,omitempty"` - } diff --git a/resource/config/appfw/appfwcustomsettings.go b/resource/config/appfwcustomsettings.go similarity index 92% rename from resource/config/appfw/appfwcustomsettings.go rename to resource/config/appfwcustomsettings.go index ae77a7d..2488d0a 100644 --- a/resource/config/appfw/appfwcustomsettings.go +++ b/resource/config/appfwcustomsettings.go @@ -12,15 +12,14 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for application firewall custom settings XML configuration resource. -*/ + */ type Appfwcustomsettings struct { - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty"` Target string `json:"target,omitempty"` - } diff --git a/resource/config/appfw/appfwfieldtype.go b/resource/config/appfwfieldtype.go similarity index 97% rename from resource/config/appfw/appfwfieldtype.go rename to resource/config/appfwfieldtype.go index 9c3f482..d92b80c 100644 --- a/resource/config/appfw/appfwfieldtype.go +++ b/resource/config/appfwfieldtype.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for application firewall form field type resource. -*/ + */ type Appfwfieldtype struct { /** * Name for the field type. @@ -29,24 +29,23 @@ type Appfwfieldtype struct { Name string `json:"name,omitempty"` /** * PCRE - format regular expression defining the characters and length allowed for this field type. - */ + */ Regex string `json:"regex,omitempty"` /** * Positive integer specifying the priority of the field type. A lower number specifies a higher priority. Field types are checked in the order of their priority numbers. - */ + */ Priority int `json:"priority,omitempty"` /** * Comment describing the type of field that this field type is intended to match. - */ + */ Comment string `json:"comment,omitempty"` /** * will not show internal field types added as part of FieldFormat learn rules deployment - */ + */ Nocharmaps bool `json:"nocharmaps,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/appfw/appfwglobal_appfwpolicy_binding.go b/resource/config/appfwglobal_appfwpolicy_binding.go similarity index 92% rename from resource/config/appfw/appfwglobal_appfwpolicy_binding.go rename to resource/config/appfwglobal_appfwpolicy_binding.go index 01bfddd..c445dcb 100644 --- a/resource/config/appfw/appfwglobal_appfwpolicy_binding.go +++ b/resource/config/appfwglobal_appfwpolicy_binding.go @@ -12,56 +12,54 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the appfwpolicy that can be bound to appfwglobal. -*/ + */ type Appfwglobalappfwpolicybinding struct { /** * Name of the policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. - */ + */ State string `json:"state,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol int `json:"numpol,omitempty"` /** * flowtype of the bound application firewall policy. - */ + */ Flowtype int `json:"flowtype,omitempty"` /** * Bind point to which to policy is bound. - */ - Type string `json:"type,omitempty"` - Policytype string `json:"policytype,omitempty"` + */ + Type string `json:"type,omitempty"` + Policytype string `json:"policytype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwglobal_auditnslogpolicy_binding.go b/resource/config/appfwglobal_auditnslogpolicy_binding.go similarity index 97% rename from resource/config/appfw/appfwglobal_auditnslogpolicy_binding.go rename to resource/config/appfwglobal_auditnslogpolicy_binding.go index cbd738b..176cc04 100644 --- a/resource/config/appfw/appfwglobal_auditnslogpolicy_binding.go +++ b/resource/config/appfwglobal_auditnslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the auditnslogpolicy that can be bound to appfwglobal. -*/ + */ type Appfwglobalauditnslogpolicybinding struct { /** * Name of the policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. - */ + */ State string `json:"state,omitempty"` /** * Bind point to which to policy is bound. - */ - Type string `json:"type,omitempty"` + */ + Type string `json:"type,omitempty"` Policytype string `json:"policytype,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -55,7 +55,7 @@ type Appfwglobalauditnslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: @@ -65,8 +65,6 @@ type Appfwglobalauditnslogpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwglobal_auditsyslogpolicy_binding.go b/resource/config/appfwglobal_auditsyslogpolicy_binding.go similarity index 97% rename from resource/config/appfw/appfwglobal_auditsyslogpolicy_binding.go rename to resource/config/appfwglobal_auditsyslogpolicy_binding.go index a50d1ba..fb36a75 100644 --- a/resource/config/appfw/appfwglobal_auditsyslogpolicy_binding.go +++ b/resource/config/appfwglobal_auditsyslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the auditsyslogpolicy that can be bound to appfwglobal. -*/ + */ type Appfwglobalauditsyslogpolicybinding struct { /** * Name of the policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. - */ + */ State string `json:"state,omitempty"` /** * Bind point to which to policy is bound. - */ - Type string `json:"type,omitempty"` + */ + Type string `json:"type,omitempty"` Policytype string `json:"policytype,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -55,7 +55,7 @@ type Appfwglobalauditsyslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: @@ -65,8 +65,6 @@ type Appfwglobalauditsyslogpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwglobal_binding.go b/resource/config/appfwglobal_binding.go similarity index 95% rename from resource/config/appfw/appfwglobal_binding.go rename to resource/config/appfwglobal_binding.go index 5eaa2d5..acf55f9 100644 --- a/resource/config/appfw/appfwglobal_binding.go +++ b/resource/config/appfwglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** -* Binding object which returns the resources bound to appfwglobal_binding. -*/ +* Binding object which returns the resources bound to appfwglobal_binding. + */ type Appfwglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwglobal_nslogpolicy_binding.go b/resource/config/appfwglobal_nslogpolicy_binding.go similarity index 97% rename from resource/config/appfw/appfwglobal_nslogpolicy_binding.go rename to resource/config/appfwglobal_nslogpolicy_binding.go index 202b17a..ecb4e5b 100644 --- a/resource/config/appfw/appfwglobal_nslogpolicy_binding.go +++ b/resource/config/appfwglobal_nslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the nslogpolicy that can be bound to appfwglobal. -*/ + */ type Appfwglobalnslogpolicybinding struct { /** * Name of the policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. - */ + */ State string `json:"state,omitempty"` /** * Bind point to which to policy is bound. - */ - Type string `json:"type,omitempty"` + */ + Type string `json:"type,omitempty"` Policytype string `json:"policytype,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -55,7 +55,7 @@ type Appfwglobalnslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: @@ -65,8 +65,6 @@ type Appfwglobalnslogpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwglobal_policy_binding.go b/resource/config/appfwglobal_policy_binding.go similarity index 92% rename from resource/config/appfw/appfwglobal_policy_binding.go rename to resource/config/appfwglobal_policy_binding.go index 1b68a8f..91972d3 100644 --- a/resource/config/appfw/appfwglobal_policy_binding.go +++ b/resource/config/appfwglobal_policy_binding.go @@ -12,56 +12,54 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the policy that can be bound to appfwglobal. -*/ + */ type Appfwglobalpolicybinding struct { /** * Name of the policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. - */ + */ State string `json:"state,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol uint32 `json:"numpol,omitempty"` /** * flowtype of the bound application firewall policy. - */ + */ Flowtype uint32 `json:"flowtype,omitempty"` /** * Bind point to which to policy is bound. - */ - Type string `json:"type,omitempty"` - Policytype string `json:"policytype,omitempty"` + */ + Type string `json:"type,omitempty"` + Policytype string `json:"policytype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwglobal_syslogpolicy_binding.go b/resource/config/appfwglobal_syslogpolicy_binding.go similarity index 97% rename from resource/config/appfw/appfwglobal_syslogpolicy_binding.go rename to resource/config/appfwglobal_syslogpolicy_binding.go index 8293949..3d34115 100644 --- a/resource/config/appfw/appfwglobal_syslogpolicy_binding.go +++ b/resource/config/appfwglobal_syslogpolicy_binding.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the syslogpolicy that can be bound to appfwglobal. -*/ + */ type Appfwglobalsyslogpolicybinding struct { /** * Name of the policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. - */ + */ State string `json:"state,omitempty"` /** * Bind point to which to policy is bound. - */ - Type string `json:"type,omitempty"` + */ + Type string `json:"type,omitempty"` Policytype string `json:"policytype,omitempty"` /** * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -55,7 +55,7 @@ type Appfwglobalsyslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: @@ -65,8 +65,6 @@ type Appfwglobalsyslogpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwhtmlerrorpage.go b/resource/config/appfwhtmlerrorpage.go similarity index 97% rename from resource/config/appfw/appfwhtmlerrorpage.go rename to resource/config/appfwhtmlerrorpage.go index 5aa9eff..12ac395 100644 --- a/resource/config/appfw/appfwhtmlerrorpage.go +++ b/resource/config/appfwhtmlerrorpage.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for HTML error page resource. -*/ + */ type Appfwhtmlerrorpage struct { /** * Name of the XML error object to remove. - */ + */ Name string `json:"name,omitempty"` /** * URL (protocol, host, path, and name) for the location at which to store the imported HTML error object. @@ -31,15 +31,14 @@ type Appfwhtmlerrorpage struct { Src string `json:"src,omitempty"` /** * Any comments to preserve information about the HTML error object. - */ + */ Comment string `json:"comment,omitempty"` /** * Overwrite any existing HTML error object of the same name. - */ + */ Overwrite bool `json:"overwrite,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/appfw/appfwjsoncontenttype.go b/resource/config/appfwjsoncontenttype.go similarity index 96% rename from resource/config/appfw/appfwjsoncontenttype.go rename to resource/config/appfwjsoncontenttype.go index 7ec449d..53f8866 100644 --- a/resource/config/appfw/appfwjsoncontenttype.go +++ b/resource/config/appfwjsoncontenttype.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for JSON content type resource. -*/ + */ type Appfwjsoncontenttype struct { /** * Content type to be classified as JSON - */ + */ Jsoncontenttypevalue string `json:"jsoncontenttypevalue,omitempty"` /** * Is json content type a regular expression? - */ + */ Isregex string `json:"isregex,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/appfw/appfwjsonerrorpage.go b/resource/config/appfwjsonerrorpage.go similarity index 97% rename from resource/config/appfw/appfwjsonerrorpage.go rename to resource/config/appfwjsonerrorpage.go index a80935a..99bff45 100644 --- a/resource/config/appfw/appfwjsonerrorpage.go +++ b/resource/config/appfwjsonerrorpage.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for JSON error page resource. -*/ + */ type Appfwjsonerrorpage struct { /** * Indicates name of the imported json error page to be removed. - */ + */ Name string `json:"name,omitempty"` /** * URL (protocol, host, path, and name) for the location at which to store the imported JSON error object. @@ -31,15 +31,14 @@ type Appfwjsonerrorpage struct { Src string `json:"src,omitempty"` /** * Any comments to preserve information about the JSON error object. - */ + */ Comment string `json:"comment,omitempty"` /** * Overwrite any existing JSON error object of the same name. - */ + */ Overwrite bool `json:"overwrite,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/appfw/appfwlearningdata.go b/resource/config/appfwlearningdata.go similarity index 85% rename from resource/config/appfw/appfwlearningdata.go rename to resource/config/appfwlearningdata.go index 1858464..b424929 100644 --- a/resource/config/appfw/appfwlearningdata.go +++ b/resource/config/appfwlearningdata.go @@ -12,101 +12,101 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for learning data resource. -*/ + */ type Appfwlearningdata struct { /** * Name of the profile. - */ + */ Profilename string `json:"profilename,omitempty"` /** * Start URL configuration. - */ + */ Starturl string `json:"starturl,omitempty"` /** * Cookie Name. - */ + */ Cookieconsistency string `json:"cookieconsistency,omitempty"` /** * Form field name. - */ + */ Fieldconsistency string `json:"fieldconsistency,omitempty"` /** * Form action URL. - */ + */ Formactionurlffc string `json:"formactionurl_ffc,omitempty"` /** * Content Type Name. - */ + */ Contenttype string `json:"contenttype,omitempty"` /** * Cross-site scripting. - */ + */ Crosssitescripting string `json:"crosssitescripting,omitempty"` /** * Form action URL. - */ + */ Formactionurlxss string `json:"formactionurl_xss,omitempty"` /** * Location of cross-site scripting exception - form field, header, cookie or url. - */ + */ Asscanlocationxss string `json:"as_scan_location_xss,omitempty"` /** * XSS value type. (Tag | Attribute | Pattern) - */ + */ Asvaluetypexss string `json:"as_value_type_xss,omitempty"` /** * XSS value expressions consistituting expressions for Tag, Attribute or Pattern. - */ + */ Asvalueexprxss string `json:"as_value_expr_xss,omitempty"` /** * Form field name. - */ + */ Sqlinjection string `json:"sqlinjection,omitempty"` /** * Form action URL. - */ + */ Formactionurlsql string `json:"formactionurl_sql,omitempty"` /** * Location of sql injection exception - form field, header or cookie. - */ + */ Asscanlocationsql string `json:"as_scan_location_sql,omitempty"` /** * SQL value type. Keyword, SpecialString or Wildchar - */ + */ Asvaluetypesql string `json:"as_value_type_sql,omitempty"` /** * SQL value expressions consistituting expressions for Keyword, SpecialString or Wildchar. - */ + */ Asvalueexprsql string `json:"as_value_expr_sql,omitempty"` /** * Field format name. - */ + */ Fieldformat string `json:"fieldformat,omitempty"` /** * Form action URL. - */ + */ Formactionurlff string `json:"formactionurl_ff,omitempty"` /** * CSRF Form Action URL - */ + */ Csrftag string `json:"csrftag,omitempty"` /** * CSRF Form Origin URL. - */ + */ Csrfformoriginurl string `json:"csrfformoriginurl,omitempty"` /** * The object expression that is to be excluded from safe commerce check. - */ + */ Creditcardnumber string `json:"creditcardnumber,omitempty"` /** * The url for which the list of credit card numbers are needed to be bypassed from inspection - */ + */ Creditcardnumberurl string `json:"creditcardnumberurl,omitempty"` /** * XML Denial of Service check, one of @@ -133,36 +133,35 @@ type Appfwlearningdata struct { Xmldoscheck string `json:"xmldoscheck,omitempty"` /** * Web Services Interoperability Rule ID. - */ + */ Xmlwsicheck string `json:"xmlwsicheck,omitempty"` /** * XML Attachment Content-Type. - */ + */ Xmlattachmentcheck string `json:"xmlattachmentcheck,omitempty"` /** * Total XML requests. - */ + */ Totalxmlrequests bool `json:"totalxmlrequests,omitempty"` /** * Name of the security check. - */ + */ Securitycheck string `json:"securitycheck,omitempty"` /** * Target filename for data to be exported. - */ + */ Target string `json:"target,omitempty"` //------- Read only Parameter ---------; - Url string `json:"url,omitempty"` - Name string `json:"name,omitempty"` - Fieldtype string `json:"fieldtype,omitempty"` - Fieldformatminlength string `json:"fieldformatminlength,omitempty"` - Fieldformatmaxlength string `json:"fieldformatmaxlength,omitempty"` + Url string `json:"url,omitempty"` + Name string `json:"name,omitempty"` + Fieldtype string `json:"fieldtype,omitempty"` + Fieldformatminlength string `json:"fieldformatminlength,omitempty"` + Fieldformatmaxlength string `json:"fieldformatmaxlength,omitempty"` Fieldformatcharmappcre string `json:"fieldformatcharmappcre,omitempty"` - Valuetype string `json:"value_type,omitempty"` - Value string `json:"value,omitempty"` - Hits string `json:"hits,omitempty"` - Data string `json:"data,omitempty"` - + Valuetype string `json:"value_type,omitempty"` + Value string `json:"value,omitempty"` + Hits string `json:"hits,omitempty"` + Data string `json:"data,omitempty"` } diff --git a/resource/config/appfw/appfwlearningsettings.go b/resource/config/appfwlearningsettings.go similarity index 97% rename from resource/config/appfw/appfwlearningsettings.go rename to resource/config/appfwlearningsettings.go index ecf1b71..bec93f9 100644 --- a/resource/config/appfw/appfwlearningsettings.go +++ b/resource/config/appfwlearningsettings.go @@ -12,137 +12,136 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for learning settings resource. -*/ + */ type Appfwlearningsettings struct { /** * Name of the profile. - */ + */ Profilename string `json:"profilename,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn start URLs. - */ + */ Starturlminthreshold int `json:"starturlminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular start URL pattern for the learning engine to learn that start URL. - */ + */ Starturlpercentthreshold int `json:"starturlpercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn cookies. - */ + */ Cookieconsistencyminthreshold int `json:"cookieconsistencyminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular cookie pattern for the learning engine to learn that cookie. - */ + */ Cookieconsistencypercentthreshold int `json:"cookieconsistencypercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn cross-site request forgery (CSRF) tags. - */ + */ Csrftagminthreshold int `json:"csrftagminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular CSRF tag for the learning engine to learn that CSRF tag. - */ + */ Csrftagpercentthreshold int `json:"csrftagpercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn field consistency information. - */ + */ Fieldconsistencyminthreshold int `json:"fieldconsistencyminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular field consistency pattern for the learning engine to learn that field consistency pattern. - */ + */ Fieldconsistencypercentthreshold int `json:"fieldconsistencypercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn HTML cross-site scripting patterns. - */ + */ Crosssitescriptingminthreshold int `json:"crosssitescriptingminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular cross-site scripting pattern for the learning engine to learn that cross-site scripting pattern. - */ + */ Crosssitescriptingpercentthreshold int `json:"crosssitescriptingpercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn HTML SQL injection patterns. - */ + */ Sqlinjectionminthreshold int `json:"sqlinjectionminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular HTML SQL injection pattern for the learning engine to learn that HTML SQL injection pattern. - */ + */ Sqlinjectionpercentthreshold int `json:"sqlinjectionpercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn field formats. - */ + */ Fieldformatminthreshold int `json:"fieldformatminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular web form field pattern for the learning engine to recommend a field format for that form field. - */ + */ Fieldformatpercentthreshold int `json:"fieldformatpercentthreshold,omitempty"` /** * Minimum threshold to learn Credit Card information. - */ + */ Creditcardnumberminthreshold int `json:"creditcardnumberminthreshold,omitempty"` /** * Minimum threshold in percent to learn Credit Card information. - */ + */ Creditcardnumberpercentthreshold int `json:"creditcardnumberpercentthreshold,omitempty"` /** * Minimum threshold to learn Content Type information. - */ + */ Contenttypeminthreshold int `json:"contenttypeminthreshold,omitempty"` /** * Minimum threshold in percent to learn Content Type information. - */ + */ Contenttypepercentthreshold int `json:"contenttypepercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn web services interoperability (WSI) information. - */ + */ Xmlwsiminthreshold int `json:"xmlwsiminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular pattern for the learning engine to learn a web services interoperability (WSI) pattern. - */ + */ Xmlwsipercentthreshold int `json:"xmlwsipercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn XML attachment patterns. - */ + */ Xmlattachmentminthreshold int `json:"xmlattachmentminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular XML attachment pattern for the learning engine to learn that XML attachment pattern. - */ + */ Xmlattachmentpercentthreshold int `json:"xmlattachmentpercentthreshold,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed - */ + */ Fieldformatautodeploygraceperiod int `json:"fieldformatautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed - */ + */ Sqlinjectionautodeploygraceperiod int `json:"sqlinjectionautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed - */ + */ Crosssitescriptingautodeploygraceperiod int `json:"crosssitescriptingautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed - */ + */ Starturlautodeploygraceperiod int `json:"starturlautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed - */ + */ Cookieconsistencyautodeploygraceperiod int `json:"cookieconsistencyautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed - */ + */ Csrftagautodeploygraceperiod int `json:"csrftagautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed - */ + */ Fieldconsistencyautodeploygraceperiod int `json:"fieldconsistencyautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed - */ + */ Contenttypeautodeploygraceperiod int `json:"contenttypeautodeploygraceperiod,omitempty"` - } diff --git a/resource/config/appfw/appfwmultipartformcontenttype.go b/resource/config/appfwmultipartformcontenttype.go similarity index 97% rename from resource/config/appfw/appfwmultipartformcontenttype.go rename to resource/config/appfwmultipartformcontenttype.go index db23304..a37e49b 100644 --- a/resource/config/appfw/appfwmultipartformcontenttype.go +++ b/resource/config/appfwmultipartformcontenttype.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for Multipart form content type resource. -*/ + */ type Appfwmultipartformcontenttype struct { /** * Content type to be classified as multipart form - */ + */ Multipartformcontenttypevalue string `json:"multipartformcontenttypevalue,omitempty"` /** * Is multipart_form content type a regular expression? - */ + */ Isregex string `json:"isregex,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/appfw/appfwpolicy.go b/resource/config/appfwpolicy.go similarity index 90% rename from resource/config/appfw/appfwpolicy.go rename to resource/config/appfwpolicy.go index 9c507a1..40842da 100644 --- a/resource/config/appfw/appfwpolicy.go +++ b/resource/config/appfwpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for application firewall policy resource. -*/ + */ type Appfwpolicy struct { /** - * Name for the policy. + * Name for the policy. Must begin with a letter, number, or the underscore character \(_\), and must contain only letters, numbers, and the hyphen \(-\), period \(.\) pound \(\#\), space \( \), at (@), equals \(=\), colon \(:\), and underscore characters. Can be changed after the policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my policy" or 'my policy'\). @@ -29,19 +29,19 @@ type Appfwpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or a Citrix ADC expression, that the policy uses to determine whether to filter the connection through the application firewall with the designated profile. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the application firewall profile to use if the policy matches. - */ + */ Profilename string `json:"profilename,omitempty"` /** * Any comments to preserve information about the policy for later reference. - */ + */ Comment string `json:"comment,omitempty"` /** * Where to log information for connections that match this policy. - */ + */ Logaction string `json:"logaction,omitempty"` /** * New name for the policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. @@ -52,10 +52,9 @@ type Appfwpolicy struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Undefhits string `json:"undefhits,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` Policytype string `json:"policytype,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/appfw/appfwpolicy_appfwglobal_binding.go b/resource/config/appfwpolicy_appfwglobal_binding.go similarity index 96% rename from resource/config/appfw/appfwpolicy_appfwglobal_binding.go rename to resource/config/appfwpolicy_appfwglobal_binding.go index c25a861..d1e62f1 100644 --- a/resource/config/appfw/appfwpolicy_appfwglobal_binding.go +++ b/resource/config/appfwpolicy_appfwglobal_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the appfwglobal that can be bound to appfwpolicy. -*/ + */ type Appfwpolicyappfwglobalbinding struct { /** * The entity name to which policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicy_appfwpolicylabel_binding.go b/resource/config/appfwpolicy_appfwpolicylabel_binding.go similarity index 96% rename from resource/config/appfw/appfwpolicy_appfwpolicylabel_binding.go rename to resource/config/appfwpolicy_appfwpolicylabel_binding.go index 2de0600..5cc96eb 100644 --- a/resource/config/appfw/appfwpolicy_appfwpolicylabel_binding.go +++ b/resource/config/appfwpolicy_appfwpolicylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the appfwpolicylabel that can be bound to appfwpolicy. -*/ + */ type Appfwpolicyappfwpolicylabelbinding struct { /** * The entity name to which policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicy_binding.go b/resource/config/appfwpolicy_binding.go similarity index 89% rename from resource/config/appfw/appfwpolicy_binding.go rename to resource/config/appfwpolicy_binding.go index 81647d2..63264f5 100644 --- a/resource/config/appfw/appfwpolicy_binding.go +++ b/resource/config/appfwpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** -* Binding object which returns the resources bound to appfwpolicy_binding. -*/ +* Binding object which returns the resources bound to appfwpolicy_binding. + */ type Appfwpolicybinding struct { /** - * Name of the policy.
Minimum value = - */ + * Name of the policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicy_csvserver_binding.go b/resource/config/appfwpolicy_csvserver_binding.go similarity index 96% rename from resource/config/appfw/appfwpolicy_csvserver_binding.go rename to resource/config/appfwpolicy_csvserver_binding.go index 43f7eb7..c7e7ba8 100644 --- a/resource/config/appfw/appfwpolicy_csvserver_binding.go +++ b/resource/config/appfwpolicy_csvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the csvserver that can be bound to appfwpolicy. -*/ + */ type Appfwpolicycsvserverbinding struct { /** * The entity name to which policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicy_global_binding.go b/resource/config/appfwpolicy_global_binding.go similarity index 96% rename from resource/config/appfw/appfwpolicy_global_binding.go rename to resource/config/appfwpolicy_global_binding.go index 04b2892..cf69bd9 100644 --- a/resource/config/appfw/appfwpolicy_global_binding.go +++ b/resource/config/appfwpolicy_global_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the global that can be bound to appfwpolicy. -*/ + */ type Appfwpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicy_lbvserver_binding.go b/resource/config/appfwpolicy_lbvserver_binding.go similarity index 96% rename from resource/config/appfw/appfwpolicy_lbvserver_binding.go rename to resource/config/appfwpolicy_lbvserver_binding.go index ce62f1f..6a7e3cd 100644 --- a/resource/config/appfw/appfwpolicy_lbvserver_binding.go +++ b/resource/config/appfwpolicy_lbvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the lbvserver that can be bound to appfwpolicy. -*/ + */ type Appfwpolicylbvserverbinding struct { /** * The entity name to which policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicy_policylabel_binding.go b/resource/config/appfwpolicy_policylabel_binding.go similarity index 96% rename from resource/config/appfw/appfwpolicy_policylabel_binding.go rename to resource/config/appfwpolicy_policylabel_binding.go index c5eeea9..7260d67 100644 --- a/resource/config/appfw/appfwpolicy_policylabel_binding.go +++ b/resource/config/appfwpolicy_policylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the policylabel that can be bound to appfwpolicy. -*/ + */ type Appfwpolicypolicylabelbinding struct { /** * The entity name to which policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicy_vserver_binding.go b/resource/config/appfwpolicy_vserver_binding.go similarity index 96% rename from resource/config/appfw/appfwpolicy_vserver_binding.go rename to resource/config/appfwpolicy_vserver_binding.go index 29d0a32..7d4db65 100644 --- a/resource/config/appfw/appfwpolicy_vserver_binding.go +++ b/resource/config/appfwpolicy_vserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the vserver that can be bound to appfwpolicy. -*/ + */ type Appfwpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicylabel.go b/resource/config/appfwpolicylabel.go similarity index 78% rename from resource/config/appfw/appfwpolicylabel.go rename to resource/config/appfwpolicylabel.go index a544eb6..a47a0ec 100644 --- a/resource/config/appfw/appfwpolicylabel.go +++ b/resource/config/appfwpolicylabel.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for application firewall policy label resource. -*/ + */ type Appfwpolicylabel struct { /** * Name for the policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the policy label is created. @@ -28,22 +28,21 @@ type Appfwpolicylabel struct { Labelname string `json:"labelname,omitempty"` /** * Type of transformations allowed by the policies bound to the label. Always http_req for application firewall policy labels. - */ + */ Policylabeltype string `json:"policylabeltype,omitempty"` /** * The new name of the application firewall policylabel. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Priority string `json:"priority,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Description string `json:"description,omitempty"` - Policytype string `json:"policytype,omitempty"` - + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Description string `json:"description,omitempty"` + Policytype string `json:"policytype,omitempty"` } diff --git a/resource/config/appfw/appfwpolicylabel_appfwpolicy_binding.go b/resource/config/appfwpolicylabel_appfwpolicy_binding.go similarity index 97% rename from resource/config/appfw/appfwpolicylabel_appfwpolicy_binding.go rename to resource/config/appfwpolicylabel_appfwpolicy_binding.go index f3939d5..83338db 100644 --- a/resource/config/appfw/appfwpolicylabel_appfwpolicy_binding.go +++ b/resource/config/appfwpolicylabel_appfwpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the appfwpolicy that can be bound to appfwpolicylabel. -*/ + */ type Appfwpolicylabelappfwpolicybinding struct { /** * Name of the application firewall policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Positive integer specifying the priority of the policy. A lower number specifies a higher priority. Must be unique within a group of policies that are bound to the same bind point or label. Policies are evaluated in the order of their priority numbers. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: @@ -44,12 +44,10 @@ type Appfwpolicylabelappfwpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the application firewall policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicylabel_binding.go b/resource/config/appfwpolicylabel_binding.go similarity index 94% rename from resource/config/appfw/appfwpolicylabel_binding.go rename to resource/config/appfwpolicylabel_binding.go index 69f19d3..604bc5c 100644 --- a/resource/config/appfw/appfwpolicylabel_binding.go +++ b/resource/config/appfwpolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** -* Binding object which returns the resources bound to appfwpolicylabel_binding. -*/ +* Binding object which returns the resources bound to appfwpolicylabel_binding. + */ type Appfwpolicylabelbinding struct { /** * Name of the application firewall policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicylabel_policy_binding.go b/resource/config/appfwpolicylabel_policy_binding.go similarity index 97% rename from resource/config/appfw/appfwpolicylabel_policy_binding.go rename to resource/config/appfwpolicylabel_policy_binding.go index 5ff0c0c..d441ae7 100644 --- a/resource/config/appfw/appfwpolicylabel_policy_binding.go +++ b/resource/config/appfwpolicylabel_policy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the policy that can be bound to appfwpolicylabel. -*/ + */ type Appfwpolicylabelpolicybinding struct { /** * Name of the application firewall policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Positive integer specifying the priority of the policy. A lower number specifies a higher priority. Must be unique within a group of policies that are bound to the same bind point or label. Policies are evaluated in the order of their priority numbers. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: @@ -44,12 +44,10 @@ type Appfwpolicylabelpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the application firewall policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwpolicylabel_policybinding_binding.go b/resource/config/appfwpolicylabel_policybinding_binding.go similarity index 97% rename from resource/config/appfw/appfwpolicylabel_policybinding_binding.go rename to resource/config/appfwpolicylabel_policybinding_binding.go index ca8ae3f..963e546 100644 --- a/resource/config/appfw/appfwpolicylabel_policybinding_binding.go +++ b/resource/config/appfwpolicylabel_policybinding_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the policybinding that can be bound to appfwpolicylabel. -*/ + */ type Appfwpolicylabelpolicybindingbinding struct { /** * Name of the application firewall policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Positive integer specifying the priority of the policy. A lower number specifies a higher priority. Must be unique within a group of policies that are bound to the same bind point or label. Policies are evaluated in the order of their priority numbers. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: @@ -44,12 +44,10 @@ type Appfwpolicylabelpolicybindingbinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the application firewall policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile.go b/resource/config/appfwprofile.go similarity index 97% rename from resource/config/appfw/appfwprofile.go rename to resource/config/appfwprofile.go index 13b8f92..0636f79 100644 --- a/resource/config/appfw/appfwprofile.go +++ b/resource/config/appfwprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for application firewall profile resource. -*/ + */ type Appfwprofile struct { /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -61,7 +61,7 @@ type Appfwprofile struct { */ Contenttypeaction []string `json:"contenttypeaction,omitempty"` /** - * One or more InspectContentType lists. + * One or more InspectContentType lists. * application/x-www-form-urlencoded * multipart/form-data * text/x-gwt-rpc @@ -70,7 +70,7 @@ type Appfwprofile struct { Inspectcontenttypes []string `json:"inspectcontenttypes,omitempty"` /** * Toggle the state of Start URL Closure. - */ + */ Starturlclosure string `json:"starturlclosure,omitempty"` /** * One or more Deny URL actions. Available settings function as follows: @@ -83,8 +83,8 @@ type Appfwprofile struct { */ Denyurlaction []string `json:"denyurlaction,omitempty"` /** - * Enable validation of Referer headers. - Referer validation ensures that a web form that a user sends to your web site originally came from your web site, not an outside attacker. + * Enable validation of Referer headers. + Referer validation ensures that a web form that a user sends to your web site originally came from your web site, not an outside attacker. Although this parameter is part of the Start URL check, referer validation protects against cross-site request forgery (CSRF) attacks, not Start URL attacks. */ Refererheadercheck string `json:"refererheadercheck,omitempty"` @@ -109,8 +109,8 @@ type Appfwprofile struct { */ Cookiehijackingaction []string `json:"cookiehijackingaction,omitempty"` /** - * Perform the specified type of cookie transformation. - Available settings function as follows: + * Perform the specified type of cookie transformation. + Available settings function as follows: * Encryption - Encrypt cookies. * Proxying - Mask contents of server cookies by sending proxy cookie to users. * Cookie flags - Flag cookies as HTTP only to prevent scripts on user's browser from accessing and possibly modifying them. @@ -170,13 +170,13 @@ type Appfwprofile struct { */ Crosssitescriptingaction []string `json:"crosssitescriptingaction,omitempty"` /** - * Transform cross-site scripts. This setting configures the application firewall to disable dangerous HTML instead of blocking the request. + * Transform cross-site scripts. This setting configures the application firewall to disable dangerous HTML instead of blocking the request. CAUTION: Make sure that this parameter is set to ON if you are configuring any cross-site scripting transformations. If it is set to OFF, no cross-site scripting transformations are performed regardless of any other settings. */ Crosssitescriptingtransformunsafehtml string `json:"crosssitescriptingtransformunsafehtml,omitempty"` /** * Check complete URLs for cross-site scripts, instead of just the query portions of URLs. - */ + */ Crosssitescriptingcheckcompleteurls string `json:"crosssitescriptingcheckcompleteurls,omitempty"` /** * One or more HTML SQL Injection actions. Available settings function as follows: @@ -198,7 +198,7 @@ type Appfwprofile struct { */ Cmdinjectionaction []string `json:"cmdinjectionaction,omitempty"` /** - * Available CMD injection types. + * Available CMD injection types. -CMDSplChar : Checks for CMD Special Chars -CMDKeyword : Checks for CMD Keywords -CMDSplCharANDKeyword : Checks for both and blocks if both are found @@ -207,7 +207,7 @@ type Appfwprofile struct { Cmdinjectiontype string `json:"cmdinjectiontype,omitempty"` /** * Check for SQL injection using SQL grammar - */ + */ Sqlinjectiongrammar string `json:"sqlinjectiongrammar,omitempty"` /** * Transform injected SQL code. This setting configures the application firewall to disable SQL special strings instead of blocking the request. Since most SQL servers require a special string to activate an SQL keyword, in most cases a request that contains injected SQL code is safe if special strings are disabled. @@ -220,7 +220,7 @@ type Appfwprofile struct { */ Sqlinjectiononlycheckfieldswithsqlchars string `json:"sqlinjectiononlycheckfieldswithsqlchars,omitempty"` /** - * Available SQL injection types. + * Available SQL injection types. -SQLSplChar : Checks for SQL Special Chars -SQLKeyword : Checks for SQL Keywords -SQLSplCharANDKeyword : Checks for both and blocks if both are found @@ -230,7 +230,7 @@ type Appfwprofile struct { Sqlinjectiontype string `json:"sqlinjectiontype,omitempty"` /** * Check for form fields that contain SQL wild chars . - */ + */ Sqlinjectionchecksqlwildchars string `json:"sqlinjectionchecksqlwildchars,omitempty"` /** * One or more Field Format actions. Available settings function as follows: @@ -244,16 +244,16 @@ type Appfwprofile struct { Fieldformataction []string `json:"fieldformataction,omitempty"` /** * Designate a default field type to be applied to web form fields that do not have a field type explicitly assigned to them. - */ + */ Defaultfieldformattype string `json:"defaultfieldformattype,omitempty"` /** - * Minimum length, in characters, for data entered into a field that is assigned the default field type. + * Minimum length, in characters, for data entered into a field that is assigned the default field type. To disable the minimum and maximum length settings and allow data of any length to be entered into the field, set this parameter to zero (0). */ Defaultfieldformatminlength int `json:"defaultfieldformatminlength,omitempty"` /** * Maximum length, in characters, for data entered into a field that is assigned the default field type. - */ + */ Defaultfieldformatmaxlength int `json:"defaultfieldformatmaxlength,omitempty"` /** * One or more Buffer Overflow actions. Available settings function as follows: @@ -266,23 +266,23 @@ type Appfwprofile struct { Bufferoverflowaction []string `json:"bufferoverflowaction,omitempty"` /** * Maximum length, in characters, for URLs on your protected web sites. Requests with longer URLs are blocked. - */ + */ Bufferoverflowmaxurllength int `json:"bufferoverflowmaxurllength,omitempty"` /** * Maximum length, in characters, for HTTP headers in requests sent to your protected web sites. Requests with longer headers are blocked. - */ + */ Bufferoverflowmaxheaderlength int `json:"bufferoverflowmaxheaderlength,omitempty"` /** * Maximum length, in characters, for cookies sent to your protected web sites. Requests with longer cookies are blocked. - */ + */ Bufferoverflowmaxcookielength int `json:"bufferoverflowmaxcookielength,omitempty"` /** * Maximum length, in bytes, for query string sent to your protected web sites. Requests with longer query strings are blocked. - */ + */ Bufferoverflowmaxquerylength int `json:"bufferoverflowmaxquerylength,omitempty"` /** * Maximum length, in bytes, for the total HTTP header length in requests sent to your protected web sites. The minimum value of this and maxHeaderLen in httpProfile will be used. Requests with longer length are blocked. - */ + */ Bufferoverflowmaxtotalheaderlength int `json:"bufferoverflowmaxtotalheaderlength,omitempty"` /** * One or more Credit Card actions. Available settings function as follows: @@ -295,35 +295,35 @@ type Appfwprofile struct { Creditcardaction []string `json:"creditcardaction,omitempty"` /** * Credit card types that the application firewall should protect. - */ + */ Creditcard []string `json:"creditcard,omitempty"` /** * This parameter value is used by the block action. It represents the maximum number of credit card numbers that can appear on a web page served by your protected web sites. Pages that contain more credit card numbers are blocked. - */ + */ Creditcardmaxallowed int `json:"creditcardmaxallowed,omitempty"` /** * Mask any credit card number detected in a response by replacing each digit, except the digits in the final group, with the letter "X." - */ + */ Creditcardxout string `json:"creditcardxout,omitempty"` /** * Setting this option logs credit card numbers in the response when the match is found. - */ + */ Dosecurecreditcardlogging string `json:"dosecurecreditcardlogging,omitempty"` /** * Setting this option converts content-length form submission requests (requests with content-type "application/x-www-form-urlencoded" or "multipart/form-data") to chunked requests when atleast one of the following protections : Signatures, SQL injection protection, XSS protection, form field consistency protection, starturl closure, CSRF tagging, JSON SQL, JSON XSS, JSON DOS is enabled. Please make sure that the backend server accepts chunked requests before enabling this option. Citrix recommends enabling this option for large request sizes(>20MB). - */ + */ Streaming string `json:"streaming,omitempty"` /** * Toggle the state of trace - */ + */ Trace string `json:"trace,omitempty"` /** - * Default Content-Type header for requests. + * Default Content-Type header for requests. A Content-Type header can contain 0-255 letters, numbers, and the hyphen (-) and underscore (_) characters. */ Requestcontenttype string `json:"requestcontenttype,omitempty"` /** - * Default Content-Type header for responses. + * Default Content-Type header for responses. A Content-Type header can contain 0-255 letters, numbers, and the hyphen (-) and underscore (_) characters. */ Responsecontenttype string `json:"responsecontenttype,omitempty"` @@ -335,11 +335,11 @@ type Appfwprofile struct { Jsonerrorobject string `json:"jsonerrorobject,omitempty"` /** * Response status code associated with JSON error page - */ + */ Jsonerrorstatuscode int `json:"jsonerrorstatuscode,omitempty"` /** * Response status message associated with JSON error page - */ + */ Jsonerrorstatusmessage string `json:"jsonerrorstatusmessage,omitempty"` /** * One or more JSON Denial-of-Service (JsonDoS) actions. Available settings function as follows: @@ -370,7 +370,7 @@ type Appfwprofile struct { Jsonsqlinjectiontype string `json:"jsonsqlinjectiontype,omitempty"` /** * Check for SQL injection using SQL grammar in JSON - */ + */ Jsonsqlinjectiongrammar string `json:"jsonsqlinjectiongrammar,omitempty"` /** * One or more JSON CMD Injection actions. Available settings function as follows: @@ -428,7 +428,7 @@ type Appfwprofile struct { Xmlsqlinjectionaction []string `json:"xmlsqlinjectionaction,omitempty"` /** * Check only form fields that contain SQL special characters, which most SQL servers require before accepting an SQL command, for injected SQL. - */ + */ Xmlsqlinjectiononlycheckfieldswithsqlchars string `json:"xmlsqlinjectiononlycheckfieldswithsqlchars,omitempty"` /** * Available SQL injection types. @@ -440,12 +440,12 @@ type Appfwprofile struct { Xmlsqlinjectiontype string `json:"xmlsqlinjectiontype,omitempty"` /** * Check for form fields that contain SQL wild chars . - */ + */ Xmlsqlinjectionchecksqlwildchars string `json:"xmlsqlinjectionchecksqlwildchars,omitempty"` /** * Parse comments in XML Data and exempt those sections of the request that are from the XML SQL Injection check. You must configure the type of comments that the application firewall is to detect and exempt from this security check. Available settings function as follows: * Check all - Check all content. - * ANSI - Exempt content that is part of an ANSI (Mozilla-style) comment. + * ANSI - Exempt content that is part of an ANSI (Mozilla-style) comment. * Nested - Exempt content that is part of a nested (Microsoft-style) comment. * ANSI Nested - Exempt content that is part of any type of comment. */ @@ -484,7 +484,7 @@ type Appfwprofile struct { * Block - Block connections that violate this security check. * Log - Log violations of this security check. * Stats - Generate statistics for this security check. - * None - Disable all actions for this security check. + * None - Disable all actions for this security check. CLI users: To enable one or more actions, type "set appfw profile -XMLValidationAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLValidationAction none". */ Xmlvalidationaction []string `json:"xmlvalidationaction,omitempty"` @@ -497,20 +497,20 @@ type Appfwprofile struct { Xmlerrorobject string `json:"xmlerrorobject,omitempty"` /** * Response status code associated with XML error page - */ + */ Xmlerrorstatuscode int `json:"xmlerrorstatuscode,omitempty"` /** * Response status message associated with XML error page - */ + */ Xmlerrorstatusmessage string `json:"xmlerrorstatusmessage,omitempty"` /** * Object name for custom settings. - This check is applicable to Profile Type: HTML, XML. + This check is applicable to Profile Type: HTML, XML. */ Customsettings string `json:"customsettings,omitempty"` /** * Object name for signatures. - This check is applicable to Profile Type: HTML, XML. + This check is applicable to Profile Type: HTML, XML. */ Signatures string `json:"signatures,omitempty"` /** @@ -525,14 +525,14 @@ type Appfwprofile struct { Xmlsoapfaultaction []string `json:"xmlsoapfaultaction,omitempty"` /** * Send an imported HTML Error object to a user when a request is blocked, instead of redirecting the user to the designated Error URL. - */ + */ Usehtmlerrorobject string `json:"usehtmlerrorobject,omitempty"` /** * URL that application firewall uses as the Error URL. - */ + */ Errorurl string `json:"errorurl,omitempty"` /** - * Name to assign to the HTML Error Object. + * Name to assign to the HTML Error Object. Must begin with a letter, number, or the underscore character \(_\), and must contain only letters, numbers, and the hyphen \(-\), period \(.\) pound \(\#\), space \( \), at (@), equals \(=\), colon \(:\), and underscore characters. Cannot be changed after the HTML error object is added. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my HTML error object" or 'my HTML error object'\). @@ -540,35 +540,35 @@ type Appfwprofile struct { Htmlerrorobject string `json:"htmlerrorobject,omitempty"` /** * Response status code associated with HTML error page - */ + */ Htmlerrorstatuscode int `json:"htmlerrorstatuscode,omitempty"` /** * Response status message associated with HTML error page - */ + */ Htmlerrorstatusmessage string `json:"htmlerrorstatusmessage,omitempty"` /** * Log every profile match, regardless of security checks results. - */ + */ Logeverypolicyhit string `json:"logeverypolicyhit,omitempty"` /** * Strip HTML comments. - This check is applicable to Profile Type: HTML. + This check is applicable to Profile Type: HTML. */ Stripcomments string `json:"stripcomments,omitempty"` /** * Strip HTML comments before forwarding a web page sent by a protected web site in response to a user request. - */ + */ Striphtmlcomments string `json:"striphtmlcomments,omitempty"` /** * Strip XML comments before forwarding a web page sent by a protected web site in response to a user request. - */ + */ Stripxmlcomments string `json:"stripxmlcomments,omitempty"` /** * Exempt URLs that pass the Start URL closure check from SQL injection, cross-site script, field format and field consistency security checks at locations other than headers. - */ + */ Exemptclosureurlsfromsecuritychecks string `json:"exemptclosureurlsfromsecuritychecks,omitempty"` /** - * Default character set for protected web pages. Web pages sent by your protected web sites in response to user requests are assigned this character set if the page does not already specify a character set. The character sets supported by the application firewall are: + * Default character set for protected web pages. Web pages sent by your protected web sites in response to user requests are assigned this character set if the page does not already specify a character set. The character sets supported by the application firewall are: * iso-8859-1 (English US) * big5 (Chinese Traditional) * gb2312 (Chinese Simplified) @@ -590,7 +590,7 @@ type Appfwprofile struct { Dynamiclearning []string `json:"dynamiclearning,omitempty"` /** * Maximum allowed HTTP post body size, in bytes. Maximum supported value is 10GB. Citrix recommends enabling streaming option for large values of post body limit (>20MB). - */ + */ Postbodylimit int `json:"postbodylimit,omitempty"` /** * One or more Post Body Limit actions. Available settings function as follows: @@ -602,47 +602,47 @@ type Appfwprofile struct { Postbodylimitaction []string `json:"postbodylimitaction,omitempty"` /** * Maximum allowed HTTP post body size for signature inspection for location HTTP_POST_BODY in the signatures, in bytes. Note that the changes in value could impact CPU and latency profile. - */ + */ Postbodylimitsignature int `json:"postbodylimitsignature,omitempty"` /** * Maximum allowed number of file uploads per form-submission request. The maximum setting (65535) allows an unlimited number of uploads. - */ + */ Fileuploadmaxnum int `json:"fileuploadmaxnum,omitempty"` /** * Perform HTML entity encoding for any special characters in responses sent by your protected web sites. - */ + */ Canonicalizehtmlresponse string `json:"canonicalizehtmlresponse,omitempty"` /** * Enable tagging of web form fields for use by the Form Field Consistency and CSRF Form Tagging checks. - */ + */ Enableformtagging string `json:"enableformtagging,omitempty"` /** * Perform sessionless Field Consistency Checks. - */ + */ Sessionlessfieldconsistency string `json:"sessionlessfieldconsistency,omitempty"` /** * Enable session less URL Closure Checks. - This check is applicable to Profile Type: HTML. + This check is applicable to Profile Type: HTML. */ Sessionlessurlclosure string `json:"sessionlessurlclosure,omitempty"` /** - * Allow ';' as a form field separator in URL queries and POST form bodies. - */ + * Allow ';' as a form field separator in URL queries and POST form bodies. + */ Semicolonfieldseparator string `json:"semicolonfieldseparator,omitempty"` /** * Exclude uploaded files from Form checks. - */ + */ Excludefileuploadfromchecks string `json:"excludefileuploadfromchecks,omitempty"` /** * Parse HTML comments and exempt them from the HTML SQL Injection check. You must specify the type of comments that the application firewall is to detect and exempt from this security check. Available settings function as follows: * Check all - Check all content. - * ANSI - Exempt content that is part of an ANSI (Mozilla-style) comment. + * ANSI - Exempt content that is part of an ANSI (Mozilla-style) comment. * Nested - Exempt content that is part of a nested (Microsoft-style) comment. * ANSI Nested - Exempt content that is part of any type of comment. */ Sqlinjectionparsecomments string `json:"sqlinjectionparsecomments,omitempty"` /** - * Configure the method that the application firewall uses to handle percent-encoded names and values. Available settings function as follows: + * Configure the method that the application firewall uses to handle percent-encoded names and values. Available settings function as follows: * apache_mode - Apache format. * asp_mode - Microsoft ASP format. * secure_mode - Secure format. @@ -661,30 +661,30 @@ type Appfwprofile struct { Type []string `json:"type,omitempty"` /** * Check request headers as well as web forms for injected SQL and cross-site scripts. - */ + */ Checkrequestheaders string `json:"checkrequestheaders,omitempty"` /** * Inspect request query as well as web forms for injected SQL and cross-site scripts for following content types. - */ + */ Inspectquerycontenttypes []string `json:"inspectquerycontenttypes,omitempty"` /** * Optimize handle of HTTP partial requests i.e. those with range headers. - Available settings are as follows: + Available settings are as follows: * ON - Partial requests by the client result in partial requests to the backend server in most cases. * OFF - Partial requests by the client are changed to full requests to the backend server */ Optimizepartialreqs string `json:"optimizepartialreqs,omitempty"` /** * URL Decode request cookies before subjecting them to SQL and cross-site scripting checks. - */ + */ Urldecoderequestcookies string `json:"urldecoderequestcookies,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Configure whether the application firewall should use percentage recursive decoding - */ + */ Percentdecoderecursively string `json:"percentdecoderecursively,omitempty"` /** * One or more multiple header actions. Available settings function as follows: @@ -696,7 +696,7 @@ type Appfwprofile struct { Multipleheaderaction []string `json:"multipleheaderaction,omitempty"` /** * Object name of the rfc profile. - */ + */ Rfcprofile string `json:"rfcprofile,omitempty"` /** * One or more file upload types actions. Available settings function as follows: @@ -709,54 +709,53 @@ type Appfwprofile struct { Fileuploadtypesaction []string `json:"fileuploadtypesaction,omitempty"` /** * Detailed Logging Verbose Log Level. - */ + */ Verboseloglevel string `json:"verboseloglevel,omitempty"` /** * Configure whether application firewall should add samesite attribute for set-cookies - */ + */ Insertcookiesamesiteattribute string `json:"insertcookiesamesiteattribute,omitempty"` /** * Cookie Samesite attribute added to support adding cookie SameSite attribute for all set-cookies including appfw session cookies. Default value will be "SameSite=Lax". - */ + */ Cookiesamesiteattribute string `json:"cookiesamesiteattribute,omitempty"` /** * Specifies SQL Injection rule type: ALLOW/DENY. If ALLOW rule type is configured then allow list rules are used, if DENY rule type is configured then deny rules are used. - */ + */ Sqlinjectionruletype string `json:"sqlinjectionruletype,omitempty"` /** * Source for tar archive. - */ + */ Archivename string `json:"archivename,omitempty"` /** * Import all appfw relaxation rules - */ + */ Relaxationrules bool `json:"relaxationrules,omitempty"` /** * Name of the profile which will be created/updated to associate the relaxation rules - */ + */ Importprofilename string `json:"importprofilename,omitempty"` /** * Match this action url in archived Relaxation Rules to replace. - */ + */ Matchurlstring string `json:"matchurlstring,omitempty"` /** * Replace matched url string with this action url string while restoring Relaxation Rules - */ + */ Replaceurlstring string `json:"replaceurlstring,omitempty"` /** * Purge existing Relaxation Rules and replace during import - */ + */ Overwrite bool `json:"overwrite,omitempty"` /** * Augment Relaxation Rules during import - */ + */ Augment bool `json:"augment,omitempty"` //------- Read only Parameter ---------; - State string `json:"state,omitempty"` + State string `json:"state,omitempty"` Learning string `json:"learning,omitempty"` - Csrftag string `json:"csrftag,omitempty"` - Builtin string `json:"builtin,omitempty"` - + Csrftag string `json:"csrftag,omitempty"` + Builtin string `json:"builtin,omitempty"` } diff --git a/resource/config/appfw/appfwprofile_binding.go b/resource/config/appfwprofile_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_binding.go rename to resource/config/appfwprofile_binding.go index 5342f1d..d1e92f7 100644 --- a/resource/config/appfw/appfwprofile_binding.go +++ b/resource/config/appfwprofile_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** -* Binding object which returns the resources bound to appfwprofile_binding. -*/ +* Binding object which returns the resources bound to appfwprofile_binding. + */ type Appfwprofilebinding struct { /** - * Name of the application firewall profile.
Minimum value = - */ + * Name of the application firewall profile.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_cmdinjection_binding.go b/resource/config/appfwprofile_cmdinjection_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_cmdinjection_binding.go rename to resource/config/appfwprofile_cmdinjection_binding.go index e4bb44a..7dbb88c 100644 --- a/resource/config/appfw/appfwprofile_cmdinjection_binding.go +++ b/resource/config/appfwprofile_cmdinjection_binding.go @@ -12,70 +12,68 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the cmdinjection that can be bound to appfwprofile. -*/ + */ type Appfwprofilecmdinjectionbinding struct { /** * Name of the relaxed web form field/header/cookie - */ + */ Cmdinjection string `json:"cmdinjection,omitempty"` /** * Is the relaxed web form field name/header/cookie a regular expression? - */ + */ Isregexcmd string `json:"isregex_cmd,omitempty"` /** * The web form action URL. - */ + */ Formactionurlcmd string `json:"formactionurl_cmd,omitempty"` /** * Location of command injection exception - form field, header or cookie. - */ + */ Asscanlocationcmd string `json:"as_scan_location_cmd,omitempty"` /** * Type of the relaxed web form value - */ + */ Asvaluetypecmd string `json:"as_value_type_cmd,omitempty"` /** * The web form/header/cookie value expression. - */ + */ Asvalueexprcmd string `json:"as_value_expr_cmd,omitempty"` /** * Is the web form field/header/cookie value a regular expression? - */ + */ Isvalueregexcmd string `json:"isvalueregex_cmd,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_contenttype_binding.go b/resource/config/appfwprofile_contenttype_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_contenttype_binding.go rename to resource/config/appfwprofile_contenttype_binding.go index ac5289c..fdde100 100644 --- a/resource/config/appfw/appfwprofile_contenttype_binding.go +++ b/resource/config/appfwprofile_contenttype_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the contenttype that can be bound to appfwprofile. -*/ + */ type Appfwprofilecontenttypebinding struct { /** * A regular expression that designates a content-type on the content-types list. - */ + */ Contenttype string `json:"contenttype,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_cookieconsistency_binding.go b/resource/config/appfwprofile_cookieconsistency_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_cookieconsistency_binding.go rename to resource/config/appfwprofile_cookieconsistency_binding.go index b65bbf0..12b31e0 100644 --- a/resource/config/appfw/appfwprofile_cookieconsistency_binding.go +++ b/resource/config/appfwprofile_cookieconsistency_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the cookieconsistency that can be bound to appfwprofile. -*/ + */ type Appfwprofilecookieconsistencybinding struct { /** * The name of the cookie to be checked. - */ + */ Cookieconsistency string `json:"cookieconsistency,omitempty"` /** * Is the cookie name a regular expression? - */ + */ Isregex string `json:"isregex,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_creditcardnumber_binding.go b/resource/config/appfwprofile_creditcardnumber_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_creditcardnumber_binding.go rename to resource/config/appfwprofile_creditcardnumber_binding.go index b0046f7..45b74e4 100644 --- a/resource/config/appfw/appfwprofile_creditcardnumber_binding.go +++ b/resource/config/appfwprofile_creditcardnumber_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the creditcardnumber that can be bound to appfwprofile. -*/ + */ type Appfwprofilecreditcardnumberbinding struct { /** * The object expression that is to be excluded from safe commerce check - */ + */ Creditcardnumber string `json:"creditcardnumber,omitempty"` /** * The url for which the list of credit card numbers are needed to be bypassed from inspection - */ + */ Creditcardnumberurl string `json:"creditcardnumberurl,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_crosssitescripting_binding.go b/resource/config/appfwprofile_crosssitescripting_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_crosssitescripting_binding.go rename to resource/config/appfwprofile_crosssitescripting_binding.go index 30df6ea..fa2b2b7 100644 --- a/resource/config/appfw/appfwprofile_crosssitescripting_binding.go +++ b/resource/config/appfwprofile_crosssitescripting_binding.go @@ -12,70 +12,68 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the crosssitescripting that can be bound to appfwprofile. -*/ + */ type Appfwprofilecrosssitescriptingbinding struct { /** * The web form field name. - */ + */ Crosssitescripting string `json:"crosssitescripting,omitempty"` /** * Is the web form field name a regular expression? - */ + */ Isregexxss string `json:"isregex_xss,omitempty"` /** * The web form action URL. - */ + */ Formactionurlxss string `json:"formactionurl_xss,omitempty"` /** * Location of cross-site scripting exception - form field, header, cookie or URL. - */ + */ Asscanlocationxss string `json:"as_scan_location_xss,omitempty"` /** * The web form value type. - */ + */ Asvaluetypexss string `json:"as_value_type_xss,omitempty"` /** * The web form value expression. - */ + */ Asvalueexprxss string `json:"as_value_expr_xss,omitempty"` /** * Is the web form field value a regular expression? - */ + */ Isvalueregexxss string `json:"isvalueregex_xss,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_csrftag_binding.go b/resource/config/appfwprofile_csrftag_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_csrftag_binding.go rename to resource/config/appfwprofile_csrftag_binding.go index 3ea7266..08022e9 100644 --- a/resource/config/appfw/appfwprofile_csrftag_binding.go +++ b/resource/config/appfwprofile_csrftag_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the csrftag that can be bound to appfwprofile. -*/ + */ type Appfwprofilecsrftagbinding struct { /** * The web form originating URL. - */ + */ Csrftag string `json:"csrftag,omitempty"` /** * The web form action URL. - */ + */ Csrfformactionurl string `json:"csrfformactionurl,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_denyurl_binding.go b/resource/config/appfwprofile_denyurl_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_denyurl_binding.go rename to resource/config/appfwprofile_denyurl_binding.go index 7aac1a2..0d61ed1 100644 --- a/resource/config/appfw/appfwprofile_denyurl_binding.go +++ b/resource/config/appfwprofile_denyurl_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the denyurl that can be bound to appfwprofile. -*/ + */ type Appfwprofiledenyurlbinding struct { /** * A regular expression that designates a URL on the Deny URL list. - */ + */ Denyurl string `json:"denyurl,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_excluderescontenttype_binding.go b/resource/config/appfwprofile_excluderescontenttype_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_excluderescontenttype_binding.go rename to resource/config/appfwprofile_excluderescontenttype_binding.go index 6ac6524..eda2e64 100644 --- a/resource/config/appfw/appfwprofile_excluderescontenttype_binding.go +++ b/resource/config/appfwprofile_excluderescontenttype_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the excluderescontenttype that can be bound to appfwprofile. -*/ + */ type Appfwprofileexcluderescontenttypebinding struct { /** * A regular expression that represents the content type of the response that are to be excluded from inspection. - */ + */ Excluderescontenttype string `json:"excluderescontenttype,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_fieldconsistency_binding.go b/resource/config/appfwprofile_fieldconsistency_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_fieldconsistency_binding.go rename to resource/config/appfwprofile_fieldconsistency_binding.go index e826fb5..ad7873b 100644 --- a/resource/config/appfw/appfwprofile_fieldconsistency_binding.go +++ b/resource/config/appfwprofile_fieldconsistency_binding.go @@ -12,54 +12,52 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the fieldconsistency that can be bound to appfwprofile. -*/ + */ type Appfwprofilefieldconsistencybinding struct { /** * The web form field name. - */ + */ Fieldconsistency string `json:"fieldconsistency,omitempty"` /** * Is the web form field name a regular expression? - */ + */ Isregexffc string `json:"isregex_ffc,omitempty"` /** * The web form action URL. - */ + */ Formactionurlffc string `json:"formactionurl_ffc,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_fieldformat_binding.go b/resource/config/appfwprofile_fieldformat_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_fieldformat_binding.go rename to resource/config/appfwprofile_fieldformat_binding.go index 1d7c205..34c8807 100644 --- a/resource/config/appfw/appfwprofile_fieldformat_binding.go +++ b/resource/config/appfwprofile_fieldformat_binding.go @@ -12,66 +12,64 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the fieldformat that can be bound to appfwprofile. -*/ + */ type Appfwprofilefieldformatbinding struct { /** * Name of the form field to which a field format will be assigned. - */ + */ Fieldformat string `json:"fieldformat,omitempty"` /** * Is the form field name a regular expression? - */ + */ Isregexff string `json:"isregex_ff,omitempty"` /** * Action URL of the form field to which a field format will be assigned. - */ + */ Formactionurlff string `json:"formactionurl_ff,omitempty"` /** * The field type you are assigning to this form field. - */ + */ Fieldtype string `json:"fieldtype,omitempty"` /** * The minimum allowed length for data in this form field. - */ + */ Fieldformatminlength int `json:"fieldformatminlength,omitempty"` /** * The maximum allowed length for data in this form field. - */ + */ Fieldformatmaxlength int `json:"fieldformatmaxlength,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_fileuploadtype_binding.go b/resource/config/appfwprofile_fileuploadtype_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_fileuploadtype_binding.go rename to resource/config/appfwprofile_fileuploadtype_binding.go index a16e47c..ff99817 100644 --- a/resource/config/appfw/appfwprofile_fileuploadtype_binding.go +++ b/resource/config/appfwprofile_fileuploadtype_binding.go @@ -12,58 +12,56 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the fileuploadtype that can be bound to appfwprofile. -*/ + */ type Appfwprofilefileuploadtypebinding struct { /** * FileUploadTypes to allow/deny. - */ + */ Fileuploadtype string `json:"fileuploadtype,omitempty"` /** * FileUploadTypes action URL. - */ + */ Asfileuploadtypesurl string `json:"as_fileuploadtypes_url,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * FileUploadTypes file types. - */ + */ Filetype []string `json:"filetype,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Is a regular expression? - */ + */ Isregexfileuploadtypesurl string `json:"isregex_fileuploadtypes_url,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_jsoncmdurl_binding.go b/resource/config/appfwprofile_jsoncmdurl_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_jsoncmdurl_binding.go rename to resource/config/appfwprofile_jsoncmdurl_binding.go index 3e96c78..0d173f5 100644 --- a/resource/config/appfw/appfwprofile_jsoncmdurl_binding.go +++ b/resource/config/appfwprofile_jsoncmdurl_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the jsoncmdurl that can be bound to appfwprofile. -*/ + */ type Appfwprofilejsoncmdurlbinding struct { /** * A regular expression that designates a URL on the Json CMD URL list for which Command injection violations are relaxed. @@ -27,32 +27,30 @@ type Appfwprofilejsoncmdurlbinding struct { Jsoncmdurl string `json:"jsoncmdurl,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_jsondosurl_binding.go b/resource/config/appfwprofile_jsondosurl_binding.go similarity index 97% rename from resource/config/appfw/appfwprofile_jsondosurl_binding.go rename to resource/config/appfwprofile_jsondosurl_binding.go index a15bb54..2190129 100644 --- a/resource/config/appfw/appfwprofile_jsondosurl_binding.go +++ b/resource/config/appfwprofile_jsondosurl_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the jsondosurl that can be bound to appfwprofile. -*/ + */ type Appfwprofilejsondosurlbinding struct { /** * The URL on which we need to enforce the specified JSON denial-of-service (JSONDoS) attack protections. @@ -40,80 +40,78 @@ type Appfwprofilejsondosurlbinding struct { Jsondosurl string `json:"jsondosurl,omitempty"` /** * State if JSON Max document length check is ON or OFF. - */ + */ Jsonmaxdocumentlengthcheck string `json:"jsonmaxdocumentlengthcheck,omitempty"` /** * Maximum document length of JSON document, in bytes. - */ + */ Jsonmaxdocumentlength int `json:"jsonmaxdocumentlength,omitempty"` /** * State if JSON Max depth check is ON or OFF. - */ + */ Jsonmaxcontainerdepthcheck string `json:"jsonmaxcontainerdepthcheck,omitempty"` /** * Maximum allowed nesting depth of JSON document. JSON allows one to nest the containers (object and array) in any order to any depth. This check protects against documents that have excessive depth of hierarchy. - */ + */ Jsonmaxcontainerdepth int `json:"jsonmaxcontainerdepth,omitempty"` /** * State if JSON Max object key count check is ON or OFF. - */ + */ Jsonmaxobjectkeycountcheck string `json:"jsonmaxobjectkeycountcheck,omitempty"` /** * Maximum key count in the any of JSON object. This check protects against objects that have large number of keys. - */ + */ Jsonmaxobjectkeycount int `json:"jsonmaxobjectkeycount,omitempty"` /** * State if JSON Max object key length check is ON or OFF. - */ + */ Jsonmaxobjectkeylengthcheck string `json:"jsonmaxobjectkeylengthcheck,omitempty"` /** * Maximum key length in the any of JSON object. This check protects against objects that have large keys. - */ + */ Jsonmaxobjectkeylength int `json:"jsonmaxobjectkeylength,omitempty"` /** * State if JSON Max array value count check is ON or OFF. - */ + */ Jsonmaxarraylengthcheck string `json:"jsonmaxarraylengthcheck,omitempty"` /** * Maximum array length in the any of JSON object. This check protects against arrays having large lengths. - */ + */ Jsonmaxarraylength int `json:"jsonmaxarraylength,omitempty"` /** * State if JSON Max string value count check is ON or OFF. - */ + */ Jsonmaxstringlengthcheck string `json:"jsonmaxstringlengthcheck,omitempty"` /** * Maximum string length in the JSON. This check protects against strings that have large length. - */ + */ Jsonmaxstringlength int `json:"jsonmaxstringlength,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_jsonsqlurl_binding.go b/resource/config/appfwprofile_jsonsqlurl_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_jsonsqlurl_binding.go rename to resource/config/appfwprofile_jsonsqlurl_binding.go index 7425501..f1af924 100644 --- a/resource/config/appfw/appfwprofile_jsonsqlurl_binding.go +++ b/resource/config/appfwprofile_jsonsqlurl_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the jsonsqlurl that can be bound to appfwprofile. -*/ + */ type Appfwprofilejsonsqlurlbinding struct { /** * A regular expression that designates a URL on the Json SQL URL list for which SQL violations are relaxed. @@ -27,32 +27,30 @@ type Appfwprofilejsonsqlurlbinding struct { Jsonsqlurl string `json:"jsonsqlurl,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_jsonxssurl_binding.go b/resource/config/appfwprofile_jsonxssurl_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_jsonxssurl_binding.go rename to resource/config/appfwprofile_jsonxssurl_binding.go index 532dcdb..e5f1db2 100644 --- a/resource/config/appfw/appfwprofile_jsonxssurl_binding.go +++ b/resource/config/appfwprofile_jsonxssurl_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the jsonxssurl that can be bound to appfwprofile. -*/ + */ type Appfwprofilejsonxssurlbinding struct { /** * A regular expression that designates a URL on the Json XSS URL list for which XSS violations are relaxed. @@ -27,32 +27,30 @@ type Appfwprofilejsonxssurlbinding struct { Jsonxssurl string `json:"jsonxssurl,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_logexpression_binding.go b/resource/config/appfwprofile_logexpression_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_logexpression_binding.go rename to resource/config/appfwprofile_logexpression_binding.go index 7390057..f659099 100644 --- a/resource/config/appfw/appfwprofile_logexpression_binding.go +++ b/resource/config/appfwprofile_logexpression_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the logexpression that can be bound to appfwprofile. -*/ + */ type Appfwprofilelogexpressionbinding struct { /** * Name of LogExpression object. - */ + */ Logexpression string `json:"logexpression,omitempty"` /** * LogExpression to log when violation happened on appfw profile - */ + */ Aslogexpression string `json:"as_logexpression,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_safeobject_binding.go b/resource/config/appfwprofile_safeobject_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_safeobject_binding.go rename to resource/config/appfwprofile_safeobject_binding.go index 1f88ba0..fb10c3c 100644 --- a/resource/config/appfw/appfwprofile_safeobject_binding.go +++ b/resource/config/appfwprofile_safeobject_binding.go @@ -12,58 +12,56 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the safeobject that can be bound to appfwprofile. -*/ + */ type Appfwprofilesafeobjectbinding struct { /** * Name of the Safe Object. - */ + */ Safeobject string `json:"safeobject,omitempty"` /** * A regular expression that defines the Safe Object. - */ + */ Asexpression string `json:"as_expression,omitempty"` /** * Maximum match length for a Safe Object expression. - */ + */ Maxmatchlength int `json:"maxmatchlength,omitempty"` /** * Safe Object action types. (BLOCK | LOG | STATS | NONE) - */ + */ Action []string `json:"action,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_sqlinjection_binding.go b/resource/config/appfwprofile_sqlinjection_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_sqlinjection_binding.go rename to resource/config/appfwprofile_sqlinjection_binding.go index d90b7de..0be7601 100644 --- a/resource/config/appfw/appfwprofile_sqlinjection_binding.go +++ b/resource/config/appfwprofile_sqlinjection_binding.go @@ -12,70 +12,68 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the sqlinjection that can be bound to appfwprofile. -*/ + */ type Appfwprofilesqlinjectionbinding struct { /** * The web form field name. - */ + */ Sqlinjection string `json:"sqlinjection,omitempty"` /** * Is the web form field name a regular expression? - */ + */ Isregexsql string `json:"isregex_sql,omitempty"` /** * The web form action URL. - */ + */ Formactionurlsql string `json:"formactionurl_sql,omitempty"` /** * Location of SQL injection exception - form field, header or cookie. - */ + */ Asscanlocationsql string `json:"as_scan_location_sql,omitempty"` /** * The web form value type. - */ + */ Asvaluetypesql string `json:"as_value_type_sql,omitempty"` /** * The web form value expression. - */ + */ Asvalueexprsql string `json:"as_value_expr_sql,omitempty"` /** * Is the web form field value a regular expression? - */ + */ Isvalueregexsql string `json:"isvalueregex_sql,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_starturl_binding.go b/resource/config/appfwprofile_starturl_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_starturl_binding.go rename to resource/config/appfwprofile_starturl_binding.go index f58121d..e9ec0f2 100644 --- a/resource/config/appfw/appfwprofile_starturl_binding.go +++ b/resource/config/appfwprofile_starturl_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the starturl that can be bound to appfwprofile. -*/ + */ type Appfwprofilestarturlbinding struct { /** * A regular expression that designates a URL on the Start URL list. - */ + */ Starturl string `json:"starturl,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_trustedlearningclients_binding.go b/resource/config/appfwprofile_trustedlearningclients_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_trustedlearningclients_binding.go rename to resource/config/appfwprofile_trustedlearningclients_binding.go index 64d1c1f..0712da5 100644 --- a/resource/config/appfw/appfwprofile_trustedlearningclients_binding.go +++ b/resource/config/appfwprofile_trustedlearningclients_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the trustedlearningclients that can be bound to appfwprofile. -*/ + */ type Appfwprofiletrustedlearningclientsbinding struct { /** * Specify trusted host/network IP - */ + */ Trustedlearningclients string `json:"trustedlearningclients,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go b/resource/config/appfwprofile_xmlattachmenturl_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go rename to resource/config/appfwprofile_xmlattachmenturl_binding.go index 83a443d..bf35f08 100644 --- a/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go +++ b/resource/config/appfwprofile_xmlattachmenturl_binding.go @@ -12,62 +12,60 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the xmlattachmenturl that can be bound to appfwprofile. -*/ + */ type Appfwprofilexmlattachmenturlbinding struct { /** * XML attachment URL regular expression length. - */ + */ Xmlattachmenturl string `json:"xmlattachmenturl,omitempty"` /** * State if XML Max attachment size Check is ON or OFF. Protects against XML requests with large attachment data. - */ + */ Xmlmaxattachmentsizecheck string `json:"xmlmaxattachmentsizecheck,omitempty"` /** * Specify maximum attachment size. - */ + */ Xmlmaxattachmentsize int `json:"xmlmaxattachmentsize,omitempty"` /** * State if XML attachment content-type check is ON or OFF. Protects against XML requests with illegal attachments. - */ + */ Xmlattachmentcontenttypecheck string `json:"xmlattachmentcontenttypecheck,omitempty"` /** * Specify content-type regular expression. - */ + */ Xmlattachmentcontenttype string `json:"xmlattachmentcontenttype,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_xmldosurl_binding.go b/resource/config/appfwprofile_xmldosurl_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_xmldosurl_binding.go rename to resource/config/appfwprofile_xmldosurl_binding.go index ea8cb34..4b20b6e 100644 --- a/resource/config/appfw/appfwprofile_xmldosurl_binding.go +++ b/resource/config/appfwprofile_xmldosurl_binding.go @@ -12,190 +12,188 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the xmldosurl that can be bound to appfwprofile. -*/ + */ type Appfwprofilexmldosurlbinding struct { /** * XML DoS URL regular expression length. - */ + */ Xmldosurl string `json:"xmldosurl,omitempty"` /** * State if XML Max element depth check is ON or OFF. - */ + */ Xmlmaxelementdepthcheck string `json:"xmlmaxelementdepthcheck,omitempty"` /** * Maximum nesting (depth) of XML elements. This check protects against documents that have excessive hierarchy depths. - */ + */ Xmlmaxelementdepth int `json:"xmlmaxelementdepth,omitempty"` /** * State if XML Max element name length check is ON or OFF. - */ + */ Xmlmaxelementnamelengthcheck string `json:"xmlmaxelementnamelengthcheck,omitempty"` /** * Specify the longest name of any element (including the expanded namespace) to protect against overflow attacks. - */ + */ Xmlmaxelementnamelength int `json:"xmlmaxelementnamelength,omitempty"` /** * State if XML Max elements check is ON or OFF. - */ + */ Xmlmaxelementscheck string `json:"xmlmaxelementscheck,omitempty"` /** * Specify the maximum number of XML elements allowed. Protects against overflow attacks. - */ + */ Xmlmaxelements int `json:"xmlmaxelements,omitempty"` /** * State if XML Max element children check is ON or OFF. - */ + */ Xmlmaxelementchildrencheck string `json:"xmlmaxelementchildrencheck,omitempty"` /** * Specify the maximum number of children allowed per XML element. Protects against overflow attacks. - */ + */ Xmlmaxelementchildren int `json:"xmlmaxelementchildren,omitempty"` /** * State if XML Max nodes check is ON or OFF. - */ + */ Xmlmaxnodescheck string `json:"xmlmaxnodescheck,omitempty"` /** * Specify the maximum number of XML nodes. Protects against overflow attacks. - */ + */ Xmlmaxnodes int `json:"xmlmaxnodes,omitempty"` /** * State if XML Max Entity Expansions Check is ON or OFF. - */ + */ Xmlmaxentityexpansionscheck string `json:"xmlmaxentityexpansionscheck,omitempty"` /** * Specify maximum allowed number of entity expansions. Protects aganist Entity Expansion Attack. - */ + */ Xmlmaxentityexpansions int `json:"xmlmaxentityexpansions,omitempty"` /** * State if XML Max Entity Expansions Depth Check is ON or OFF. - */ + */ Xmlmaxentityexpansiondepthcheck string `json:"xmlmaxentityexpansiondepthcheck,omitempty"` /** * Specify maximum entity expansion depth. Protects aganist Entity Expansion Attack. - */ + */ Xmlmaxentityexpansiondepth int `json:"xmlmaxentityexpansiondepth,omitempty"` /** * State if XML Max attributes check is ON or OFF. - */ + */ Xmlmaxattributescheck string `json:"xmlmaxattributescheck,omitempty"` /** * Specify maximum number of attributes per XML element. Protects against overflow attacks. - */ + */ Xmlmaxattributes int `json:"xmlmaxattributes,omitempty"` /** * State if XML Max attribute name length check is ON or OFF. - */ + */ Xmlmaxattributenamelengthcheck string `json:"xmlmaxattributenamelengthcheck,omitempty"` /** * Specify the longest name of any XML attribute. Protects against overflow attacks. - */ + */ Xmlmaxattributenamelength int `json:"xmlmaxattributenamelength,omitempty"` /** * State if XML Max atribute value length is ON or OFF. - */ + */ Xmlmaxattributevaluelengthcheck string `json:"xmlmaxattributevaluelengthcheck,omitempty"` /** * Specify the longest value of any XML attribute. Protects against overflow attacks. - */ + */ Xmlmaxattributevaluelength int `json:"xmlmaxattributevaluelength,omitempty"` /** * State if XML Max namespaces check is ON or OFF. - */ + */ Xmlmaxnamespacescheck string `json:"xmlmaxnamespacescheck,omitempty"` /** * Specify maximum number of active namespaces. Protects against overflow attacks. - */ + */ Xmlmaxnamespaces int `json:"xmlmaxnamespaces,omitempty"` /** * State if XML Max namespace URI length check is ON or OFF. - */ + */ Xmlmaxnamespaceurilengthcheck string `json:"xmlmaxnamespaceurilengthcheck,omitempty"` /** * Specify the longest URI of any XML namespace. Protects against overflow attacks. - */ + */ Xmlmaxnamespaceurilength int `json:"xmlmaxnamespaceurilength,omitempty"` /** * State if XML Max CDATA length check is ON or OFF. - */ + */ Xmlmaxchardatalengthcheck string `json:"xmlmaxchardatalengthcheck,omitempty"` /** * Specify the maximum size of CDATA. Protects against overflow attacks and large quantities of unparsed data within XML messages. - */ + */ Xmlmaxchardatalength int `json:"xmlmaxchardatalength,omitempty"` /** * State if XML Max file size check is ON or OFF. - */ + */ Xmlmaxfilesizecheck string `json:"xmlmaxfilesizecheck,omitempty"` /** * Specify the maximum size of XML messages. Protects against overflow attacks. - */ + */ Xmlmaxfilesize int `json:"xmlmaxfilesize,omitempty"` /** * State if XML Min file size check is ON or OFF. - */ + */ Xmlminfilesizecheck string `json:"xmlminfilesizecheck,omitempty"` /** * Enforces minimum message size. - */ + */ Xmlminfilesize int `json:"xmlminfilesize,omitempty"` /** * State if XML Block PI is ON or OFF. Protects resources from denial of service attacks as SOAP messages cannot have processing instructions (PI) in messages. - */ + */ Xmlblockpi string `json:"xmlblockpi,omitempty"` /** - * State if XML DTD is ON or OFF. Protects against recursive Document Type Declaration (DTD) entity expansion attacks. Also, SOAP messages cannot have DTDs in messages. - */ + * State if XML DTD is ON or OFF. Protects against recursive Document Type Declaration (DTD) entity expansion attacks. Also, SOAP messages cannot have DTDs in messages. + */ Xmlblockdtd string `json:"xmlblockdtd,omitempty"` /** * State if XML Block External Entities Check is ON or OFF. Protects against XML External Entity (XXE) attacks that force applications to parse untrusted external entities (sources) in XML documents. - */ + */ Xmlblockexternalentities string `json:"xmlblockexternalentities,omitempty"` /** * State if XML SOAP Array check is ON or OFF. - */ + */ Xmlsoaparraycheck string `json:"xmlsoaparraycheck,omitempty"` /** * XML Max Total SOAP Array Size. Protects against SOAP Array Abuse attack. - */ + */ Xmlmaxsoaparraysize int `json:"xmlmaxsoaparraysize,omitempty"` /** * XML Max Individual SOAP Array Rank. This is the dimension of the SOAP array. - */ + */ Xmlmaxsoaparrayrank int `json:"xmlmaxsoaparrayrank,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_xmlsqlinjection_binding.go b/resource/config/appfwprofile_xmlsqlinjection_binding.go similarity index 94% rename from resource/config/appfw/appfwprofile_xmlsqlinjection_binding.go rename to resource/config/appfwprofile_xmlsqlinjection_binding.go index 49e76a8..029aafd 100644 --- a/resource/config/appfw/appfwprofile_xmlsqlinjection_binding.go +++ b/resource/config/appfwprofile_xmlsqlinjection_binding.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the xmlsqlinjection that can be bound to appfwprofile. -*/ + */ type Appfwprofilexmlsqlinjectionbinding struct { /** - * Exempt the specified URL from the XML SQL injection check. + * Exempt the specified URL from the XML SQL injection check. An XML SQL injection exemption (relaxation) consists of the following items: * Name. Name to exempt, as a string or a PCRE-format regular expression. * ISREGEX flag. REGEX if URL is a regular expression, NOTREGEX if URL is a fixed string. @@ -30,40 +30,38 @@ type Appfwprofilexmlsqlinjectionbinding struct { Xmlsqlinjection string `json:"xmlsqlinjection,omitempty"` /** * Is the XML SQL Injection exempted field name a regular expression? - */ + */ Isregexxmlsql string `json:"isregex_xmlsql,omitempty"` /** * Location of SQL injection exception - XML Element or Attribute. - */ + */ Asscanlocationxmlsql string `json:"as_scan_location_xmlsql,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_xmlvalidationurl_binding.go b/resource/config/appfwprofile_xmlvalidationurl_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_xmlvalidationurl_binding.go rename to resource/config/appfwprofile_xmlvalidationurl_binding.go index 578c0e0..05214a9 100644 --- a/resource/config/appfw/appfwprofile_xmlvalidationurl_binding.go +++ b/resource/config/appfwprofile_xmlvalidationurl_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the xmlvalidationurl that can be bound to appfwprofile. -*/ + */ type Appfwprofilexmlvalidationurlbinding struct { /** * XML Validation URL regular expression. - */ + */ Xmlvalidationurl string `json:"xmlvalidationurl,omitempty"` /** * Validate response message. - */ + */ Xmlvalidateresponse string `json:"xmlvalidateresponse,omitempty"` /** * WSDL object for soap request validation. - */ + */ Xmlwsdl string `json:"xmlwsdl,omitempty"` /** * Allow addtional soap headers. - */ + */ Xmladditionalsoapheaders string `json:"xmladditionalsoapheaders,omitempty"` /** * Modifies the behaviour of the Request URL validation w.r.t. the Service URL. @@ -46,44 +46,42 @@ type Appfwprofilexmlvalidationurlbinding struct { Xmlendpointcheck string `json:"xmlendpointcheck,omitempty"` /** * XML Schema object for request validation . - */ + */ Xmlrequestschema string `json:"xmlrequestschema,omitempty"` /** * XML Schema object for response validation. - */ + */ Xmlresponseschema string `json:"xmlresponseschema,omitempty"` /** * Validate SOAP Evelope only. - */ + */ Xmlvalidatesoapenvelope string `json:"xmlvalidatesoapenvelope,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_xmlwsiurl_binding.go b/resource/config/appfwprofile_xmlwsiurl_binding.go similarity index 95% rename from resource/config/appfw/appfwprofile_xmlwsiurl_binding.go rename to resource/config/appfwprofile_xmlwsiurl_binding.go index 4049b70..7433910 100644 --- a/resource/config/appfw/appfwprofile_xmlwsiurl_binding.go +++ b/resource/config/appfwprofile_xmlwsiurl_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the xmlwsiurl that can be bound to appfwprofile. -*/ + */ type Appfwprofilexmlwsiurlbinding struct { /** * XML WS-I URL regular expression length. - */ + */ Xmlwsiurl string `json:"xmlwsiurl,omitempty"` /** * Specify a comma separated list of relevant WS-I rule IDs. (R1140, R1141) - */ + */ Xmlwsichecks string `json:"xmlwsichecks,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwprofile_xmlxss_binding.go b/resource/config/appfwprofile_xmlxss_binding.go similarity index 96% rename from resource/config/appfw/appfwprofile_xmlxss_binding.go rename to resource/config/appfwprofile_xmlxss_binding.go index be11b26..e7b50d6 100644 --- a/resource/config/appfw/appfwprofile_xmlxss_binding.go +++ b/resource/config/appfwprofile_xmlxss_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Binding class showing the xmlxss that can be bound to appfwprofile. -*/ + */ type Appfwprofilexmlxssbinding struct { /** * Exempt the specified URL from the XML cross-site scripting (XSS) check. @@ -30,40 +30,38 @@ type Appfwprofilexmlxssbinding struct { Xmlxss string `json:"xmlxss,omitempty"` /** * Is the XML XSS exempted field name a regular expression? - */ + */ Isregexxmlxss string `json:"isregex_xmlxss,omitempty"` /** * Location of XSS injection exception - XML Element or Attribute. - */ + */ Asscanlocationxmlxss string `json:"as_scan_location_xmlxss,omitempty"` /** * Enabled. - */ + */ State string `json:"state,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Is the rule auto deployed by dynamic profile ? - */ + */ Isautodeployed string `json:"isautodeployed,omitempty"` /** * Send SNMP alert? - */ + */ Alertonly string `json:"alertonly,omitempty"` /** * Name of the profile to which to bind an exemption or rule. - */ + */ Name string `json:"name,omitempty"` /** * A "id" that identifies the rule. - */ + */ Resourceid string `json:"resourceid,omitempty"` /** * Specifies rule type of binding - */ + */ Ruletype string `json:"ruletype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appfw/appfwsettings.go b/resource/config/appfwsettings.go similarity index 95% rename from resource/config/appfw/appfwsettings.go rename to resource/config/appfwsettings.go index d2be12a..5244e37 100644 --- a/resource/config/appfw/appfwsettings.go +++ b/resource/config/appfwsettings.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for AS settings resource. -*/ + */ type Appfwsettings struct { /** * Profile to use when a connection does not match any policy. Default setting is APPFW_BYPASS, which sends unmatched connections back to the Citrix ADC without attempting to filter them further. - */ + */ Defaultprofile string `json:"defaultprofile,omitempty"` /** - * Profile to use when an application firewall policy evaluates to undefined (UNDEF). + * Profile to use when an application firewall policy evaluates to undefined (UNDEF). An UNDEF event indicates an internal error condition. The APPFW_BLOCK built-in profile is the default setting. You can specify a different built-in or user-created profile as the UNDEF profile. */ Undefaction string `json:"undefaction,omitempty"` /** * Timeout, in seconds, after which a user session is terminated. Before continuing to use the protected web site, the user must establish a new session by opening a designated start URL. - */ + */ Sessiontimeout int `json:"sessiontimeout,omitempty"` /** * Maximum number of connections per second that the application firewall learning engine examines to generate new relaxations for learning-enabled security checks. The application firewall drops any connections above this limit from the list of connections used by the learning engine. - */ + */ Learnratelimit int `json:"learnratelimit,omitempty"` /** * Maximum amount of time (in seconds) that the application firewall allows a user session to remain active, regardless of user activity. After this time, the user session is terminated. Before continuing to use the protected web site, the user must establish a new session by opening a designated start URL. - */ + */ Sessionlifetime int `json:"sessionlifetime"` // Zero is a valid value /** - * Name of the session cookie that the application firewall uses to track user sessions. + * Name of the session cookie that the application firewall uses to track user sessions. Must begin with a letter or number, and can consist of from 1 to 31 letters, numbers, and the hyphen (-) and underscore (_) symbols. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cookie name" or 'my cookie name'). @@ -50,69 +50,68 @@ type Appfwsettings struct { Sessioncookiename string `json:"sessioncookiename,omitempty"` /** * Name of an HTTP header that contains the IP address that the client used to connect to the protected web site or service. - */ + */ Clientiploggingheader string `json:"clientiploggingheader,omitempty"` /** * Cumulative total maximum number of bytes in web forms imported to a protected web site. If a user attempts to upload files with a total byte count higher than the specified limit, the application firewall blocks the request. - */ + */ Importsizelimit int `json:"importsizelimit,omitempty"` /** * Flag used to enable/disable auto update signatures - */ + */ Signatureautoupdate string `json:"signatureautoupdate,omitempty"` /** * URL to download the mapping file from server - */ + */ Signatureurl string `json:"signatureurl,omitempty"` /** * String that is prepended to all encrypted cookie values. - */ + */ Cookiepostencryptprefix string `json:"cookiepostencryptprefix,omitempty"` /** * Log requests that are so malformed that application firewall parsing doesn't occur. - */ + */ Logmalformedreq string `json:"logmalformedreq,omitempty"` /** * Enable Geo-Location Logging in CEF format logs. - */ + */ Geolocationlogging string `json:"geolocationlogging,omitempty"` /** * Enable CEF format logs. - */ + */ Ceflogging string `json:"ceflogging,omitempty"` /** * Transform multibyte (double- or half-width) characters to single width characters. - */ + */ Entitydecoding string `json:"entitydecoding,omitempty"` /** * Use configurable secret key in AppFw operations - */ + */ Useconfigurablesecretkey string `json:"useconfigurablesecretkey,omitempty"` /** * Maximum number of sessions that the application firewall allows to be active, regardless of user activity. After the max_limit reaches, No more user session will be created . - */ + */ Sessionlimit int `json:"sessionlimit"` // Zero is a valid value /** * flag to define action on malformed requests that application firewall cannot parse - */ + */ Malformedreqaction []string `json:"malformedreqaction,omitempty"` /** * Flag used to enable/disable ADM centralized learning - */ + */ Centralizedlearning string `json:"centralizedlearning,omitempty"` /** * Proxy Server IP to get updated signatures from AWS. - */ + */ Proxyserver string `json:"proxyserver,omitempty"` /** * Proxy Server Port to get updated signatures from AWS. - */ + */ Proxyport int `json:"proxyport,omitempty"` //------- Read only Parameter ---------; Learning string `json:"learning,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/appfw/appfwsignatures.go b/resource/config/appfwsignatures.go similarity index 96% rename from resource/config/appfw/appfwsignatures.go rename to resource/config/appfwsignatures.go index 4836db2..7ceaf0c 100644 --- a/resource/config/appfw/appfwsignatures.go +++ b/resource/config/appfwsignatures.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for application firewall signatures XML configuration resource. -*/ + */ type Appfwsignatures struct { /** * Name of the signature object. - */ + */ Name string `json:"name,omitempty"` /** * URL (protocol, host, path, and file name) for the location at which to store the imported signatures object. @@ -31,39 +31,38 @@ type Appfwsignatures struct { Src string `json:"src,omitempty"` /** * XSLT file source. - */ + */ Xslt string `json:"xslt,omitempty"` /** * Any comments to preserve information about the signatures object. - */ + */ Comment string `json:"comment,omitempty"` /** * Overwrite any existing signatures object of the same name. - */ + */ Overwrite bool `json:"overwrite,omitempty"` /** * Merges the existing Signature with new signature rules - */ + */ Merge bool `json:"merge,omitempty"` /** * preserves def actions of signature rules - */ + */ Preservedefactions bool `json:"preservedefactions,omitempty"` /** * File path for sha1 file to validate signature file - */ + */ Sha1 string `json:"sha1,omitempty"` /** * Third party vendor type for which WAF signatures has to be generated. - */ + */ Vendortype string `json:"vendortype,omitempty"` /** * Merges signature file with default signature file. - */ + */ Mergedefault bool `json:"mergedefault,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/appfwtransactionrecords.go b/resource/config/appfwtransactionrecords.go new file mode 100644 index 0000000..912b59c --- /dev/null +++ b/resource/config/appfwtransactionrecords.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for Application firewall transaction record resource. + */ +type Appfwtransactionrecords struct { + /** + * Unique number that identifies the cluster node. + */ + Nodeid int `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Httptransactionid string `json:"httptransactionid,omitempty"` + Packetengineid string `json:"packetengineid,omitempty"` + Appfwsessionid string `json:"appfwsessionid,omitempty"` + Profilename string `json:"profilename,omitempty"` + Url string `json:"url,omitempty"` + Clientip string `json:"clientip,omitempty"` + Destip string `json:"destip,omitempty"` + Starttime string `json:"starttime,omitempty"` + Endtime string `json:"endtime,omitempty"` + Requestcontentlength string `json:"requestcontentlength,omitempty"` + Requestyields string `json:"requestyields,omitempty"` + Requestmaxprocessingtime string `json:"requestmaxprocessingtime,omitempty"` + Responsecontentlength string `json:"responsecontentlength,omitempty"` + Responseyields string `json:"responseyields,omitempty"` + Responsemaxprocessingtime string `json:"responsemaxprocessingtime,omitempty"` +} diff --git a/resource/config/appfw/appfwurlencodedformcontenttype.go b/resource/config/appfwurlencodedformcontenttype.go similarity index 97% rename from resource/config/appfw/appfwurlencodedformcontenttype.go rename to resource/config/appfwurlencodedformcontenttype.go index 2945ae3..f9ab91d 100644 --- a/resource/config/appfw/appfwurlencodedformcontenttype.go +++ b/resource/config/appfwurlencodedformcontenttype.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for Urlencoded form content type resource. -*/ + */ type Appfwurlencodedformcontenttype struct { /** * Content type to be classified as urlencoded form - */ + */ Urlencodedformcontenttypevalue string `json:"urlencodedformcontenttypevalue,omitempty"` /** * Is urlencoded form content type a regular expression? - */ + */ Isregex string `json:"isregex,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/appfw/appfwwsdl.go b/resource/config/appfwwsdl.go similarity index 97% rename from resource/config/appfw/appfwwsdl.go rename to resource/config/appfwwsdl.go index 25eeef2..4ddf2ec 100644 --- a/resource/config/appfw/appfwwsdl.go +++ b/resource/config/appfwwsdl.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for WSDL file resource. -*/ + */ type Appfwwsdl struct { /** * Name of the WSDL file to remove. - */ + */ Name string `json:"name,omitempty"` /** * URL (protocol, host, path, and name) of the WSDL file to be imported is stored. @@ -31,15 +31,14 @@ type Appfwwsdl struct { Src string `json:"src,omitempty"` /** * Any comments to preserve information about the WSDL. - */ + */ Comment string `json:"comment,omitempty"` /** * Overwrite any existing WSDL of the same name. - */ + */ Overwrite bool `json:"overwrite,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/appfw/appfwxmlcontenttype.go b/resource/config/appfwxmlcontenttype.go similarity index 96% rename from resource/config/appfw/appfwxmlcontenttype.go rename to resource/config/appfwxmlcontenttype.go index 38879e9..3929577 100644 --- a/resource/config/appfw/appfwxmlcontenttype.go +++ b/resource/config/appfwxmlcontenttype.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for XML Content type resource. -*/ + */ type Appfwxmlcontenttype struct { /** * Content type to be classified as XML - */ + */ Xmlcontenttypevalue string `json:"xmlcontenttypevalue,omitempty"` /** * Is field name a regular expression? - */ + */ Isregex string `json:"isregex,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/appfw/appfwxmlerrorpage.go b/resource/config/appfwxmlerrorpage.go similarity index 97% rename from resource/config/appfw/appfwxmlerrorpage.go rename to resource/config/appfwxmlerrorpage.go index 6fb7005..36df949 100644 --- a/resource/config/appfw/appfwxmlerrorpage.go +++ b/resource/config/appfwxmlerrorpage.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for xml error page resource. -*/ + */ type Appfwxmlerrorpage struct { /** * Indicates name of the imported xml error page to be removed. - */ + */ Name string `json:"name,omitempty"` /** * URL (protocol, host, path, and name) for the location at which to store the imported XML error object. @@ -31,15 +31,14 @@ type Appfwxmlerrorpage struct { Src string `json:"src,omitempty"` /** * Any comments to preserve information about the XML error object. - */ + */ Comment string `json:"comment,omitempty"` /** * Overwrite any existing XML error object of the same name. - */ + */ Overwrite bool `json:"overwrite,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/appfw/appfwxmlschema.go b/resource/config/appfwxmlschema.go similarity index 97% rename from resource/config/appfw/appfwxmlschema.go rename to resource/config/appfwxmlschema.go index 60f1233..311c00d 100644 --- a/resource/config/appfw/appfwxmlschema.go +++ b/resource/config/appfwxmlschema.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appfw +package config /** * Configuration for XML schema resource. -*/ + */ type Appfwxmlschema struct { /** * Name of the XML Schema object to remove. - */ + */ Name string `json:"name,omitempty"` /** * URL (protocol, host, path, and file name) for the location at which to store the imported XML Schema. @@ -31,15 +31,14 @@ type Appfwxmlschema struct { Src string `json:"src,omitempty"` /** * Any comments to preserve information about the XML Schema object. - */ + */ Comment string `json:"comment,omitempty"` /** * Overwrite any existing XML Schema object of the same name. - */ + */ Overwrite bool `json:"overwrite,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/app/application.go b/resource/config/application.go similarity index 96% rename from resource/config/app/application.go rename to resource/config/application.go index b96dd13..20ee982 100644 --- a/resource/config/app/application.go +++ b/resource/config/application.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package app +package config /** * Configuration for application resource. -*/ + */ type Application struct { /** * Name of the AppExpert application template file. - */ + */ Apptemplatefilename string `json:"apptemplatefilename,omitempty"` /** * Name to assign to the application on the Citrix ADC. If you do not provide a name, the appliance assigns the application the name of the template file. - */ + */ Appname string `json:"appname,omitempty"` /** * Name of the deployment file. - */ + */ Deploymentfilename string `json:"deploymentfilename,omitempty"` - } diff --git a/resource/config/appqoe/appqoeaction.go b/resource/config/appqoeaction.go similarity index 97% rename from resource/config/appqoe/appqoeaction.go rename to resource/config/appqoeaction.go index b10c21d..ffc3c9f 100644 --- a/resource/config/appqoe/appqoeaction.go +++ b/resource/config/appqoeaction.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appqoe +package config /** * Configuration for AppQoS action resource. -*/ + */ type Appqoeaction struct { /** * Name for the AppQoE action. Must begin with a letter, number, or the underscore symbol (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), and colon (:) characters. This is a mandatory argument - */ + */ Name string `json:"name,omitempty"` /** * Priority for queuing the request. If server resources are not available for a request that matches the configured rule, this option specifies a priority for queuing the request until the server resources are available again. If priority is not configured then Lowest priority will be used to queue the request. - */ + */ Priority string `json:"priority,omitempty"` /** * Responder action to be taken when the threshold is reached. Available settings function as follows: @@ -38,59 +38,58 @@ type Appqoeaction struct { Respondwith string `json:"respondwith,omitempty"` /** * name of the HTML page object to use as the response - */ + */ Customfile string `json:"customfile,omitempty"` /** * Name of the alternative content service to be used in the ACS - */ + */ Altcontentsvcname string `json:"altcontentsvcname,omitempty"` /** * Path to the alternative content service to be used in the ACS - */ + */ Altcontentpath string `json:"altcontentpath,omitempty"` /** * Policy queue depth threshold value. When the policy queue size (number of requests queued for the policy binding this action is attached to) increases to the specified polqDepth value, subsequent requests are dropped to the lowest priority level. - */ + */ Polqdepth int `json:"polqdepth,omitempty"` /** * Queue depth threshold value per priorirty level. If the queue size (number of requests in the queue of that particular priorirty) on the virtual server to which this policy is bound, increases to the specified qDepth value, subsequent requests are dropped to the lowest priority level. - */ + */ Priqdepth int `json:"priqdepth,omitempty"` /** * Maximum number of concurrent connections that can be open for requests that matches with rule. - */ + */ Maxconn int `json:"maxconn,omitempty"` /** * Delay threshold, in microseconds, for requests that match the policy's rule. If the delay statistics gathered for the matching request exceed the specified delay, configured action triggered for that request, if there is no action then requests are dropped to the lowest priority level - */ + */ Delay int `json:"delay,omitempty"` /** * Optional expression to add second level check to trigger DoS actions. Specifically used for Analytics based DoS response generation - */ + */ Dostrigexpression string `json:"dostrigexpression,omitempty"` /** * DoS Action to take when vserver will be considered under DoS attack and corresponding rule matches. Mandatory if AppQoE actions are to be used for DoS attack prevention. - */ + */ Dosaction string `json:"dosaction,omitempty"` /** * Bind TCP Profile based on L2/L3/L7 parameters. - */ + */ Tcpprofile string `json:"tcpprofile,omitempty"` /** * Retry on TCP Reset - */ + */ Retryonreset string `json:"retryonreset,omitempty"` /** * Retry on request Timeout(in millisec) upon sending request to backend servers - */ + */ Retryontimeout int `json:"retryontimeout,omitempty"` /** * Retry count - */ + */ Numretries int `json:"numretries,omitempty"` //------- Read only Parameter ---------; Hits string `json:"hits,omitempty"` - } diff --git a/resource/config/appqoe/appqoecustomresp.go b/resource/config/appqoecustomresp.go similarity index 96% rename from resource/config/appqoe/appqoecustomresp.go rename to resource/config/appqoecustomresp.go index 27ae193..1a6daed 100644 --- a/resource/config/appqoe/appqoecustomresp.go +++ b/resource/config/appqoecustomresp.go @@ -12,18 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appqoe +package config /** * Configuration for AppQoE custom response page resource. -*/ + */ type Appqoecustomresp struct { Src string `json:"src,omitempty"` /** * Indicates name of the custom response HTML page to import/update. - */ + */ Name string `json:"name,omitempty"` - } diff --git a/resource/config/appqoe/appqoeparameter.go b/resource/config/appqoeparameter.go similarity index 97% rename from resource/config/appqoe/appqoeparameter.go rename to resource/config/appqoeparameter.go index abbf4fc..6f52ca9 100644 --- a/resource/config/appqoe/appqoeparameter.go +++ b/resource/config/appqoeparameter.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appqoe +package config /** * Configuration for QOS parameter resource. -*/ + */ type Appqoeparameter struct { /** * Time, in seconds, between the first time and the next time the AppQoE alternative content window is displayed. The alternative content window is displayed only once during a session for the same browser accessing a configured URL, so this parameter determines the length of a session. - */ + */ Sessionlife int `json:"sessionlife,omitempty"` /** * average number of client connections, that can sit in service waiting queue - */ + */ Avgwaitingclient int `json:"avgwaitingclient,omitempty"` /** * maximum bandwidth which will determine whether to send alternate content response - */ + */ Maxaltrespbandwidth int `json:"maxaltrespbandwidth,omitempty"` /** * average number of client connection that can queue up on vserver level without triggering DoS mitigation module - */ + */ Dosattackthresh int `json:"dosattackthresh,omitempty"` - } diff --git a/resource/config/appqoe/appqoepolicy.go b/resource/config/appqoepolicy.go similarity index 97% rename from resource/config/appqoe/appqoepolicy.go rename to resource/config/appqoepolicy.go index 3feb7ec..8aeb521 100644 --- a/resource/config/appqoe/appqoepolicy.go +++ b/resource/config/appqoepolicy.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appqoe +package config /** * Configuration for AppQoS policy resource. -*/ + */ type Appqoepolicy struct { Name string `json:"name,omitempty"` /** * Expression or name of a named expression, against which the request is evaluated. The policy is applied if the rule evaluates to true. - */ + */ Rule string `json:"rule,omitempty"` /** * Configured AppQoE action to trigger - */ + */ Action string `json:"action,omitempty"` //------- Read only Parameter ---------; Hits string `json:"hits,omitempty"` - } diff --git a/resource/config/appqoe/appqoepolicy_binding.go b/resource/config/appqoepolicy_binding.go similarity index 91% rename from resource/config/appqoe/appqoepolicy_binding.go rename to resource/config/appqoepolicy_binding.go index d5119b9..156e42e 100644 --- a/resource/config/appqoe/appqoepolicy_binding.go +++ b/resource/config/appqoepolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appqoe +package config /** -* Binding object which returns the resources bound to appqoepolicy_binding. -*/ +* Binding object which returns the resources bound to appqoepolicy_binding. + */ type Appqoepolicybinding struct { /** - * .
Minimum value = - */ + * .
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/appqoe/appqoepolicy_lbvserver_binding.go b/resource/config/appqoepolicy_lbvserver_binding.go similarity index 92% rename from resource/config/appqoe/appqoepolicy_lbvserver_binding.go rename to resource/config/appqoepolicy_lbvserver_binding.go index 1bcfae0..837c913 100644 --- a/resource/config/appqoe/appqoepolicy_lbvserver_binding.go +++ b/resource/config/appqoepolicy_lbvserver_binding.go @@ -12,28 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appqoe +package config /** * Binding class showing the lbvserver that can be bound to appqoepolicy. -*/ + */ type Appqoepolicylbvserverbinding struct { /** * The name of the entity to which the policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the binding of the policy. use only in display - */ + */ Bindpriority int `json:"bindpriority,omitempty"` Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Name string `json:"name,omitempty"` - - -} \ No newline at end of file + Name string `json:"name,omitempty"` +} diff --git a/resource/config/appqoe/appqoepolicy_vserver_binding.go b/resource/config/appqoepolicy_vserver_binding.go similarity index 92% rename from resource/config/appqoe/appqoepolicy_vserver_binding.go rename to resource/config/appqoepolicy_vserver_binding.go index bc42db8..14d3e25 100644 --- a/resource/config/appqoe/appqoepolicy_vserver_binding.go +++ b/resource/config/appqoepolicy_vserver_binding.go @@ -12,28 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package appqoe +package config /** * Binding class showing the vserver that can be bound to appqoepolicy. -*/ + */ type Appqoepolicyvserverbinding struct { /** * The name of the entity to which the policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the binding of the policy. use only in display - */ + */ Bindpriority uint32 `json:"bindpriority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Name string `json:"name,omitempty"` - - -} \ No newline at end of file + Name string `json:"name,omitempty"` +} diff --git a/resource/config/network/arp.go b/resource/config/arp.go similarity index 87% rename from resource/config/network/arp.go rename to resource/config/arp.go index 9d583a2..72e0393 100644 --- a/resource/config/network/arp.go +++ b/resource/config/arp.go @@ -12,62 +12,61 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for arp resource. -*/ + */ type Arp struct { /** * IP address of the network device that you want to add to the ARP table. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * MAC address of the network device. - */ + */ Mac string `json:"mac,omitempty"` /** * Interface through which the network device is accessible. Specify the interface in (slot/port) notation. For example, 1/3. - */ + */ Ifnum string `json:"ifnum,omitempty"` /** * ID of the VXLAN on which the IP address of this ARP entry is reachable. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * IP address of the VXLAN tunnel endpoint (VTEP) through which the IP address of this ARP entry is reachable. - */ + */ Vtep string `json:"vtep,omitempty"` /** * The VLAN ID through which packets are to be sent after matching the ARP entry. This is a numeric value. - */ + */ Vlan int `json:"vlan,omitempty"` /** * The owner node for the Arp entry. - */ + */ Ownernode int `json:"ownernode,omitempty"` /** * Remove all ARP entries from the ARP table of the Citrix ADC. - */ + */ All bool `json:"all,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - Timeout string `json:"timeout,omitempty"` - State string `json:"state,omitempty"` - Flags string `json:"flags,omitempty"` - Type string `json:"type,omitempty"` - Channel string `json:"channel,omitempty"` + Timeout string `json:"timeout,omitempty"` + State string `json:"state,omitempty"` + Flags string `json:"flags,omitempty"` + Type string `json:"type,omitempty"` + Channel string `json:"channel,omitempty"` Controlplane string `json:"controlplane,omitempty"` - } diff --git a/resource/config/network/arpparam.go b/resource/config/arpparam.go similarity index 97% rename from resource/config/network/arpparam.go rename to resource/config/arpparam.go index c37b35d..6b5c20d 100644 --- a/resource/config/network/arpparam.go +++ b/resource/config/arpparam.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for Global arp parameters resource. -*/ + */ type Arpparam struct { /** * Time-out value (aging time) for the dynamically learned ARP entries, in seconds. The new value applies only to ARP entries that are dynamically learned after the new value is set. Previously existing ARP entries expire after the previously configured aging time. - */ + */ Timeout int `json:"timeout,omitempty"` /** * enable/disable arp spoofing validation - */ + */ Spoofvalidation string `json:"spoofvalidation,omitempty"` - } diff --git a/resource/config/audit/auditmessageaction.go b/resource/config/auditmessageaction.go similarity index 90% rename from resource/config/audit/auditmessageaction.go rename to resource/config/auditmessageaction.go index 0eaffad..193effd 100644 --- a/resource/config/audit/auditmessageaction.go +++ b/resource/config/auditmessageaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Configuration for message action resource. -*/ + */ type Auditmessageaction struct { /** * Name of the audit message action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the message action is added. @@ -27,8 +27,8 @@ type Auditmessageaction struct { */ Name string `json:"name,omitempty"` /** - * Audit log level, which specifies the severity level of the log message being generated.. - The following loglevels are valid: + * Audit log level, which specifies the severity level of the log message being generated.. + The following loglevels are valid: * EMERGENCY - Events that indicate an immediate crisis on the server. * ALERT - Events that might require action. * CRITICAL - Events that indicate an imminent server crisis. @@ -41,22 +41,21 @@ type Auditmessageaction struct { Loglevel string `json:"loglevel,omitempty"` /** * Default-syntax expression that defines the format and content of the log message. - */ + */ Stringbuilderexpr string `json:"stringbuilderexpr,omitempty"` /** * Send the message to the new nslog. - */ + */ Logtonewnslog string `json:"logtonewnslog,omitempty"` /** * Bypass the safety check and allow unsafe expressions. - */ + */ Bypasssafetycheck string `json:"bypasssafetycheck,omitempty"` //------- Read only Parameter ---------; - Loglevel1 string `json:"loglevel1,omitempty"` - Hits string `json:"hits,omitempty"` - Undefhits string `json:"undefhits,omitempty"` + Loglevel1 string `json:"loglevel1,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` Referencecount string `json:"referencecount,omitempty"` - } diff --git a/resource/config/audit/auditmessages.go b/resource/config/auditmessages.go similarity index 97% rename from resource/config/audit/auditmessages.go rename to resource/config/auditmessages.go index e5dee92..e0461cc 100644 --- a/resource/config/audit/auditmessages.go +++ b/resource/config/auditmessages.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Configuration for audit message resource. -*/ + */ type Auditmessages struct { /** - * Audit log level filter, which specifies the types of events to display. + * Audit log level filter, which specifies the types of events to display. The following loglevels are valid: * ALL - All events. * EMERGENCY - Events that indicate an immediate crisis on the server. @@ -36,11 +36,10 @@ type Auditmessages struct { Loglevel []string `json:"loglevel,omitempty"` /** * Number of log messages to be displayed. - */ + */ Numofmesgs int `json:"numofmesgs,omitempty"` //------- Read only Parameter ---------; Value string `json:"value,omitempty"` - } diff --git a/resource/config/audit/auditnslogaction.go b/resource/config/auditnslogaction.go similarity index 92% rename from resource/config/audit/auditnslogaction.go rename to resource/config/auditnslogaction.go index 9c4a7ac..680e2d3 100644 --- a/resource/config/audit/auditnslogaction.go +++ b/resource/config/auditnslogaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Configuration for ns log action resource. -*/ + */ type Auditnslogaction struct { /** * Name of the nslog action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the nslog action is added. @@ -28,23 +28,23 @@ type Auditnslogaction struct { Name string `json:"name,omitempty"` /** * IP address of the nslog server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Auditserver name as a FQDN. Mutually exclusive with serverIP - */ + */ Serverdomainname string `json:"serverdomainname,omitempty"` /** * Time, in seconds, for which the Citrix ADC waits before sending another DNS query to resolve the host name of the audit server if the last query failed. - */ + */ Domainresolveretry int `json:"domainresolveretry,omitempty"` /** * Port on which the nslog server accepts connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** - * Audit log level, which specifies the types of events to log. - Available settings function as follows: + * Audit log level, which specifies the types of events to log. + Available settings function as follows: * ALL - All events. * EMERGENCY - Events that indicate an immediate crisis on the server. * ALERT - Events that might require action. @@ -59,28 +59,28 @@ type Auditnslogaction struct { Loglevel []string `json:"loglevel,omitempty"` /** * Format of dates in the logs. - Supported formats are: + Supported formats are: * MMDDYYYY - U.S. style month/date/year format. * DDMMYYYY - European style date/month/year format. * YYYYMMDD - ISO style year/month/date format. */ Dateformat string `json:"dateformat,omitempty"` /** - * Facility value, as defined in RFC 3164, assigned to the log message. + * Facility value, as defined in RFC 3164, assigned to the log message. Log facility values are numbers 0 to 7 (LOCAL0 through LOCAL7). Each number indicates where a specific message originated from, such as the Citrix ADC itself, the VPN, or external. */ Logfacility string `json:"logfacility,omitempty"` /** * Log TCP messages. - */ + */ Tcp string `json:"tcp,omitempty"` /** * Log access control list (ACL) messages. - */ + */ Acl string `json:"acl,omitempty"` /** - * Time zone used for date and timestamps in the logs. - Available settings function as follows: + * Time zone used for date and timestamps in the logs. + Available settings function as follows: * GMT_TIME. Coordinated Universal Time. * LOCAL_TIME. The server's timezone setting. */ @@ -97,37 +97,36 @@ type Auditnslogaction struct { Appflowexport string `json:"appflowexport,omitempty"` /** * Log the LSN messages - */ + */ Lsn string `json:"lsn,omitempty"` /** * Log the ALG messages - */ + */ Alg string `json:"alg,omitempty"` /** * Log subscriber session event information - */ + */ Subscriberlog string `json:"subscriberlog,omitempty"` /** * Log SSL Interception event information - */ + */ Sslinterception string `json:"sslinterception,omitempty"` /** * Log URL filtering event information - */ + */ Urlfiltering string `json:"urlfiltering,omitempty"` /** * Log Content Inspection event information - */ + */ Contentinspectionlog string `json:"contentinspectionlog,omitempty"` /** * Immediately send a DNS query to resolve the server's domain name. - */ + */ Domainresolvenow bool `json:"domainresolvenow,omitempty"` //------- Read only Parameter ---------; - Ip string `json:"ip,omitempty"` + Ip string `json:"ip,omitempty"` Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/audit/auditnslogglobal_auditnslogpolicy_binding.go b/resource/config/auditnslogglobal_auditnslogpolicy_binding.go similarity index 92% rename from resource/config/audit/auditnslogglobal_auditnslogpolicy_binding.go rename to resource/config/auditnslogglobal_auditnslogpolicy_binding.go index 2d4bf3d..122d3c3 100644 --- a/resource/config/audit/auditnslogglobal_auditnslogpolicy_binding.go +++ b/resource/config/auditnslogglobal_auditnslogpolicy_binding.go @@ -12,31 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the auditnslogpolicy that can be bound to auditnslogglobal. -*/ + */ type Auditnslogglobalauditnslogpolicybinding struct { /** * Name of the audit nslog policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * number of polices bound to label. - */ - Numpol int `json:"numpol,omitempty"` + */ + Numpol int `json:"numpol,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` /** * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. - */ + */ Builtin []string `json:"builtin,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogglobal_binding.go b/resource/config/auditnslogglobal_binding.go similarity index 94% rename from resource/config/audit/auditnslogglobal_binding.go rename to resource/config/auditnslogglobal_binding.go index 8da661d..e8dc9cc 100644 --- a/resource/config/audit/auditnslogglobal_binding.go +++ b/resource/config/auditnslogglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** -* Binding object which returns the resources bound to auditnslogglobal_binding. -*/ +* Binding object which returns the resources bound to auditnslogglobal_binding. + */ type Auditnslogglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogglobal_nslogpolicy_binding.go b/resource/config/auditnslogglobal_nslogpolicy_binding.go similarity index 92% rename from resource/config/audit/auditnslogglobal_nslogpolicy_binding.go rename to resource/config/auditnslogglobal_nslogpolicy_binding.go index e10e026..54e1a4a 100644 --- a/resource/config/audit/auditnslogglobal_nslogpolicy_binding.go +++ b/resource/config/auditnslogglobal_nslogpolicy_binding.go @@ -12,31 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the nslogpolicy that can be bound to auditnslogglobal. -*/ + */ type Auditnslogglobalnslogpolicybinding struct { /** * Name of the audit nslog policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * number of polices bound to label. - */ - Numpol uint32 `json:"numpol,omitempty"` + */ + Numpol uint32 `json:"numpol,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` /** * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. - */ + */ Builtin []string `json:"builtin,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogparams.go b/resource/config/auditnslogparams.go similarity index 93% rename from resource/config/audit/auditnslogparams.go rename to resource/config/auditnslogparams.go index 3e41eb3..34f5c6f 100644 --- a/resource/config/audit/auditnslogparams.go +++ b/resource/config/auditnslogparams.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Configuration for ns log parameters resource. -*/ + */ type Auditnslogparams struct { /** * IP address of the nslog server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port on which the nslog server accepts connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Format of dates in the logs. - Supported formats are: + Supported formats are: * MMDDYYYY - U.S. style month/date/year format. * DDMMYYYY - European style date/month/year format. * YYYYMMDD - ISO style year/month/date format. */ Dateformat string `json:"dateformat,omitempty"` /** - * Types of information to be logged. - Available settings function as follows: + * Types of information to be logged. + Available settings function as follows: * ALL - All events. * EMERGENCY - Events that indicate an immediate crisis on the server. * ALERT - Events that might require action. @@ -52,21 +52,21 @@ type Auditnslogparams struct { */ Loglevel []string `json:"loglevel,omitempty"` /** - * Facility value, as defined in RFC 3164, assigned to the log message. + * Facility value, as defined in RFC 3164, assigned to the log message. Log facility values are numbers 0 to 7 (LOCAL0 through LOCAL7). Each number indicates where a specific message originated from, such as the Citrix ADC itself, the VPN, or external. */ Logfacility string `json:"logfacility,omitempty"` /** * Configure auditing to log TCP messages. - */ + */ Tcp string `json:"tcp,omitempty"` /** * Configure auditing to log access control list (ACL) messages. - */ + */ Acl string `json:"acl,omitempty"` /** - * Time zone used for date and timestamps in the logs. - Supported settings are: + * Time zone used for date and timestamps in the logs. + Supported settings are: * GMT_TIME - Coordinated Universal Time. * LOCAL_TIME - Use the server's timezone setting. */ @@ -83,32 +83,31 @@ type Auditnslogparams struct { Appflowexport string `json:"appflowexport,omitempty"` /** * Log the LSN messages - */ + */ Lsn string `json:"lsn,omitempty"` /** * Log the ALG messages - */ + */ Alg string `json:"alg,omitempty"` /** * Log subscriber session event information - */ + */ Subscriberlog string `json:"subscriberlog,omitempty"` /** * Log SSL Interception event information - */ + */ Sslinterception string `json:"sslinterception,omitempty"` /** * Log URL filtering event information - */ + */ Urlfiltering string `json:"urlfiltering,omitempty"` /** * Log Content Inspection event information - */ + */ Contentinspectionlog string `json:"contentinspectionlog,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/audit/auditnslogpolicy.go b/resource/config/auditnslogpolicy.go similarity index 91% rename from resource/config/audit/auditnslogpolicy.go rename to resource/config/auditnslogpolicy.go index 99a9ad7..a6064ff 100644 --- a/resource/config/audit/auditnslogpolicy.go +++ b/resource/config/auditnslogpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Configuration for ns log policy resource. -*/ + */ type Auditnslogpolicy struct { /** - * Name for the policy. + * Name for the policy. Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the nslog policy is added. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my nslog policy" or 'my nslog policy'). @@ -29,7 +29,7 @@ type Auditnslogpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that defines the messages to be logged to the nslog server. - */ + */ Rule string `json:"rule,omitempty"` /** * Nslog server action that is performed when this policy matches. @@ -39,8 +39,7 @@ type Auditnslogpolicy struct { //------- Read only Parameter ---------; - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Expressiontype string `json:"expressiontype,omitempty"` - } diff --git a/resource/config/audit/auditnslogpolicy_aaagroup_binding.go b/resource/config/auditnslogpolicy_aaagroup_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_aaagroup_binding.go rename to resource/config/auditnslogpolicy_aaagroup_binding.go index 553f3a2..8ee2daf 100644 --- a/resource/config/audit/auditnslogpolicy_aaagroup_binding.go +++ b/resource/config/auditnslogpolicy_aaagroup_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the aaagroup that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyaaagroupbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_aaauser_binding.go b/resource/config/auditnslogpolicy_aaauser_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_aaauser_binding.go rename to resource/config/auditnslogpolicy_aaauser_binding.go index 147b138..76d3588 100644 --- a/resource/config/audit/auditnslogpolicy_aaauser_binding.go +++ b/resource/config/auditnslogpolicy_aaauser_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the aaauser that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyaaauserbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_appfwglobal_binding.go b/resource/config/auditnslogpolicy_appfwglobal_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_appfwglobal_binding.go rename to resource/config/auditnslogpolicy_appfwglobal_binding.go index 40909be..efa5c05 100644 --- a/resource/config/audit/auditnslogpolicy_appfwglobal_binding.go +++ b/resource/config/auditnslogpolicy_appfwglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the appfwglobal that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyappfwglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_auditnslogglobal_binding.go b/resource/config/auditnslogpolicy_auditnslogglobal_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_auditnslogglobal_binding.go rename to resource/config/auditnslogpolicy_auditnslogglobal_binding.go index 34e773d..310d0f0 100644 --- a/resource/config/audit/auditnslogpolicy_auditnslogglobal_binding.go +++ b/resource/config/auditnslogpolicy_auditnslogglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the auditnslogglobal that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyauditnslogglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_authenticationvserver_binding.go b/resource/config/auditnslogpolicy_authenticationvserver_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_authenticationvserver_binding.go rename to resource/config/auditnslogpolicy_authenticationvserver_binding.go index ab62698..0c7773a 100644 --- a/resource/config/audit/auditnslogpolicy_authenticationvserver_binding.go +++ b/resource/config/auditnslogpolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the authenticationvserver that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_binding.go b/resource/config/auditnslogpolicy_binding.go similarity index 89% rename from resource/config/audit/auditnslogpolicy_binding.go rename to resource/config/auditnslogpolicy_binding.go index cc0822f..48f1479 100644 --- a/resource/config/audit/auditnslogpolicy_binding.go +++ b/resource/config/auditnslogpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** -* Binding object which returns the resources bound to auditnslogpolicy_binding. -*/ +* Binding object which returns the resources bound to auditnslogpolicy_binding. + */ type Auditnslogpolicybinding struct { /** - * Name of the policy.
Minimum value = - */ + * Name of the policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_csvserver_binding.go b/resource/config/auditnslogpolicy_csvserver_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_csvserver_binding.go rename to resource/config/auditnslogpolicy_csvserver_binding.go index e2db826..4e49a05 100644 --- a/resource/config/audit/auditnslogpolicy_csvserver_binding.go +++ b/resource/config/auditnslogpolicy_csvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the csvserver that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicycsvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_global_binding.go b/resource/config/auditnslogpolicy_global_binding.go similarity index 87% rename from resource/config/audit/auditnslogpolicy_global_binding.go rename to resource/config/auditnslogpolicy_global_binding.go index f7b7472..be1f3b8 100644 --- a/resource/config/audit/auditnslogpolicy_global_binding.go +++ b/resource/config/auditnslogpolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the global that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_group_binding.go b/resource/config/auditnslogpolicy_group_binding.go similarity index 87% rename from resource/config/audit/auditnslogpolicy_group_binding.go rename to resource/config/auditnslogpolicy_group_binding.go index 6d970e4..3784269 100644 --- a/resource/config/audit/auditnslogpolicy_group_binding.go +++ b/resource/config/auditnslogpolicy_group_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the group that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicygroupbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_lbvserver_binding.go b/resource/config/auditnslogpolicy_lbvserver_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_lbvserver_binding.go rename to resource/config/auditnslogpolicy_lbvserver_binding.go index 15ba32f..5376107 100644 --- a/resource/config/audit/auditnslogpolicy_lbvserver_binding.go +++ b/resource/config/auditnslogpolicy_lbvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the lbvserver that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicylbvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_nslogglobal_binding.go b/resource/config/auditnslogpolicy_nslogglobal_binding.go similarity index 87% rename from resource/config/audit/auditnslogpolicy_nslogglobal_binding.go rename to resource/config/auditnslogpolicy_nslogglobal_binding.go index f5fd139..d102ef8 100644 --- a/resource/config/audit/auditnslogpolicy_nslogglobal_binding.go +++ b/resource/config/auditnslogpolicy_nslogglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the nslogglobal that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicynslogglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_systemglobal_binding.go b/resource/config/auditnslogpolicy_systemglobal_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_systemglobal_binding.go rename to resource/config/auditnslogpolicy_systemglobal_binding.go index 19e9ef8..d8f859d 100644 --- a/resource/config/audit/auditnslogpolicy_systemglobal_binding.go +++ b/resource/config/auditnslogpolicy_systemglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the systemglobal that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicysystemglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_tmglobal_binding.go b/resource/config/auditnslogpolicy_tmglobal_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_tmglobal_binding.go rename to resource/config/auditnslogpolicy_tmglobal_binding.go index 8e1dedb..a7471d0 100644 --- a/resource/config/audit/auditnslogpolicy_tmglobal_binding.go +++ b/resource/config/auditnslogpolicy_tmglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the tmglobal that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicytmglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_user_binding.go b/resource/config/auditnslogpolicy_user_binding.go similarity index 87% rename from resource/config/audit/auditnslogpolicy_user_binding.go rename to resource/config/auditnslogpolicy_user_binding.go index 53b6fba..33ee19e 100644 --- a/resource/config/audit/auditnslogpolicy_user_binding.go +++ b/resource/config/auditnslogpolicy_user_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the user that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyuserbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_vpnglobal_binding.go b/resource/config/auditnslogpolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_vpnglobal_binding.go rename to resource/config/auditnslogpolicy_vpnglobal_binding.go index a803ec8..6244aa6 100644 --- a/resource/config/audit/auditnslogpolicy_vpnglobal_binding.go +++ b/resource/config/auditnslogpolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the vpnglobal that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_vpnvserver_binding.go b/resource/config/auditnslogpolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/audit/auditnslogpolicy_vpnvserver_binding.go rename to resource/config/auditnslogpolicy_vpnvserver_binding.go index 15a7217..e2698a1 100644 --- a/resource/config/audit/auditnslogpolicy_vpnvserver_binding.go +++ b/resource/config/auditnslogpolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the vpnvserver that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditnslogpolicy_vserver_binding.go b/resource/config/auditnslogpolicy_vserver_binding.go similarity index 87% rename from resource/config/audit/auditnslogpolicy_vserver_binding.go rename to resource/config/auditnslogpolicy_vserver_binding.go index a2eac05..538c074 100644 --- a/resource/config/audit/auditnslogpolicy_vserver_binding.go +++ b/resource/config/auditnslogpolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the vserver that can be bound to auditnslogpolicy. -*/ + */ type Auditnslogpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogaction.go b/resource/config/auditsyslogaction.go similarity index 92% rename from resource/config/audit/auditsyslogaction.go rename to resource/config/auditsyslogaction.go index d284250..9422e1c 100644 --- a/resource/config/audit/auditsyslogaction.go +++ b/resource/config/auditsyslogaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Configuration for system log action resource. -*/ + */ type Auditsyslogaction struct { /** * Name of the syslog action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the syslog action is added. @@ -28,27 +28,27 @@ type Auditsyslogaction struct { Name string `json:"name,omitempty"` /** * IP address of the syslog server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * SYSLOG server name as a FQDN. Mutually exclusive with serverIP/lbVserverName - */ + */ Serverdomainname string `json:"serverdomainname,omitempty"` /** * Time, in seconds, for which the Citrix ADC waits before sending another DNS query to resolve the host name of the syslog server if the last query failed. - */ + */ Domainresolveretry int `json:"domainresolveretry,omitempty"` /** * Name of the LB vserver. Mutually exclusive with syslog serverIP/serverName - */ + */ Lbvservername string `json:"lbvservername,omitempty"` /** * Port on which the syslog server accepts connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** - * Audit log level, which specifies the types of events to log. - Available values function as follows: + * Audit log level, which specifies the types of events to log. + Available values function as follows: * ALL - All events. * EMERGENCY - Events that indicate an immediate crisis on the server. * ALERT - Events that might require action. @@ -63,34 +63,34 @@ type Auditsyslogaction struct { Loglevel []string `json:"loglevel,omitempty"` /** * Format of dates in the logs. - Supported formats are: + Supported formats are: * MMDDYYYY. -U.S. style month/date/year format. * DDMMYYYY - European style date/month/year format. * YYYYMMDD - ISO style year/month/date format. */ Dateformat string `json:"dateformat,omitempty"` /** - * Facility value, as defined in RFC 3164, assigned to the log message. + * Facility value, as defined in RFC 3164, assigned to the log message. Log facility values are numbers 0 to 7 (LOCAL0 through LOCAL7). Each number indicates where a specific message originated from, such as the Citrix ADC itself, the VPN, or external. */ Logfacility string `json:"logfacility,omitempty"` /** * Log TCP messages. - */ + */ Tcp string `json:"tcp,omitempty"` /** * Log access control list (ACL) messages. - */ + */ Acl string `json:"acl,omitempty"` /** - * Time zone used for date and timestamps in the logs. - Supported settings are: + * Time zone used for date and timestamps in the logs. + Supported settings are: * GMT_TIME. Coordinated Universal time. * LOCAL_TIME. Use the server's timezone setting. */ Timezone string `json:"timezone,omitempty"` /** - * Log user-configurable log messages to syslog. + * Log user-configurable log messages to syslog. Setting this parameter to NO causes auditing to ignore all user-configured message actions. Setting this parameter to YES causes auditing to log user-configured message actions that meet the other logging criteria. */ Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` @@ -101,35 +101,35 @@ type Auditsyslogaction struct { Appflowexport string `json:"appflowexport,omitempty"` /** * Log lsn info - */ + */ Lsn string `json:"lsn,omitempty"` /** * Log alg info - */ + */ Alg string `json:"alg,omitempty"` /** * Log subscriber session event information - */ + */ Subscriberlog string `json:"subscriberlog,omitempty"` /** * Transport type used to send auditlogs to syslog server. Default type is UDP. - */ + */ Transport string `json:"transport,omitempty"` /** * Name of the TCP profile whose settings are to be applied to the audit server info to tune the TCP connection parameters. - */ + */ Tcpprofilename string `json:"tcpprofilename,omitempty"` /** * Max size of log data that can be held in NSB chain of server info. - */ + */ Maxlogdatasizetohold int `json:"maxlogdatasizetohold,omitempty"` /** * Log DNS related syslog messages - */ + */ Dns string `json:"dns,omitempty"` /** * Log Content Inspection event information - */ + */ Contentinspectionlog string `json:"contentinspectionlog,omitempty"` /** * Name of the network profile. @@ -138,21 +138,20 @@ type Auditsyslogaction struct { Netprofile string `json:"netprofile,omitempty"` /** * Log SSL Interception event information - */ + */ Sslinterception string `json:"sslinterception,omitempty"` /** * Log URL filtering event information - */ + */ Urlfiltering string `json:"urlfiltering,omitempty"` /** * Immediately send a DNS query to resolve the server's domain name. - */ + */ Domainresolvenow bool `json:"domainresolvenow,omitempty"` //------- Read only Parameter ---------; - Ip string `json:"ip,omitempty"` + Ip string `json:"ip,omitempty"` Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go b/resource/config/auditsyslogglobal_auditsyslogpolicy_binding.go similarity index 92% rename from resource/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go rename to resource/config/auditsyslogglobal_auditsyslogpolicy_binding.go index 984e7cf..dfd80fb 100644 --- a/resource/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go +++ b/resource/config/auditsyslogglobal_auditsyslogpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the auditsyslogpolicy that can be bound to auditsyslogglobal. -*/ + */ type Auditsyslogglobalauditsyslogpolicybinding struct { /** * Name of the audit syslog policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * number of polices bound to label. - */ - Numpol int `json:"numpol,omitempty"` + */ + Numpol int `json:"numpol,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` /** * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. - */ + */ Builtin []string `json:"builtin,omitempty"` /** * The feature to be checked while applying this config - */ + */ Feature string `json:"feature,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogglobal_binding.go b/resource/config/auditsyslogglobal_binding.go similarity index 94% rename from resource/config/audit/auditsyslogglobal_binding.go rename to resource/config/auditsyslogglobal_binding.go index c7d72e5..639f201 100644 --- a/resource/config/audit/auditsyslogglobal_binding.go +++ b/resource/config/auditsyslogglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** -* Binding object which returns the resources bound to auditsyslogglobal_binding. -*/ +* Binding object which returns the resources bound to auditsyslogglobal_binding. + */ type Auditsyslogglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogglobal_syslogpolicy_binding.go b/resource/config/auditsyslogglobal_syslogpolicy_binding.go similarity index 92% rename from resource/config/audit/auditsyslogglobal_syslogpolicy_binding.go rename to resource/config/auditsyslogglobal_syslogpolicy_binding.go index 3da3274..5983b1f 100644 --- a/resource/config/audit/auditsyslogglobal_syslogpolicy_binding.go +++ b/resource/config/auditsyslogglobal_syslogpolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the syslogpolicy that can be bound to auditsyslogglobal. -*/ + */ type Auditsyslogglobalsyslogpolicybinding struct { /** * Name of the audit syslog policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * number of polices bound to label. - */ - Numpol uint32 `json:"numpol,omitempty"` + */ + Numpol uint32 `json:"numpol,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` /** * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. - */ + */ Builtin []string `json:"builtin,omitempty"` /** * The feature to be checked while applying this config - */ + */ Feature string `json:"feature,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogparams.go b/resource/config/auditsyslogparams.go similarity index 91% rename from resource/config/audit/auditsyslogparams.go rename to resource/config/auditsyslogparams.go index e873167..05cb85e 100644 --- a/resource/config/audit/auditsyslogparams.go +++ b/resource/config/auditsyslogparams.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Configuration for system log parameters resource. -*/ + */ type Auditsyslogparams struct { /** * IP address of the syslog server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port on which the syslog server accepts connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Format of dates in the logs. - Supported formats are: + Supported formats are: * MMDDYYYY - U.S. style month/date/year format. * DDMMYYYY. European style -date/month/year format. * YYYYMMDD - ISO style year/month/date format. */ Dateformat string `json:"dateformat,omitempty"` /** - * Types of information to be logged. - Available settings function as follows: + * Types of information to be logged. + Available settings function as follows: * ALL - All events. * EMERGENCY - Events that indicate an immediate crisis on the server. * ALERT - Events that might require action. @@ -52,27 +52,27 @@ type Auditsyslogparams struct { */ Loglevel []string `json:"loglevel,omitempty"` /** - * Facility value, as defined in RFC 3164, assigned to the log message. + * Facility value, as defined in RFC 3164, assigned to the log message. Log facility values are numbers 0 to 7 (LOCAL0 through LOCAL7). Each number indicates where a specific message originated from, such as the Citrix ADC itself, the VPN, or external. */ Logfacility string `json:"logfacility,omitempty"` /** * Log TCP messages. - */ + */ Tcp string `json:"tcp,omitempty"` /** * Log access control list (ACL) messages. - */ + */ Acl string `json:"acl,omitempty"` /** - * Time zone used for date and timestamps in the logs. - Available settings function as follows: + * Time zone used for date and timestamps in the logs. + Available settings function as follows: * GMT_TIME - Coordinated Universal Time. * LOCAL_TIME Use the server's timezone setting. */ Timezone string `json:"timezone,omitempty"` /** - * Log user-configurable log messages to syslog. + * Log user-configurable log messages to syslog. Setting this parameter to NO causes audit to ignore all user-configured message actions. Setting this parameter to YES causes audit to log user-configured message actions that meet the other logging criteria. */ Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` @@ -83,36 +83,35 @@ type Auditsyslogparams struct { Appflowexport string `json:"appflowexport,omitempty"` /** * Log the LSN messages - */ + */ Lsn string `json:"lsn,omitempty"` /** * Log the ALG messages - */ + */ Alg string `json:"alg,omitempty"` /** * Log subscriber session event information - */ + */ Subscriberlog string `json:"subscriberlog,omitempty"` /** * Log DNS related syslog messages - */ + */ Dns string `json:"dns,omitempty"` /** * Log SSL Interceptionn event information - */ + */ Sslinterception string `json:"sslinterception,omitempty"` /** * Log URL filtering event information - */ + */ Urlfiltering string `json:"urlfiltering,omitempty"` /** * Log Content Inspection event ifnormation - */ + */ Contentinspectionlog string `json:"contentinspectionlog,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/audit/auditsyslogpolicy.go b/resource/config/auditsyslogpolicy.go similarity index 91% rename from resource/config/audit/auditsyslogpolicy.go rename to resource/config/auditsyslogpolicy.go index 5f9ce91..05cacfe 100644 --- a/resource/config/audit/auditsyslogpolicy.go +++ b/resource/config/auditsyslogpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Configuration for system log policy resource. -*/ + */ type Auditsyslogpolicy struct { /** - * Name for the policy. + * Name for the policy. Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the syslog policy is added. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my syslog policy" or 'my syslog policy'). @@ -29,7 +29,7 @@ type Auditsyslogpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that defines the messages to be logged to the syslog server. - */ + */ Rule string `json:"rule,omitempty"` /** * Syslog server action to perform when this policy matches traffic. @@ -39,8 +39,7 @@ type Auditsyslogpolicy struct { //------- Read only Parameter ---------; - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Expressiontype string `json:"expressiontype,omitempty"` - } diff --git a/resource/config/audit/auditsyslogpolicy_aaagroup_binding.go b/resource/config/auditsyslogpolicy_aaagroup_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_aaagroup_binding.go rename to resource/config/auditsyslogpolicy_aaagroup_binding.go index 60291f8..db5a43d 100644 --- a/resource/config/audit/auditsyslogpolicy_aaagroup_binding.go +++ b/resource/config/auditsyslogpolicy_aaagroup_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the aaagroup that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyaaagroupbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_aaauser_binding.go b/resource/config/auditsyslogpolicy_aaauser_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_aaauser_binding.go rename to resource/config/auditsyslogpolicy_aaauser_binding.go index f271277..fcee377 100644 --- a/resource/config/audit/auditsyslogpolicy_aaauser_binding.go +++ b/resource/config/auditsyslogpolicy_aaauser_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the aaauser that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyaaauserbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go b/resource/config/auditsyslogpolicy_auditsyslogglobal_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go rename to resource/config/auditsyslogpolicy_auditsyslogglobal_binding.go index 87b23df..3b9902a 100644 --- a/resource/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go +++ b/resource/config/auditsyslogpolicy_auditsyslogglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the auditsyslogglobal that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyauditsyslogglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_authenticationvserver_binding.go b/resource/config/auditsyslogpolicy_authenticationvserver_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_authenticationvserver_binding.go rename to resource/config/auditsyslogpolicy_authenticationvserver_binding.go index ca5ab85..26c1057 100644 --- a/resource/config/audit/auditsyslogpolicy_authenticationvserver_binding.go +++ b/resource/config/auditsyslogpolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the authenticationvserver that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_binding.go b/resource/config/auditsyslogpolicy_binding.go similarity index 89% rename from resource/config/audit/auditsyslogpolicy_binding.go rename to resource/config/auditsyslogpolicy_binding.go index 2cc0a3a..ed5cbf8 100644 --- a/resource/config/audit/auditsyslogpolicy_binding.go +++ b/resource/config/auditsyslogpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** -* Binding object which returns the resources bound to auditsyslogpolicy_binding. -*/ +* Binding object which returns the resources bound to auditsyslogpolicy_binding. + */ type Auditsyslogpolicybinding struct { /** - * Name of the policy.
Minimum value = - */ + * Name of the policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_csvserver_binding.go b/resource/config/auditsyslogpolicy_csvserver_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_csvserver_binding.go rename to resource/config/auditsyslogpolicy_csvserver_binding.go index d7d62d9..05b79f3 100644 --- a/resource/config/audit/auditsyslogpolicy_csvserver_binding.go +++ b/resource/config/auditsyslogpolicy_csvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the csvserver that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicycsvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_global_binding.go b/resource/config/auditsyslogpolicy_global_binding.go similarity index 87% rename from resource/config/audit/auditsyslogpolicy_global_binding.go rename to resource/config/auditsyslogpolicy_global_binding.go index d7f960a..8702d77 100644 --- a/resource/config/audit/auditsyslogpolicy_global_binding.go +++ b/resource/config/auditsyslogpolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the global that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_group_binding.go b/resource/config/auditsyslogpolicy_group_binding.go similarity index 87% rename from resource/config/audit/auditsyslogpolicy_group_binding.go rename to resource/config/auditsyslogpolicy_group_binding.go index e04ef30..936ba59 100644 --- a/resource/config/audit/auditsyslogpolicy_group_binding.go +++ b/resource/config/auditsyslogpolicy_group_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the group that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicygroupbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_lbvserver_binding.go b/resource/config/auditsyslogpolicy_lbvserver_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_lbvserver_binding.go rename to resource/config/auditsyslogpolicy_lbvserver_binding.go index 838f32f..c818d81 100644 --- a/resource/config/audit/auditsyslogpolicy_lbvserver_binding.go +++ b/resource/config/auditsyslogpolicy_lbvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the lbvserver that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicylbvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go b/resource/config/auditsyslogpolicy_rnatglobal_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go rename to resource/config/auditsyslogpolicy_rnatglobal_binding.go index b1069b1..bcae121 100644 --- a/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go +++ b/resource/config/auditsyslogpolicy_rnatglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the rnatglobal that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyrnatglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_syslogglobal_binding.go b/resource/config/auditsyslogpolicy_syslogglobal_binding.go similarity index 87% rename from resource/config/audit/auditsyslogpolicy_syslogglobal_binding.go rename to resource/config/auditsyslogpolicy_syslogglobal_binding.go index 86daba6..fd23107 100644 --- a/resource/config/audit/auditsyslogpolicy_syslogglobal_binding.go +++ b/resource/config/auditsyslogpolicy_syslogglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the syslogglobal that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicysyslogglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_systemglobal_binding.go b/resource/config/auditsyslogpolicy_systemglobal_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_systemglobal_binding.go rename to resource/config/auditsyslogpolicy_systemglobal_binding.go index 57aabf5..5db8ad8 100644 --- a/resource/config/audit/auditsyslogpolicy_systemglobal_binding.go +++ b/resource/config/auditsyslogpolicy_systemglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the systemglobal that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicysystemglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_tmglobal_binding.go b/resource/config/auditsyslogpolicy_tmglobal_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_tmglobal_binding.go rename to resource/config/auditsyslogpolicy_tmglobal_binding.go index 39b3f59..fc277fc 100644 --- a/resource/config/audit/auditsyslogpolicy_tmglobal_binding.go +++ b/resource/config/auditsyslogpolicy_tmglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the tmglobal that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicytmglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_user_binding.go b/resource/config/auditsyslogpolicy_user_binding.go similarity index 87% rename from resource/config/audit/auditsyslogpolicy_user_binding.go rename to resource/config/auditsyslogpolicy_user_binding.go index fb6b145..ba45220 100644 --- a/resource/config/audit/auditsyslogpolicy_user_binding.go +++ b/resource/config/auditsyslogpolicy_user_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the user that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyuserbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_vpnglobal_binding.go b/resource/config/auditsyslogpolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_vpnglobal_binding.go rename to resource/config/auditsyslogpolicy_vpnglobal_binding.go index 4ddfde5..f770ab3 100644 --- a/resource/config/audit/auditsyslogpolicy_vpnglobal_binding.go +++ b/resource/config/auditsyslogpolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the vpnglobal that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_vpnvserver_binding.go b/resource/config/auditsyslogpolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/audit/auditsyslogpolicy_vpnvserver_binding.go rename to resource/config/auditsyslogpolicy_vpnvserver_binding.go index b5b66b4..6f5de85 100644 --- a/resource/config/audit/auditsyslogpolicy_vpnvserver_binding.go +++ b/resource/config/auditsyslogpolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the vpnvserver that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/audit/auditsyslogpolicy_vserver_binding.go b/resource/config/auditsyslogpolicy_vserver_binding.go similarity index 87% rename from resource/config/audit/auditsyslogpolicy_vserver_binding.go rename to resource/config/auditsyslogpolicy_vserver_binding.go index 4536656..d48a31e 100644 --- a/resource/config/audit/auditsyslogpolicy_vserver_binding.go +++ b/resource/config/auditsyslogpolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package audit +package config /** * Binding class showing the vserver that can be bound to auditsyslogpolicy. -*/ + */ type Auditsyslogpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationadfsproxyprofile.go b/resource/config/authenticationadfsproxyprofile.go similarity index 95% rename from resource/config/authentication/authenticationadfsproxyprofile.go rename to resource/config/authenticationadfsproxyprofile.go index be9785d..9447121 100644 --- a/resource/config/authentication/authenticationadfsproxyprofile.go +++ b/resource/config/authenticationadfsproxyprofile.go @@ -12,38 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for ADFSProxy Profile resource. -*/ + */ type Authenticationadfsproxyprofile struct { /** * Name for the adfs proxy profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after the profile is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my push service" or 'my push service'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my push service" or 'my push service'). */ Name string `json:"name,omitempty"` /** * This is the name of an account in directory that would be used to authenticate trust request from ADC acting as a proxy. - */ + */ Username string `json:"username,omitempty"` /** * This is the password of an account in directory that would be used to authenticate trust request from ADC acting as a proxy. - */ + */ Password string `json:"password,omitempty"` /** * Fully qualified url of the adfs server. - */ + */ Serverurl string `json:"serverurl,omitempty"` /** * SSL certificate of the proxy that is registered at adfs server for trust. - */ + */ Certkeyname string `json:"certkeyname,omitempty"` //------- Read only Parameter ---------; Adfstruststatus string `json:"adfstruststatus,omitempty"` - } diff --git a/resource/config/authentication/authenticationauthnprofile.go b/resource/config/authenticationauthnprofile.go similarity index 95% rename from resource/config/authentication/authenticationauthnprofile.go rename to resource/config/authenticationauthnprofile.go index 237c085..fe9b4fc 100644 --- a/resource/config/authentication/authenticationauthnprofile.go +++ b/resource/config/authenticationauthnprofile.go @@ -12,34 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Authentication profile resource. -*/ + */ type Authenticationauthnprofile struct { /** - * Name for the authentication profile. + * Name for the authentication profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the RADIUS action is added. */ Name string `json:"name,omitempty"` /** * Name of the authentication vserver at which authentication should be done. - */ + */ Authnvsname string `json:"authnvsname,omitempty"` /** * Hostname of the authentication vserver to which user must be redirected for authentication. - */ + */ Authenticationhost string `json:"authenticationhost,omitempty"` /** * Domain for which TM cookie must to be set. If unspecified, cookie will be set for FQDN. - */ + */ Authenticationdomain string `json:"authenticationdomain,omitempty"` /** * Authentication weight or level of the vserver to which this will bound. This is used to order TM vservers based on the protection required. A session that is created by authenticating against TM vserver at given level cannot be used to access TM vserver at a higher level. - */ + */ Authenticationlevel int `json:"authenticationlevel,omitempty"` - } diff --git a/resource/config/authentication/authenticationazurekeyvault.go b/resource/config/authenticationazurekeyvault.go similarity index 96% rename from resource/config/authentication/authenticationazurekeyvault.go rename to resource/config/authenticationazurekeyvault.go index c2454c7..57802cd 100644 --- a/resource/config/authentication/authenticationazurekeyvault.go +++ b/resource/config/authenticationazurekeyvault.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Azure Key Vault entity resource. -*/ + */ type Authenticationazurekeyvault struct { /** * Name for the new Azure Key Vault profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after an action is created. @@ -28,47 +28,46 @@ type Authenticationazurekeyvault struct { Name string `json:"name,omitempty"` /** * Name of the Azure vault account as configured in azure portal. - */ + */ Vaultname string `json:"vaultname,omitempty"` /** * Unique identity of the relying party requesting for authentication. - */ + */ Clientid string `json:"clientid,omitempty"` /** * Unique secret string to authorize relying party at authorization server. - */ + */ Clientsecret string `json:"clientsecret,omitempty"` /** * Friendly name of the Key to be used to compute signature. - */ + */ Servicekeyname string `json:"servicekeyname,omitempty"` /** * Algorithm to be used to sign/verify transactions - */ + */ Signaturealg string `json:"signaturealg,omitempty"` /** * URL endpoint on relying party to which the OAuth token is to be sent. - */ + */ Tokenendpoint string `json:"tokenendpoint,omitempty"` /** * Name of the service used to send push notifications - */ + */ Pushservice string `json:"pushservice,omitempty"` /** * This is the group that is added to user sessions that match current IdP policy. It can be used in policies to identify relying party trust. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Interval at which access token in obtained. - */ + */ Refreshinterval int `json:"refreshinterval,omitempty"` /** * TenantID of the application. This is usually specific to providers such as Microsoft and usually refers to the deployment identifier. - */ + */ Tenantid string `json:"tenantid,omitempty"` /** - * If authentication is disabled, otp checks are not performed after azure vault keys are obtained. This is useful to distinguish whether user has registered devices. - */ + * If authentication is disabled, otp checks are not performed after azure vault keys are obtained. This is useful to distinguish whether user has registered devices. + */ Authentication string `json:"authentication,omitempty"` - } diff --git a/resource/config/authentication/authenticationcaptchaaction.go b/resource/config/authenticationcaptchaaction.go similarity index 97% rename from resource/config/authentication/authenticationcaptchaaction.go rename to resource/config/authenticationcaptchaaction.go index 64ac025..80c231b 100644 --- a/resource/config/authentication/authenticationcaptchaaction.go +++ b/resource/config/authenticationcaptchaaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Captcha Action resource. -*/ + */ type Authenticationcaptchaaction struct { /** * Name for the new captcha action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after an action is created. @@ -28,19 +28,18 @@ type Authenticationcaptchaaction struct { Name string `json:"name,omitempty"` /** * This is the endpoint at which captcha response is validated. - */ + */ Serverurl string `json:"serverurl,omitempty"` /** * Secret of gateway as established at the captcha source. - */ + */ Secretkey string `json:"secretkey,omitempty"` /** * Sitekey to identify gateway fqdn while loading captcha. - */ + */ Sitekey string `json:"sitekey,omitempty"` /** * This is the group that is added to user sessions that match current policy. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` - } diff --git a/resource/config/authentication/authenticationcertaction.go b/resource/config/authenticationcertaction.go similarity index 95% rename from resource/config/authentication/authenticationcertaction.go rename to resource/config/authenticationcertaction.go index b6747ce..eecc9c9 100644 --- a/resource/config/authentication/authenticationcertaction.go +++ b/resource/config/authenticationcertaction.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for CERT action resource. -*/ + */ type Authenticationcertaction struct { /** - * Name for the client cert authentication server profile (action). + * Name for the client cert authentication server profile (action). Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after certifcate action is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication action" or 'my authentication action'). */ Name string `json:"name,omitempty"` /** - * Enables or disables two-factor authentication. + * Enables or disables two-factor authentication. Two factor authentication is client cert authentication followed by password authentication. */ Twofactor string `json:"twofactor,omitempty"` @@ -44,7 +44,6 @@ type Authenticationcertaction struct { Groupnamefield string `json:"groupnamefield,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` - } diff --git a/resource/config/authentication/authenticationcertpolicy.go b/resource/config/authenticationcertpolicy.go similarity index 94% rename from resource/config/authentication/authenticationcertpolicy.go rename to resource/config/authenticationcertpolicy.go index c192dce..31426c0 100644 --- a/resource/config/authentication/authenticationcertpolicy.go +++ b/resource/config/authenticationcertpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for CERT policy resource. -*/ + */ type Authenticationcertpolicy struct { /** - * Name for the client certificate authentication policy. + * Name for the client certificate authentication policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after cert authentication policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationcertpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the authentication server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the client cert authentication action to be performed if the policy matches. - */ + */ Reqaction string `json:"reqaction,omitempty"` - } diff --git a/resource/config/authentication/authenticationcertpolicy_authenticationvserver_binding.go b/resource/config/authenticationcertpolicy_authenticationvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationcertpolicy_authenticationvserver_binding.go rename to resource/config/authenticationcertpolicy_authenticationvserver_binding.go index 91dbb5c..653ea16 100644 --- a/resource/config/authentication/authenticationcertpolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationcertpolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationcertpolicy. -*/ + */ type Authenticationcertpolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the client cert authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationcertpolicy_binding.go b/resource/config/authenticationcertpolicy_binding.go similarity index 92% rename from resource/config/authentication/authenticationcertpolicy_binding.go rename to resource/config/authenticationcertpolicy_binding.go index 2e874ef..375b985 100644 --- a/resource/config/authentication/authenticationcertpolicy_binding.go +++ b/resource/config/authenticationcertpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationcertpolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationcertpolicy_binding. + */ type Authenticationcertpolicybinding struct { /** - * Name of the client cert authentication policy.
Minimum value = - */ + * Name of the client cert authentication policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationcertpolicy_global_binding.go b/resource/config/authenticationcertpolicy_global_binding.go similarity index 87% rename from resource/config/authentication/authenticationcertpolicy_global_binding.go rename to resource/config/authenticationcertpolicy_global_binding.go index 43c1789..8e04383 100644 --- a/resource/config/authentication/authenticationcertpolicy_global_binding.go +++ b/resource/config/authenticationcertpolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationcertpolicy. -*/ + */ type Authenticationcertpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the client cert authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationcertpolicy_vpnglobal_binding.go b/resource/config/authenticationcertpolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationcertpolicy_vpnglobal_binding.go rename to resource/config/authenticationcertpolicy_vpnglobal_binding.go index 1cb173e..efb07a2 100644 --- a/resource/config/authentication/authenticationcertpolicy_vpnglobal_binding.go +++ b/resource/config/authenticationcertpolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnglobal that can be bound to authenticationcertpolicy. -*/ + */ type Authenticationcertpolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the client cert authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationcertpolicy_vpnvserver_binding.go b/resource/config/authenticationcertpolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationcertpolicy_vpnvserver_binding.go rename to resource/config/authenticationcertpolicy_vpnvserver_binding.go index b2d5cac..4fbe97b 100644 --- a/resource/config/authentication/authenticationcertpolicy_vpnvserver_binding.go +++ b/resource/config/authenticationcertpolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationcertpolicy. -*/ + */ type Authenticationcertpolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the client cert authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationcertpolicy_vserver_binding.go b/resource/config/authenticationcertpolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationcertpolicy_vserver_binding.go rename to resource/config/authenticationcertpolicy_vserver_binding.go index 0b939ce..7fdd80b 100644 --- a/resource/config/authentication/authenticationcertpolicy_vserver_binding.go +++ b/resource/config/authenticationcertpolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationcertpolicy. -*/ + */ type Authenticationcertpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the client cert authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationcitrixauthaction.go b/resource/config/authenticationcitrixauthaction.go similarity index 97% rename from resource/config/authentication/authenticationcitrixauthaction.go rename to resource/config/authenticationcitrixauthaction.go index 2aec3a5..5a544fd 100644 --- a/resource/config/authentication/authenticationcitrixauthaction.go +++ b/resource/config/authenticationcitrixauthaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Citrix Authentication action resource. -*/ + */ type Authenticationcitrixauthaction struct { /** * Name for the new Citrix Authentication action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after an action is created. @@ -28,11 +28,10 @@ type Authenticationcitrixauthaction struct { Name string `json:"name,omitempty"` /** * Type of the Citrix Authentication implementation. Default implementation uses Citrix Cloud Connector. - */ + */ Authenticationtype string `json:"authenticationtype,omitempty"` /** * Authentication needs to be disabled for searching user object without performing authentication. - */ + */ Authentication string `json:"authentication,omitempty"` - } diff --git a/resource/config/authentication/authenticationdfaaction.go b/resource/config/authenticationdfaaction.go similarity index 92% rename from resource/config/authentication/authenticationdfaaction.go rename to resource/config/authenticationdfaaction.go index 88fe281..8341f3d 100644 --- a/resource/config/authentication/authenticationdfaaction.go +++ b/resource/config/authenticationdfaaction.go @@ -12,40 +12,39 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Dfa authentication action resource. -*/ + */ type Authenticationdfaaction struct { /** - * Name for the DFA action. + * Name for the DFA action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the DFA action is added. */ Name string `json:"name,omitempty"` /** * If configured, this string is sent to the DFA server as the X-Citrix-Exchange header value. - */ + */ Clientid string `json:"clientid,omitempty"` /** * DFA Server URL - */ + */ Serverurl string `json:"serverurl,omitempty"` /** - * Key shared between the DFA server and the Citrix ADC. + * Key shared between the DFA server and the Citrix ADC. Required to allow the Citrix ADC to communicate with the DFA server. */ Passphrase string `json:"passphrase,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` //------- Read only Parameter ---------; Success string `json:"success,omitempty"` Failure string `json:"failure,omitempty"` - } diff --git a/resource/config/authentication/authenticationdfapolicy.go b/resource/config/authenticationdfapolicy.go similarity index 95% rename from resource/config/authentication/authenticationdfapolicy.go rename to resource/config/authenticationdfapolicy.go index 93847fe..01bd316 100644 --- a/resource/config/authentication/authenticationdfapolicy.go +++ b/resource/config/authenticationdfapolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Dfa authentication policy resource. -*/ + */ type Authenticationdfapolicy struct { /** - * Name for the DFA policy. + * Name for the DFA policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after DFA policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationdfapolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the Web server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the DFA action to perform if the policy matches. - */ + */ Action string `json:"action,omitempty"` - } diff --git a/resource/config/authentication/authenticationdfapolicy_binding.go b/resource/config/authenticationdfapolicy_binding.go similarity index 87% rename from resource/config/authentication/authenticationdfapolicy_binding.go rename to resource/config/authenticationdfapolicy_binding.go index e711436..9e11cef 100644 --- a/resource/config/authentication/authenticationdfapolicy_binding.go +++ b/resource/config/authenticationdfapolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationdfapolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationdfapolicy_binding. + */ type Authenticationdfapolicybinding struct { /** - * Name of the WebAuth policy.
Minimum value = - */ + * Name of the WebAuth policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationdfapolicy_vpnvserver_binding.go b/resource/config/authenticationdfapolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationdfapolicy_vpnvserver_binding.go rename to resource/config/authenticationdfapolicy_vpnvserver_binding.go index 4f84ae2..0d3d79e 100644 --- a/resource/config/authentication/authenticationdfapolicy_vpnvserver_binding.go +++ b/resource/config/authenticationdfapolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationdfapolicy. -*/ + */ type Authenticationdfapolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the WebAuth policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationdfapolicy_vserver_binding.go b/resource/config/authenticationdfapolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationdfapolicy_vserver_binding.go rename to resource/config/authenticationdfapolicy_vserver_binding.go index b58803b..c7937c0 100644 --- a/resource/config/authentication/authenticationdfapolicy_vserver_binding.go +++ b/resource/config/authenticationdfapolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationdfapolicy. -*/ + */ type Authenticationdfapolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the WebAuth policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationemailaction.go b/resource/config/authenticationemailaction.go similarity index 97% rename from resource/config/authentication/authenticationemailaction.go rename to resource/config/authenticationemailaction.go index c40cc13..e831afb 100644 --- a/resource/config/authentication/authenticationemailaction.go +++ b/resource/config/authenticationemailaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Email entity resource. -*/ + */ type Authenticationemailaction struct { /** * Name for the new email action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after an action is created. @@ -28,35 +28,34 @@ type Authenticationemailaction struct { Name string `json:"name,omitempty"` /** * Username/Clientid/EmailID to be used to authenticate to the server. - */ + */ Username string `json:"username,omitempty"` /** * Password/Clientsecret to use when authenticating to the server. - */ + */ Password string `json:"password,omitempty"` /** * Address of the server that delivers the message. It is fully qualified fqdn such as http(s):// or smtp(s):// for http and smtp protocols respectively. For SMTP, the port number is mandatory like smtps://smtp.example.com:25. - */ + */ Serverurl string `json:"serverurl,omitempty"` /** * Content to be delivered to the user. "$code" string within the content will be replaced with the actual one-time-code to be sent. - */ + */ Content string `json:"content,omitempty"` /** * This is the group that is added to user sessions that match current IdP policy. It can be used in policies to identify relying party trust. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Time after which the code expires. - */ + */ Timeout int `json:"timeout,omitempty"` /** * Type of the email action. Default type is SMTP. - */ + */ Type string `json:"type,omitempty"` /** * An optional expression that yields user's email. When not configured, user's default mail address would be used. When configured, result of this expression is used as destination email address. - */ + */ Emailaddress string `json:"emailaddress,omitempty"` - } diff --git a/resource/config/authentication/authenticationepaaction.go b/resource/config/authenticationepaaction.go similarity index 97% rename from resource/config/authentication/authenticationepaaction.go rename to resource/config/authenticationepaaction.go index 7815f6b..40050b4 100644 --- a/resource/config/authentication/authenticationepaaction.go +++ b/resource/config/authenticationepaaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for epa action resource. -*/ + */ type Authenticationepaaction struct { /** * Name for the epa action. Must begin with a @@ -30,24 +30,23 @@ type Authenticationepaaction struct { Name string `json:"name,omitempty"` /** * it holds the ClientSecurityExpression to be sent to the client - */ + */ Csecexpr string `json:"csecexpr,omitempty"` /** * String specifying the name of a process to be terminated by the endpoint analysis (EPA) tool. Multiple processes to be delimited by comma - */ + */ Killprocess string `json:"killprocess,omitempty"` /** * String specifying the path(s) and name(s) of the files to be deleted by the endpoint analysis (EPA) tool. Multiple files to be delimited by comma - */ + */ Deletefiles string `json:"deletefiles,omitempty"` /** * This is the default group that is chosen when the EPA check succeeds. - */ + */ Defaultepagroup string `json:"defaultepagroup,omitempty"` /** * This is the quarantine group that is chosen when the EPA check fails if configured. */ Quarantinegroup string `json:"quarantinegroup,omitempty"` - } diff --git a/resource/config/authentication/authenticationldapaction.go b/resource/config/authenticationldapaction.go similarity index 94% rename from resource/config/authentication/authenticationldapaction.go rename to resource/config/authenticationldapaction.go index 6a127a3..b6c897d 100644 --- a/resource/config/authentication/authenticationldapaction.go +++ b/resource/config/authenticationldapaction.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for LDAP action resource. -*/ + */ type Authenticationldapaction struct { /** - * Name for the new LDAP action. + * Name for the new LDAP action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the LDAP action is added. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication action" or 'my authentication action'). @@ -29,42 +29,42 @@ type Authenticationldapaction struct { Name string `json:"name,omitempty"` /** * IP address assigned to the LDAP server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * LDAP server name as a FQDN. Mutually exclusive with LDAP IP address. - */ + */ Servername string `json:"servername,omitempty"` /** * Port on which the LDAP server accepts connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Number of seconds the Citrix ADC waits for a response from the RADIUS server. - */ + */ Authtimeout int `json:"authtimeout,omitempty"` /** - * Base (node) from which to start LDAP searches. + * Base (node) from which to start LDAP searches. If the LDAP server is running locally, the default value of base is dc=netscaler, dc=com. */ Ldapbase string `json:"ldapbase,omitempty"` /** - * Full distinguished name (DN) that is used to bind to the LDAP server. + * Full distinguished name (DN) that is used to bind to the LDAP server. Default: cn=Manager,dc=netscaler,dc=com */ Ldapbinddn string `json:"ldapbinddn,omitempty"` /** * Password used to bind to the LDAP server. - */ + */ Ldapbinddnpassword string `json:"ldapbinddnpassword,omitempty"` /** - * LDAP login name attribute. + * LDAP login name attribute. The Citrix ADC uses the LDAP login name to query external LDAP servers or Active Directories. */ Ldaploginname string `json:"ldaploginname,omitempty"` /** * String to be combined with the default LDAP user search string to form the search value. For example, if the search filter "vpnallowed=true" is combined with the LDAP login name "samaccount" and the user-supplied username is "bob", the result is the LDAP search string ""(&(vpnallowed=true)(samaccount=bob)"" (Be sure to enclose the search string in two sets of double quotation marks; both sets are needed.). - */ + */ Searchfilter string `json:"searchfilter,omitempty"` /** * LDAP group attribute name. @@ -72,26 +72,26 @@ type Authenticationldapaction struct { */ Groupattrname string `json:"groupattrname,omitempty"` /** - * LDAP group sub-attribute name. + * LDAP group sub-attribute name. Used for group extraction from the LDAP server. */ Subattributename string `json:"subattributename,omitempty"` /** * Type of security used for communications between the Citrix ADC and the LDAP server. For the PLAINTEXT setting, no encryption is required. - */ + */ Sectype string `json:"sectype,omitempty"` /** * The type of LDAP server. - */ + */ Svrtype string `json:"svrtype,omitempty"` /** - * LDAP single signon (SSO) attribute. + * LDAP single signon (SSO) attribute. The Citrix ADC uses the SSO name attribute to query external LDAP servers or Active Directories for an alternate username. */ Ssonameattribute string `json:"ssonameattribute,omitempty"` /** * Perform LDAP authentication. - If authentication is disabled, any LDAP authentication attempt returns authentication success if the user is found. + If authentication is disabled, any LDAP authentication attempt returns authentication success if the user is found. CAUTION! Authentication should be disabled only for authorization group extraction or where other (non-LDAP) authentication methods are in use and either bound to a primary list or flagged as secondary. */ Authentication string `json:"authentication,omitempty"` @@ -102,27 +102,27 @@ type Authenticationldapaction struct { Requireuser string `json:"requireuser,omitempty"` /** * Allow password change requests. - */ + */ Passwdchange string `json:"passwdchange,omitempty"` /** * Allow nested group extraction, in which the Citrix ADC queries external LDAP servers to determine whether a group is part of another group. - */ + */ Nestedgroupextraction string `json:"nestedgroupextraction,omitempty"` /** * If nested group extraction is ON, specifies the number of levels up to which group extraction is performed. - */ + */ Maxnestinglevel int `json:"maxnestinglevel,omitempty"` /** * Setting this option to ON enables following LDAP referrals received from the LDAP server. - */ + */ Followreferrals string `json:"followreferrals,omitempty"` /** * Specifies the maximum number of nested referrals to follow. - */ + */ Maxldapreferrals int `json:"maxldapreferrals,omitempty"` /** * Specifies the DNS Record lookup Type for the referrals - */ + */ Referraldnslookup string `json:"referraldnslookup,omitempty"` /** * MSSRV Specific parameter. Used to locate the DNS node to which the SRV record pertains in the domainname. The domainname is appended to it to form the srv record. @@ -131,7 +131,7 @@ type Authenticationldapaction struct { Mssrvrecordlocation string `json:"mssrvrecordlocation,omitempty"` /** * When to validate LDAP server certs - */ + */ Validateservercert string `json:"validateservercert,omitempty"` /** * Hostname for the LDAP server. If -validateServerCert is ON then this must be the host name on the certificate from the LDAP server. @@ -140,129 +140,128 @@ type Authenticationldapaction struct { Ldaphostname string `json:"ldaphostname,omitempty"` /** * Name that uniquely identifies a group in LDAP or Active Directory. - */ + */ Groupnameidentifier string `json:"groupnameidentifier,omitempty"` /** - * LDAP group search attribute. + * LDAP group search attribute. Used to determine to which groups a group belongs. */ Groupsearchattribute string `json:"groupsearchattribute,omitempty"` /** - * LDAP group search subattribute. + * LDAP group search subattribute. Used to determine to which groups a group belongs. */ Groupsearchsubattribute string `json:"groupsearchsubattribute,omitempty"` /** * String to be combined with the default LDAP group search string to form the search value. For example, the group search filter ""vpnallowed=true"" when combined with the group identifier ""samaccount"" and the group name ""g1"" yields the LDAP search string ""(&(vpnallowed=true)(samaccount=g1)"". If nestedGroupExtraction is ENABLED, the filter is applied on the first level group search as well, otherwise first level groups (of which user is a direct member of) will be fetched without applying this filter. (Be sure to enclose the search string in two sets of double quotation marks; both sets are needed.) - */ + */ Groupsearchfilter string `json:"groupsearchfilter,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Expression that would be evaluated to extract attribute1 from the ldap response - */ + */ Attribute1 string `json:"attribute1,omitempty"` /** * Expression that would be evaluated to extract attribute2 from the ldap response - */ + */ Attribute2 string `json:"attribute2,omitempty"` /** * Expression that would be evaluated to extract attribute3 from the ldap response - */ + */ Attribute3 string `json:"attribute3,omitempty"` /** * Expression that would be evaluated to extract attribute4 from the ldap response - */ + */ Attribute4 string `json:"attribute4,omitempty"` /** * Expression that would be evaluated to extract attribute5 from the ldap response - */ + */ Attribute5 string `json:"attribute5,omitempty"` /** * Expression that would be evaluated to extract attribute6 from the ldap response - */ + */ Attribute6 string `json:"attribute6,omitempty"` /** * Expression that would be evaluated to extract attribute7 from the ldap response - */ + */ Attribute7 string `json:"attribute7,omitempty"` /** * Expression that would be evaluated to extract attribute8 from the ldap response - */ + */ Attribute8 string `json:"attribute8,omitempty"` /** * Expression that would be evaluated to extract attribute9 from the ldap response - */ + */ Attribute9 string `json:"attribute9,omitempty"` /** * Expression that would be evaluated to extract attribute10 from the ldap response - */ + */ Attribute10 string `json:"attribute10,omitempty"` /** * Expression that would be evaluated to extract attribute11 from the ldap response - */ + */ Attribute11 string `json:"attribute11,omitempty"` /** * Expression that would be evaluated to extract attribute12 from the ldap response - */ + */ Attribute12 string `json:"attribute12,omitempty"` /** * Expression that would be evaluated to extract attribute13 from the ldap response - */ + */ Attribute13 string `json:"attribute13,omitempty"` /** * Expression that would be evaluated to extract attribute14 from the ldap response - */ + */ Attribute14 string `json:"attribute14,omitempty"` /** * Expression that would be evaluated to extract attribute15 from the ldap response - */ + */ Attribute15 string `json:"attribute15,omitempty"` /** * Expression that would be evaluated to extract attribute16 from the ldap response - */ + */ Attribute16 string `json:"attribute16,omitempty"` /** - * List of attribute names separated by ',' which needs to be fetched from ldap server. - Note that preceeding and trailing spaces will be removed. + * List of attribute names separated by ',' which needs to be fetched from ldap server. + Note that preceeding and trailing spaces will be removed. Attribute name can be 127 bytes and total length of this string should not cross 2047 bytes. These attributes have multi-value support separated by ',' and stored as key-value pair in AAA session */ Attributes string `json:"attributes,omitempty"` /** * SSH PublicKey is attribute on AD. This attribute is used to retrieve ssh PublicKey for RBA authentication - */ + */ Sshpublickey string `json:"sshpublickey,omitempty"` /** * Name of the service used to send push notifications - */ + */ Pushservice string `json:"pushservice,omitempty"` /** * OneTimePassword(OTP) Secret key attribute on AD. This attribute is used to store and retrieve secret key used for OTP check - */ + */ Otpsecret string `json:"otpsecret,omitempty"` /** * The Citrix ADC uses the email attribute to query the Active Directory for the email id of a user - */ + */ Email string `json:"email,omitempty"` /** * KnowledgeBasedAuthentication(KBA) attribute on AD. This attribute is used to store and retrieve preconfigured Question and Answer knowledge base used for KBA authentication. - */ + */ Kbattribute string `json:"kbattribute,omitempty"` /** * The NetScaler appliance uses the alternateive email attribute to query the Active Directory for the alternative email id of a user - */ + */ Alternateemailattr string `json:"alternateemailattr,omitempty"` /** * The Citrix ADC uses the cloud attributes to extract additional attributes from LDAP servers required for Citrix Cloud operations - */ + */ Cloudattributes string `json:"cloudattributes,omitempty"` //------- Read only Parameter ---------; Success string `json:"success,omitempty"` Failure string `json:"failure,omitempty"` - } diff --git a/resource/config/authentication/authenticationldappolicy.go b/resource/config/authenticationldappolicy.go similarity index 95% rename from resource/config/authentication/authenticationldappolicy.go rename to resource/config/authenticationldappolicy.go index d685495..1c58c4b 100644 --- a/resource/config/authentication/authenticationldappolicy.go +++ b/resource/config/authenticationldappolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for LDAP policy resource. -*/ + */ type Authenticationldappolicy struct { /** - * Name for the LDAP policy. + * Name for the LDAP policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after LDAP policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationldappolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the LDAP server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the LDAP action to perform if the policy matches. - */ + */ Reqaction string `json:"reqaction,omitempty"` - } diff --git a/resource/config/authentication/authenticationldappolicy_authenticationvserver_binding.go b/resource/config/authenticationldappolicy_authenticationvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationldappolicy_authenticationvserver_binding.go rename to resource/config/authenticationldappolicy_authenticationvserver_binding.go index 64eedc1..1d7e2c8 100644 --- a/resource/config/authentication/authenticationldappolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationldappolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationldappolicy. -*/ + */ type Authenticationldappolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the LDAP policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationldappolicy_binding.go b/resource/config/authenticationldappolicy_binding.go similarity index 87% rename from resource/config/authentication/authenticationldappolicy_binding.go rename to resource/config/authenticationldappolicy_binding.go index d8434ff..c010b86 100644 --- a/resource/config/authentication/authenticationldappolicy_binding.go +++ b/resource/config/authenticationldappolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationldappolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationldappolicy_binding. + */ type Authenticationldappolicybinding struct { /** - * Name of the LDAP policy.
Minimum value = - */ + * Name of the LDAP policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationldappolicy_global_binding.go b/resource/config/authenticationldappolicy_global_binding.go similarity index 87% rename from resource/config/authentication/authenticationldappolicy_global_binding.go rename to resource/config/authenticationldappolicy_global_binding.go index add01e4..e3b3981 100644 --- a/resource/config/authentication/authenticationldappolicy_global_binding.go +++ b/resource/config/authenticationldappolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationldappolicy. -*/ + */ type Authenticationldappolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the LDAP policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationldappolicy_systemglobal_binding.go b/resource/config/authenticationldappolicy_systemglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationldappolicy_systemglobal_binding.go rename to resource/config/authenticationldappolicy_systemglobal_binding.go index fa2d6b6..4bb8c48 100644 --- a/resource/config/authentication/authenticationldappolicy_systemglobal_binding.go +++ b/resource/config/authenticationldappolicy_systemglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the systemglobal that can be bound to authenticationldappolicy. -*/ + */ type Authenticationldappolicysystemglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the LDAP policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationldappolicy_vpnglobal_binding.go b/resource/config/authenticationldappolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationldappolicy_vpnglobal_binding.go rename to resource/config/authenticationldappolicy_vpnglobal_binding.go index 01d3b1a..0339871 100644 --- a/resource/config/authentication/authenticationldappolicy_vpnglobal_binding.go +++ b/resource/config/authenticationldappolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnglobal that can be bound to authenticationldappolicy. -*/ + */ type Authenticationldappolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the LDAP policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationldappolicy_vpnvserver_binding.go b/resource/config/authenticationldappolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationldappolicy_vpnvserver_binding.go rename to resource/config/authenticationldappolicy_vpnvserver_binding.go index 736693e..3612902 100644 --- a/resource/config/authentication/authenticationldappolicy_vpnvserver_binding.go +++ b/resource/config/authenticationldappolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationldappolicy. -*/ + */ type Authenticationldappolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the LDAP policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationldappolicy_vserver_binding.go b/resource/config/authenticationldappolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationldappolicy_vserver_binding.go rename to resource/config/authenticationldappolicy_vserver_binding.go index 41841eb..b970c92 100644 --- a/resource/config/authentication/authenticationldappolicy_vserver_binding.go +++ b/resource/config/authenticationldappolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationldappolicy. -*/ + */ type Authenticationldappolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the LDAP policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationlocalpolicy.go b/resource/config/authenticationlocalpolicy.go similarity index 94% rename from resource/config/authentication/authenticationlocalpolicy.go rename to resource/config/authenticationlocalpolicy.go index 4502c7a..0cac54d 100644 --- a/resource/config/authentication/authenticationlocalpolicy.go +++ b/resource/config/authenticationlocalpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for LOCAL policy resource. -*/ + */ type Authenticationlocalpolicy struct { /** - * Name for the local authentication policy. + * Name for the local authentication policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after local policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationlocalpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to perform the authentication. - */ + */ Rule string `json:"rule,omitempty"` //------- Read only Parameter ---------; Reqaction string `json:"reqaction,omitempty"` - } diff --git a/resource/config/authentication/authenticationlocalpolicy_authenticationvserver_binding.go b/resource/config/authenticationlocalpolicy_authenticationvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationlocalpolicy_authenticationvserver_binding.go rename to resource/config/authenticationlocalpolicy_authenticationvserver_binding.go index 007b48e..08a4100 100644 --- a/resource/config/authentication/authenticationlocalpolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationlocalpolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationlocalpolicy. -*/ + */ type Authenticationlocalpolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the local authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationlocalpolicy_binding.go b/resource/config/authenticationlocalpolicy_binding.go similarity index 92% rename from resource/config/authentication/authenticationlocalpolicy_binding.go rename to resource/config/authenticationlocalpolicy_binding.go index e981f73..c77f31e 100644 --- a/resource/config/authentication/authenticationlocalpolicy_binding.go +++ b/resource/config/authenticationlocalpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationlocalpolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationlocalpolicy_binding. + */ type Authenticationlocalpolicybinding struct { /** * Name of the local authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationlocalpolicy_global_binding.go b/resource/config/authenticationlocalpolicy_global_binding.go similarity index 87% rename from resource/config/authentication/authenticationlocalpolicy_global_binding.go rename to resource/config/authenticationlocalpolicy_global_binding.go index d2363a7..8df97f3 100644 --- a/resource/config/authentication/authenticationlocalpolicy_global_binding.go +++ b/resource/config/authenticationlocalpolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationlocalpolicy. -*/ + */ type Authenticationlocalpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the local authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationlocalpolicy_systemglobal_binding.go b/resource/config/authenticationlocalpolicy_systemglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationlocalpolicy_systemglobal_binding.go rename to resource/config/authenticationlocalpolicy_systemglobal_binding.go index 0604e24..55014cc 100644 --- a/resource/config/authentication/authenticationlocalpolicy_systemglobal_binding.go +++ b/resource/config/authenticationlocalpolicy_systemglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the systemglobal that can be bound to authenticationlocalpolicy. -*/ + */ type Authenticationlocalpolicysystemglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the local authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationlocalpolicy_vpnglobal_binding.go b/resource/config/authenticationlocalpolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationlocalpolicy_vpnglobal_binding.go rename to resource/config/authenticationlocalpolicy_vpnglobal_binding.go index 991d873..b6d6cd7 100644 --- a/resource/config/authentication/authenticationlocalpolicy_vpnglobal_binding.go +++ b/resource/config/authenticationlocalpolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnglobal that can be bound to authenticationlocalpolicy. -*/ + */ type Authenticationlocalpolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the local authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationlocalpolicy_vpnvserver_binding.go b/resource/config/authenticationlocalpolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationlocalpolicy_vpnvserver_binding.go rename to resource/config/authenticationlocalpolicy_vpnvserver_binding.go index 1bf8bf4..3025a05 100644 --- a/resource/config/authentication/authenticationlocalpolicy_vpnvserver_binding.go +++ b/resource/config/authenticationlocalpolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationlocalpolicy. -*/ + */ type Authenticationlocalpolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the local authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationlocalpolicy_vserver_binding.go b/resource/config/authenticationlocalpolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationlocalpolicy_vserver_binding.go rename to resource/config/authenticationlocalpolicy_vserver_binding.go index 02db25d..0d175d2 100644 --- a/resource/config/authentication/authenticationlocalpolicy_vserver_binding.go +++ b/resource/config/authenticationlocalpolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationlocalpolicy. -*/ + */ type Authenticationlocalpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the local authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationloginschema.go b/resource/config/authenticationloginschema.go similarity index 98% rename from resource/config/authentication/authenticationloginschema.go rename to resource/config/authenticationloginschema.go index 3f69422..817c6ab 100644 --- a/resource/config/authentication/authenticationloginschema.go +++ b/resource/config/authenticationloginschema.go @@ -12,10 +12,9 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package authentication + */ +package config type Authenticationloginschema struct { /** @@ -26,36 +25,35 @@ type Authenticationloginschema struct { Name string `json:"name,omitempty"` /** * Name of the file for reading authentication schema to be sent for Login Page UI. This file should contain xml definition of elements as per Citrix Forms Authentication Protocol to be able to render login form. If administrator does not want to prompt users for additional credentials but continue with previously obtained credentials, then "noschema" can be given as argument. Please note that this applies only to loginSchemas that are used with user-defined factors, and not the vserver factor. - */ + */ Authenticationschema string `json:"authenticationschema,omitempty"` /** * Expression for username extraction during login. This can be any relevant advanced policy expression. - */ + */ Userexpression string `json:"userexpression,omitempty"` /** * Expression for password extraction during login. This can be any relevant advanced policy expression. - */ + */ Passwdexpression string `json:"passwdexpression,omitempty"` /** * The index at which user entered username should be stored in session. - */ + */ Usercredentialindex int `json:"usercredentialindex,omitempty"` /** * The index at which user entered password should be stored in session. - */ + */ Passwordcredentialindex int `json:"passwordcredentialindex,omitempty"` /** * Weight of the current authentication - */ + */ Authenticationstrength int `json:"authenticationstrength,omitempty"` /** * This option indicates whether current factor credentials are the default SSO (SingleSignOn) credentials. - */ + */ Ssocredentials string `json:"ssocredentials,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/authentication/authenticationloginschemapolicy.go b/resource/config/authenticationloginschemapolicy.go similarity index 92% rename from resource/config/authentication/authenticationloginschemapolicy.go rename to resource/config/authenticationloginschemapolicy.go index 41d1fcb..0abd6ea 100644 --- a/resource/config/authentication/authenticationloginschemapolicy.go +++ b/resource/config/authenticationloginschemapolicy.go @@ -12,10 +12,9 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package authentication + */ +package config type Authenticationloginschemapolicy struct { /** @@ -28,7 +27,7 @@ type Authenticationloginschemapolicy struct { * Expression which is evaluated to choose a profile for authentication. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` @@ -41,18 +40,18 @@ type Authenticationloginschemapolicy struct { Action string `json:"action,omitempty"` /** * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition. Only the above built-in actions can be used. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * Any comments to preserve information about this policy. - */ + */ Comment string `json:"comment,omitempty"` /** * Name of messagelog action to use when a request matches this policy. - */ + */ Logaction string `json:"logaction,omitempty"` /** - * New name for the LoginSchema policy. + * New name for the LoginSchema policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my loginschemapolicy policy" or 'my loginschemapolicy policy'). @@ -61,9 +60,8 @@ type Authenticationloginschemapolicy struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Undefhits string `json:"undefhits,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/authentication/authenticationloginschemapolicy_authenticationvserver_binding.go b/resource/config/authenticationloginschemapolicy_authenticationvserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationloginschemapolicy_authenticationvserver_binding.go rename to resource/config/authenticationloginschemapolicy_authenticationvserver_binding.go index c85b3b6..90102a4 100644 --- a/resource/config/authentication/authenticationloginschemapolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationloginschemapolicy_authenticationvserver_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationloginschemapolicy. -*/ + */ type Authenticationloginschemapolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the LoginSchema policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationloginschemapolicy_binding.go b/resource/config/authenticationloginschemapolicy_binding.go similarity index 89% rename from resource/config/authentication/authenticationloginschemapolicy_binding.go rename to resource/config/authenticationloginschemapolicy_binding.go index 9feb8d8..2517c3d 100644 --- a/resource/config/authentication/authenticationloginschemapolicy_binding.go +++ b/resource/config/authenticationloginschemapolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationloginschemapolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationloginschemapolicy_binding. + */ type Authenticationloginschemapolicybinding struct { /** - * Name of the LoginSchema policy for which to display detailed information.
Minimum value = - */ + * Name of the LoginSchema policy for which to display detailed information.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationloginschemapolicy_vpnvserver_binding.go b/resource/config/authenticationloginschemapolicy_vpnvserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationloginschemapolicy_vpnvserver_binding.go rename to resource/config/authenticationloginschemapolicy_vpnvserver_binding.go index 2e570ce..d5ac5ee 100644 --- a/resource/config/authentication/authenticationloginschemapolicy_vpnvserver_binding.go +++ b/resource/config/authenticationloginschemapolicy_vpnvserver_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationloginschemapolicy. -*/ + */ type Authenticationloginschemapolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the LoginSchema policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationloginschemapolicy_vserver_binding.go b/resource/config/authenticationloginschemapolicy_vserver_binding.go similarity index 90% rename from resource/config/authentication/authenticationloginschemapolicy_vserver_binding.go rename to resource/config/authenticationloginschemapolicy_vserver_binding.go index cb8098e..cbcd02a 100644 --- a/resource/config/authentication/authenticationloginschemapolicy_vserver_binding.go +++ b/resource/config/authenticationloginschemapolicy_vserver_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationloginschemapolicy. -*/ + */ type Authenticationloginschemapolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the LoginSchema policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationnegotiateaction.go b/resource/config/authenticationnegotiateaction.go similarity index 95% rename from resource/config/authentication/authenticationnegotiateaction.go rename to resource/config/authenticationnegotiateaction.go index 4b1c999..0a1ee4d 100644 --- a/resource/config/authentication/authenticationnegotiateaction.go +++ b/resource/config/authenticationnegotiateaction.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Negotiate action resource. -*/ + */ type Authenticationnegotiateaction struct { /** - * Name for the AD KDC server profile (negotiate action). + * Name for the AD KDC server profile (negotiate action). Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after AD KDC server profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication action" or 'my authentication action'). @@ -29,35 +29,34 @@ type Authenticationnegotiateaction struct { Name string `json:"name,omitempty"` /** * Domain name of the service principal that represnts Citrix ADC. - */ + */ Domain string `json:"domain,omitempty"` /** * User name of the account that is mapped with Citrix ADC principal. This can be given along with domain and password when keytab file is not available. If username is given along with keytab file, then that keytab file will be searched for this user's credentials. - */ + */ Domainuser string `json:"domainuser,omitempty"` /** * Password of the account that is mapped to the Citrix ADC principal. - */ + */ Domainuserpasswd string `json:"domainuserpasswd,omitempty"` /** * Active Directory organizational units (OU) attribute. - */ + */ Ou string `json:"ou,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * The path to the keytab file that is used to decrypt kerberos tickets presented to Citrix ADC. If keytab is not available, domain/username/password can be specified in the negotiate action configuration - */ + */ Keytab string `json:"keytab,omitempty"` /** * The path to the site that is enabled for NTLM authentication, including FQDN of the server. This is used when clients fallback to NTLM. - */ + */ Ntlmpath string `json:"ntlmpath,omitempty"` //------- Read only Parameter ---------; Kcdspn string `json:"kcdspn,omitempty"` - } diff --git a/resource/config/authentication/authenticationnegotiatepolicy.go b/resource/config/authenticationnegotiatepolicy.go similarity index 94% rename from resource/config/authentication/authenticationnegotiatepolicy.go rename to resource/config/authenticationnegotiatepolicy.go index f53930f..bd21b14 100644 --- a/resource/config/authentication/authenticationnegotiatepolicy.go +++ b/resource/config/authenticationnegotiatepolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Negotiate Policy resource. -*/ + */ type Authenticationnegotiatepolicy struct { /** - * Name for the negotiate authentication policy. + * Name for the negotiate authentication policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after AD KCD (negotiate) policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationnegotiatepolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the AD KCD server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the negotiate action to perform if the policy matches. - */ + */ Reqaction string `json:"reqaction,omitempty"` - } diff --git a/resource/config/authentication/authenticationnegotiatepolicy_authenticationvserver_binding.go b/resource/config/authenticationnegotiatepolicy_authenticationvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationnegotiatepolicy_authenticationvserver_binding.go rename to resource/config/authenticationnegotiatepolicy_authenticationvserver_binding.go index 4d091c4..d96f664 100644 --- a/resource/config/authentication/authenticationnegotiatepolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationnegotiatepolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationnegotiatepolicy. -*/ + */ type Authenticationnegotiatepolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the negotiate policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationnegotiatepolicy_binding.go b/resource/config/authenticationnegotiatepolicy_binding.go similarity index 86% rename from resource/config/authentication/authenticationnegotiatepolicy_binding.go rename to resource/config/authenticationnegotiatepolicy_binding.go index f66f445..dfbab23 100644 --- a/resource/config/authentication/authenticationnegotiatepolicy_binding.go +++ b/resource/config/authenticationnegotiatepolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationnegotiatepolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationnegotiatepolicy_binding. + */ type Authenticationnegotiatepolicybinding struct { /** - * Name of the negotiate policy.
Minimum value = - */ + * Name of the negotiate policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationnegotiatepolicy_global_binding.go b/resource/config/authenticationnegotiatepolicy_global_binding.go similarity index 87% rename from resource/config/authentication/authenticationnegotiatepolicy_global_binding.go rename to resource/config/authenticationnegotiatepolicy_global_binding.go index a111e4d..d6ed38c 100644 --- a/resource/config/authentication/authenticationnegotiatepolicy_global_binding.go +++ b/resource/config/authenticationnegotiatepolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationnegotiatepolicy. -*/ + */ type Authenticationnegotiatepolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the negotiate policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationnegotiatepolicy_vpnglobal_binding.go b/resource/config/authenticationnegotiatepolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationnegotiatepolicy_vpnglobal_binding.go rename to resource/config/authenticationnegotiatepolicy_vpnglobal_binding.go index 32a21ab..c97ff87 100644 --- a/resource/config/authentication/authenticationnegotiatepolicy_vpnglobal_binding.go +++ b/resource/config/authenticationnegotiatepolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnglobal that can be bound to authenticationnegotiatepolicy. -*/ + */ type Authenticationnegotiatepolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the negotiate policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationnegotiatepolicy_vpnvserver_binding.go b/resource/config/authenticationnegotiatepolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationnegotiatepolicy_vpnvserver_binding.go rename to resource/config/authenticationnegotiatepolicy_vpnvserver_binding.go index dcce0c8..d803bee 100644 --- a/resource/config/authentication/authenticationnegotiatepolicy_vpnvserver_binding.go +++ b/resource/config/authenticationnegotiatepolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationnegotiatepolicy. -*/ + */ type Authenticationnegotiatepolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the negotiate policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationnegotiatepolicy_vserver_binding.go b/resource/config/authenticationnegotiatepolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationnegotiatepolicy_vserver_binding.go rename to resource/config/authenticationnegotiatepolicy_vserver_binding.go index 95252eb..527da44 100644 --- a/resource/config/authentication/authenticationnegotiatepolicy_vserver_binding.go +++ b/resource/config/authenticationnegotiatepolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationnegotiatepolicy. -*/ + */ type Authenticationnegotiatepolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the negotiate policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationnoauthaction.go b/resource/config/authenticationnoauthaction.go similarity index 97% rename from resource/config/authentication/authenticationnoauthaction.go rename to resource/config/authenticationnoauthaction.go index 180687e..7996fda 100644 --- a/resource/config/authentication/authenticationnoauthaction.go +++ b/resource/config/authenticationnoauthaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for no authentication action resource. -*/ + */ type Authenticationnoauthaction struct { /** * Name for the new no-authentication action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after an action is created. @@ -28,7 +28,6 @@ type Authenticationnoauthaction struct { Name string `json:"name,omitempty"` /** * This is the group that is added to user sessions that match current policy. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` - } diff --git a/resource/config/authentication/authenticationoauthaction.go b/resource/config/authenticationoauthaction.go similarity index 94% rename from resource/config/authentication/authenticationoauthaction.go rename to resource/config/authenticationoauthaction.go index 5ca192c..6a6bdb4 100644 --- a/resource/config/authentication/authenticationoauthaction.go +++ b/resource/config/authenticationoauthaction.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for OAuth authentication action resource. -*/ + */ type Authenticationoauthaction struct { /** - * Name for the OAuth Authentication action. + * Name for the OAuth Authentication action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication action" or 'my authentication action'). @@ -29,95 +29,95 @@ type Authenticationoauthaction struct { Name string `json:"name,omitempty"` /** * Type of the OAuth implementation. Default value is generic implementation that is applicable for most deployments. - */ + */ Oauthtype string `json:"oauthtype,omitempty"` /** * Authorization endpoint/url to which unauthenticated user will be redirected. Citrix ADC redirects user to this endpoint by adding query parameters including clientid. If this parameter not specified then as default value we take Token Endpoint/URL value. Please note that Authorization Endpoint or Token Endpoint is mandatory for oauthAction - */ + */ Authorizationendpoint string `json:"authorizationendpoint,omitempty"` /** * URL to which OAuth token will be posted to verify its authenticity. User obtains this token from Authorization server upon successful authentication. Citrix ADC will validate presented token by posting it to the URL configured - */ + */ Tokenendpoint string `json:"tokenendpoint,omitempty"` /** * URL to which obtained idtoken will be posted to get a decrypted user identity. Encrypted idtoken will be obtained by posting OAuth token to token endpoint. In order to decrypt idtoken, Citrix ADC posts request to the URL configured - */ + */ Idtokendecryptendpoint string `json:"idtokendecryptendpoint,omitempty"` /** * Unique identity of the client/user who is getting authenticated. Authorization server infers client configuration using this ID - */ + */ Clientid string `json:"clientid,omitempty"` /** * Secret string established by user and authorization server - */ + */ Clientsecret string `json:"clientsecret,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute1 - */ + */ Attribute1 string `json:"attribute1,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute2 - */ + */ Attribute2 string `json:"attribute2,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute3 - */ + */ Attribute3 string `json:"attribute3,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute4 - */ + */ Attribute4 string `json:"attribute4,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute5 - */ + */ Attribute5 string `json:"attribute5,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute6 - */ + */ Attribute6 string `json:"attribute6,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute7 - */ + */ Attribute7 string `json:"attribute7,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute8 - */ + */ Attribute8 string `json:"attribute8,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute9 - */ + */ Attribute9 string `json:"attribute9,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute10 - */ + */ Attribute10 string `json:"attribute10,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute11 - */ + */ Attribute11 string `json:"attribute11,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute12 - */ + */ Attribute12 string `json:"attribute12,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute13 - */ + */ Attribute13 string `json:"attribute13,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute14 - */ + */ Attribute14 string `json:"attribute14,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute15 - */ + */ Attribute15 string `json:"attribute15,omitempty"` /** * Name of the attribute to be extracted from OAuth Token and to be stored in the attribute16 - */ + */ Attribute16 string `json:"attribute16,omitempty"` /** * List of attribute names separated by ',' which needs to be extracted. @@ -128,79 +128,78 @@ type Authenticationoauthaction struct { Attributes string `json:"attributes,omitempty"` /** * TenantID of the application. This is usually specific to providers such as Microsoft and usually refers to the deployment identifier. - */ + */ Tenantid string `json:"tenantid,omitempty"` /** * URL of the Graph API service to learn Enterprise Mobility Services (EMS) endpoints. - */ + */ Graphendpoint string `json:"graphendpoint,omitempty"` /** * Interval at which services are monitored for necessary configuration. - */ + */ Refreshinterval int `json:"refreshinterval,omitempty"` /** * URL of the endpoint that contains JWKs (Json Web Key) for JWT (Json Web Token) verification. - */ + */ Certendpoint string `json:"certendpoint,omitempty"` /** * Audience for which token sent by Authorization server is applicable. This is typically entity name or url that represents the recipient - */ + */ Audience string `json:"audience,omitempty"` /** * Attribute in the token from which username should be extracted. - */ + */ Usernamefield string `json:"usernamefield,omitempty"` /** * This option specifies the allowed clock skew in number of minutes that Citrix ADC allows on an incoming token. For example, if skewTime is 10, then token would be valid from (current time - 10) min to (current time + 10) min, ie 20min in all. - */ + */ Skewtime int `json:"skewtime,omitempty"` /** * Identity of the server whose tokens are to be accepted. - */ + */ Issuer string `json:"issuer,omitempty"` /** * URL to which OAuth access token will be posted to obtain user information. - */ + */ Userinfourl string `json:"userinfourl,omitempty"` /** * Path to the file that contains JWKs (Json Web Key) for JWT (Json Web Token) verification. - */ + */ Certfilepath string `json:"certfilepath,omitempty"` /** * Grant type support. value can be code or password - */ + */ Granttype string `json:"granttype,omitempty"` /** - * If authentication is disabled, password is not sent in the request. - */ + * If authentication is disabled, password is not sent in the request. + */ Authentication string `json:"authentication,omitempty"` /** * URL to which access token would be posted for validation - */ + */ Introspecturl string `json:"introspecturl,omitempty"` /** - * Multivalued option to specify allowed token verification algorithms. - */ + * Multivalued option to specify allowed token verification algorithms. + */ Allowedalgorithms []string `json:"allowedalgorithms,omitempty"` /** - * Option to enable/disable PKCE flow during authentication. - */ + * Option to enable/disable PKCE flow during authentication. + */ Pkce string `json:"pkce,omitempty"` /** - * Option to select the variant of token authentication method. This method is used while exchanging code with IdP. - */ + * Option to select the variant of token authentication method. This method is used while exchanging code with IdP. + */ Tokenendpointauthmethod string `json:"tokenendpointauthmethod,omitempty"` /** - * Well-known configuration endpoint of the Authorization Server. Citrix ADC fetches server details from this endpoint. - */ + * Well-known configuration endpoint of the Authorization Server. Citrix ADC fetches server details from this endpoint. + */ Metadataurl string `json:"metadataurl,omitempty"` /** * Resource URL for Oauth configuration. - */ + */ Resourceuri string `json:"resourceuri,omitempty"` //------- Read only Parameter ---------; Oauthstatus string `json:"oauthstatus,omitempty"` - } diff --git a/resource/config/authentication/authenticationoauthidppolicy.go b/resource/config/authenticationoauthidppolicy.go similarity index 96% rename from resource/config/authentication/authenticationoauthidppolicy.go rename to resource/config/authenticationoauthidppolicy.go index cc97aea..7d63dd0 100644 --- a/resource/config/authentication/authenticationoauthidppolicy.go +++ b/resource/config/authenticationoauthidppolicy.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for AAA OAuth IdentityProvider (IdP) policy resource. -*/ + */ type Authenticationoauthidppolicy struct { /** * Name for the OAuth Identity Provider (IdP) authentication policy. This is used for configuring Citrix ADC as OAuth Identity Provider. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -28,23 +28,23 @@ type Authenticationoauthidppolicy struct { Name string `json:"name,omitempty"` /** * Expression that the policy uses to determine whether to respond to the specified request. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the profile to apply to requests or connections that match this policy. - */ + */ Action string `json:"action,omitempty"` /** * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition. Only DROP/RESET actions can be used. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * Any comments to preserve information about this policy. - */ + */ Comment string `json:"comment,omitempty"` /** * Name of messagelog action to use when a request matches this policy. - */ + */ Logaction string `json:"logaction,omitempty"` /** * New name for the OAuth IdentityProvider policy. @@ -57,6 +57,5 @@ type Authenticationoauthidppolicy struct { //------- Read only Parameter ---------; Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits string `json:"hits,omitempty"` - + Hits string `json:"hits,omitempty"` } diff --git a/resource/config/authentication/authenticationoauthidppolicy_authenticationvserver_binding.go b/resource/config/authenticationoauthidppolicy_authenticationvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationoauthidppolicy_authenticationvserver_binding.go rename to resource/config/authenticationoauthidppolicy_authenticationvserver_binding.go index 2c992e9..cdbd522 100644 --- a/resource/config/authentication/authenticationoauthidppolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationoauthidppolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationoauthidppolicy. -*/ + */ type Authenticationoauthidppolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the OAuth IdentityProvider (IdP) policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationoauthidppolicy_binding.go b/resource/config/authenticationoauthidppolicy_binding.go similarity index 87% rename from resource/config/authentication/authenticationoauthidppolicy_binding.go rename to resource/config/authenticationoauthidppolicy_binding.go index 5c67156..d743986 100644 --- a/resource/config/authentication/authenticationoauthidppolicy_binding.go +++ b/resource/config/authenticationoauthidppolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationoauthidppolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationoauthidppolicy_binding. + */ type Authenticationoauthidppolicybinding struct { /** - * Name of the OAuth IdentityProvider (IdP) policy for which to display detailed information.
Minimum value = - */ + * Name of the OAuth IdentityProvider (IdP) policy for which to display detailed information.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationoauthidppolicy_vpnvserver_binding.go b/resource/config/authenticationoauthidppolicy_vpnvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationoauthidppolicy_vpnvserver_binding.go rename to resource/config/authenticationoauthidppolicy_vpnvserver_binding.go index 812c50b..2b13631 100644 --- a/resource/config/authentication/authenticationoauthidppolicy_vpnvserver_binding.go +++ b/resource/config/authenticationoauthidppolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationoauthidppolicy. -*/ + */ type Authenticationoauthidppolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the OAuth IdentityProvider (IdP) policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationoauthidppolicy_vserver_binding.go b/resource/config/authenticationoauthidppolicy_vserver_binding.go similarity index 88% rename from resource/config/authentication/authenticationoauthidppolicy_vserver_binding.go rename to resource/config/authenticationoauthidppolicy_vserver_binding.go index 73275ed..177b63b 100644 --- a/resource/config/authentication/authenticationoauthidppolicy_vserver_binding.go +++ b/resource/config/authenticationoauthidppolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationoauthidppolicy. -*/ + */ type Authenticationoauthidppolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the OAuth IdentityProvider (IdP) policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationoauthidpprofile.go b/resource/config/authenticationoauthidpprofile.go similarity index 97% rename from resource/config/authentication/authenticationoauthidpprofile.go rename to resource/config/authenticationoauthidpprofile.go index d97760e..49fe7a9 100644 --- a/resource/config/authentication/authenticationoauthidpprofile.go +++ b/resource/config/authenticationoauthidpprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for OAuth Identity Provider (IdP) profile resource. -*/ + */ type Authenticationoauthidpprofile struct { /** * Name for the new OAuth Identity Provider (IdP) single sign-on profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after an action is created. @@ -28,55 +28,55 @@ type Authenticationoauthidpprofile struct { Name string `json:"name,omitempty"` /** * Unique identity of the relying party requesting for authentication. - */ + */ Clientid string `json:"clientid,omitempty"` /** * Unique secret string to authorize relying party at authorization server. - */ + */ Clientsecret string `json:"clientsecret,omitempty"` /** * URL endpoint on relying party to which the OAuth token is to be sent. - */ + */ Redirecturl string `json:"redirecturl,omitempty"` /** * The name to be used in requests sent from Citrix ADC to IdP to uniquely identify Citrix ADC. - */ + */ Issuer string `json:"issuer,omitempty"` /** * Name of the entity that is used to obtain configuration for the current authentication request. It is used only in Citrix Cloud. - */ + */ Configservice string `json:"configservice,omitempty"` /** * Audience for which token is being sent by Citrix ADC IdP. This is typically entity name or url that represents the recipient - */ + */ Audience string `json:"audience,omitempty"` /** * This option specifies the duration for which the token sent by Citrix ADC IdP is valid. For example, if skewTime is 10, then token would be valid from (current time - 10) min to (current time + 10) min, ie 20min in all. - */ + */ Skewtime int `json:"skewtime,omitempty"` /** * This group will be part of AAA session's internal group list. This will be helpful to admin in Nfactor flow to decide right AAA configuration for Relaying Party. In authentication policy AAA.USER.IS_MEMBER_OF("") is way to use this feature. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * This is the endpoint at which Citrix ADC IdP can get details about Relying Party (RP) being configured. Metadata response should include endpoints for jwks_uri for RP public key(s). - */ + */ Relyingpartymetadataurl string `json:"relyingpartymetadataurl,omitempty"` /** * Interval at which Relying Party metadata is refreshed. - */ + */ Refreshinterval int `json:"refreshinterval,omitempty"` /** * Option to encrypt token when Citrix ADC IDP sends one. - */ + */ Encrypttoken string `json:"encrypttoken,omitempty"` /** * Name of the service in cloud used to sign the data. This is applicable only if signature if offloaded to cloud. - */ + */ Signatureservice string `json:"signatureservice,omitempty"` /** * Algorithm to be used to sign OpenID tokens. - */ + */ Signaturealg string `json:"signaturealg,omitempty"` /** * Name-Value pairs of attributes to be inserted in idtoken. Configuration format is name=value_expr@@@name2=value2_expr@@@. @@ -86,11 +86,10 @@ type Authenticationoauthidpprofile struct { Attributes string `json:"attributes,omitempty"` /** * Option to send encrypted password in idtoken. - */ + */ Sendpassword string `json:"sendpassword,omitempty"` //------- Read only Parameter ---------; Oauthstatus string `json:"oauthstatus,omitempty"` - } diff --git a/resource/config/authentication/authenticationpolicy.go b/resource/config/authenticationpolicy.go similarity index 93% rename from resource/config/authentication/authenticationpolicy.go rename to resource/config/authenticationpolicy.go index 99b677d..9c04043 100644 --- a/resource/config/authentication/authenticationpolicy.go +++ b/resource/config/authenticationpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Authentication Policy resource. -*/ + */ type Authenticationpolicy struct { /** - * Name for the advance AUTHENTICATION policy. + * Name for the advance AUTHENTICATION policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after AUTHENTICATION policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,26 +29,26 @@ type Authenticationpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the AUTHENTICATION server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the authentication action to be performed if the policy matches. - */ + */ Action string `json:"action,omitempty"` /** * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition. Only the above built-in actions can be used. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * Any comments to preserve information about this policy. - */ + */ Comment string `json:"comment,omitempty"` /** * Name of messagelog action to use when a request matches this policy. - */ + */ Logaction string `json:"logaction,omitempty"` /** - * New name for the authentication policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + * New name for the authentication policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). */ @@ -56,8 +56,7 @@ type Authenticationpolicy struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Description string `json:"description,omitempty"` + Hits string `json:"hits,omitempty"` + Description string `json:"description,omitempty"` Policysubtype string `json:"policysubtype,omitempty"` - } diff --git a/resource/config/authentication/authenticationpolicy_authenticationpolicylabel_binding.go b/resource/config/authenticationpolicy_authenticationpolicylabel_binding.go similarity index 86% rename from resource/config/authentication/authenticationpolicy_authenticationpolicylabel_binding.go rename to resource/config/authenticationpolicy_authenticationpolicylabel_binding.go index f8d10c9..4ff81be 100644 --- a/resource/config/authentication/authenticationpolicy_authenticationpolicylabel_binding.go +++ b/resource/config/authenticationpolicy_authenticationpolicylabel_binding.go @@ -12,32 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationpolicylabel that can be bound to authenticationpolicy. -*/ + */ type Authenticationpolicyauthenticationpolicylabelbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the advance authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicy_authenticationvserver_binding.go b/resource/config/authenticationpolicy_authenticationvserver_binding.go similarity index 85% rename from resource/config/authentication/authenticationpolicy_authenticationvserver_binding.go rename to resource/config/authenticationpolicy_authenticationvserver_binding.go index de71675..62f2d4a 100644 --- a/resource/config/authentication/authenticationpolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationpolicy_authenticationvserver_binding.go @@ -12,32 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationpolicy. -*/ + */ type Authenticationpolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the advance authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicy_binding.go b/resource/config/authenticationpolicy_binding.go similarity index 93% rename from resource/config/authentication/authenticationpolicy_binding.go rename to resource/config/authenticationpolicy_binding.go index df4a829..6337593 100644 --- a/resource/config/authentication/authenticationpolicy_binding.go +++ b/resource/config/authenticationpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationpolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationpolicy_binding. + */ type Authenticationpolicybinding struct { /** - * Name of the advance authentication policy.
Minimum value = - */ + * Name of the advance authentication policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicy_global_binding.go b/resource/config/authenticationpolicy_global_binding.go similarity index 89% rename from resource/config/authentication/authenticationpolicy_global_binding.go rename to resource/config/authenticationpolicy_global_binding.go index c9a591a..7b76d56 100644 --- a/resource/config/authentication/authenticationpolicy_global_binding.go +++ b/resource/config/authenticationpolicy_global_binding.go @@ -12,32 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationpolicy. -*/ + */ type Authenticationpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the advance authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicy_policylabel_binding.go b/resource/config/authenticationpolicy_policylabel_binding.go similarity index 89% rename from resource/config/authentication/authenticationpolicy_policylabel_binding.go rename to resource/config/authenticationpolicy_policylabel_binding.go index e14fc1a..b7c7b90 100644 --- a/resource/config/authentication/authenticationpolicy_policylabel_binding.go +++ b/resource/config/authenticationpolicy_policylabel_binding.go @@ -12,32 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the policylabel that can be bound to authenticationpolicy. -*/ + */ type Authenticationpolicypolicylabelbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the advance authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicy_systemglobal_binding.go b/resource/config/authenticationpolicy_systemglobal_binding.go similarity index 85% rename from resource/config/authentication/authenticationpolicy_systemglobal_binding.go rename to resource/config/authenticationpolicy_systemglobal_binding.go index 11c7511..617f8fb 100644 --- a/resource/config/authentication/authenticationpolicy_systemglobal_binding.go +++ b/resource/config/authenticationpolicy_systemglobal_binding.go @@ -12,32 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the systemglobal that can be bound to authenticationpolicy. -*/ + */ type Authenticationpolicysystemglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the advance authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicy_vserver_binding.go b/resource/config/authenticationpolicy_vserver_binding.go similarity index 89% rename from resource/config/authentication/authenticationpolicy_vserver_binding.go rename to resource/config/authenticationpolicy_vserver_binding.go index 55c1093..1c425b4 100644 --- a/resource/config/authentication/authenticationpolicy_vserver_binding.go +++ b/resource/config/authenticationpolicy_vserver_binding.go @@ -12,32 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationpolicy. -*/ + */ type Authenticationpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the advance authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicylabel.go b/resource/config/authenticationpolicylabel.go similarity index 84% rename from resource/config/authentication/authenticationpolicylabel.go rename to resource/config/authenticationpolicylabel.go index dcbdfca..d66a5e9 100644 --- a/resource/config/authentication/authenticationpolicylabel.go +++ b/resource/config/authenticationpolicylabel.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for authentication policy label resource. -*/ + */ type Authenticationpolicylabel struct { /** * Name for the new authentication policy label. @@ -29,29 +29,28 @@ type Authenticationpolicylabel struct { Labelname string `json:"labelname,omitempty"` /** * Type of feature (aaatm or rba) against which to match the policies bound to this policy label. - */ + */ Type string `json:"type,omitempty"` /** * Any comments to preserve information about this authentication policy label. - */ + */ Comment string `json:"comment,omitempty"` /** * Login schema associated with authentication policy label. Login schema defines the UI rendering by providing customization option of the fields. If user intervention is not needed for a given factor such as group extraction, a loginSchema whose authentication schema is "noschema" should be used. - */ + */ Loginschema string `json:"loginschema,omitempty"` /** * The new name of the auth policy label - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority string `json:"priority,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority string `json:"priority,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Flowtype string `json:"flowtype,omitempty"` - Description string `json:"description,omitempty"` - + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` } diff --git a/resource/config/authentication/authenticationpolicylabel_authenticationpolicy_binding.go b/resource/config/authenticationpolicylabel_authenticationpolicy_binding.go similarity index 96% rename from resource/config/authentication/authenticationpolicylabel_authenticationpolicy_binding.go rename to resource/config/authenticationpolicylabel_authenticationpolicy_binding.go index d7cb436..90b763e 100644 --- a/resource/config/authentication/authenticationpolicylabel_authenticationpolicy_binding.go +++ b/resource/config/authenticationpolicylabel_authenticationpolicy_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationpolicy that can be bound to authenticationpolicylabel. -*/ + */ type Authenticationpolicylabelauthenticationpolicybinding struct { /** * Name of the authentication policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the authentication policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicylabel_binding.go b/resource/config/authenticationpolicylabel_binding.go similarity index 92% rename from resource/config/authentication/authenticationpolicylabel_binding.go rename to resource/config/authenticationpolicylabel_binding.go index 02c04f8..4787adc 100644 --- a/resource/config/authentication/authenticationpolicylabel_binding.go +++ b/resource/config/authenticationpolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationpolicylabel_binding. -*/ +* Binding object which returns the resources bound to authenticationpolicylabel_binding. + */ type Authenticationpolicylabelbinding struct { /** * Name of the authorization policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpolicylabel_policy_binding.go b/resource/config/authenticationpolicylabel_policy_binding.go similarity index 96% rename from resource/config/authentication/authenticationpolicylabel_policy_binding.go rename to resource/config/authenticationpolicylabel_policy_binding.go index 856b82e..358e216 100644 --- a/resource/config/authentication/authenticationpolicylabel_policy_binding.go +++ b/resource/config/authenticationpolicylabel_policy_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the policy that can be bound to authenticationpolicylabel. -*/ + */ type Authenticationpolicylabelpolicybinding struct { /** * Name of the authentication policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the authentication policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationpushservice.go b/resource/config/authenticationpushservice.go similarity index 74% rename from resource/config/authentication/authenticationpushservice.go rename to resource/config/authenticationpushservice.go index c25d44c..680cb2b 100644 --- a/resource/config/authentication/authenticationpushservice.go +++ b/resource/config/authenticationpushservice.go @@ -12,47 +12,46 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Service details for sending push notifications resource. -*/ + */ type Authenticationpushservice struct { /** * Name for the push service. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after the profile is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my push service" or 'my push service'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my push service" or 'my push service'). */ Name string `json:"name,omitempty"` /** * Unique identity for communicating with Citrix Push server in cloud. - */ + */ Clientid string `json:"clientid,omitempty"` /** * Unique secret for communicating with Citrix Push server in cloud. - */ + */ Clientsecret string `json:"clientsecret,omitempty"` /** * Customer id/name of the account in cloud that is used to create clientid/secret pair. - */ + */ Customerid string `json:"customerid,omitempty"` /** * Interval at which certificates or idtoken is refreshed. - */ + */ Refreshinterval int `json:"refreshinterval,omitempty"` //------- Read only Parameter ---------; - Namespace string `json:"Namespace,omitempty"` - Hubname string `json:"hubname,omitempty"` - Servicekey string `json:"servicekey,omitempty"` - Servicekeyname string `json:"servicekeyname,omitempty"` - Certendpoint string `json:"certendpoint,omitempty"` - Pushservicestatus string `json:"pushservicestatus,omitempty"` - Trustservice string `json:"trustservice,omitempty"` + Namespace string `json:"Namespace,omitempty"` + Hubname string `json:"hubname,omitempty"` + Servicekey string `json:"servicekey,omitempty"` + Servicekeyname string `json:"servicekeyname,omitempty"` + Certendpoint string `json:"certendpoint,omitempty"` + Pushservicestatus string `json:"pushservicestatus,omitempty"` + Trustservice string `json:"trustservice,omitempty"` Pushcloudserverstatus string `json:"pushcloudserverstatus,omitempty"` - Signingkeyname string `json:"signingkeyname,omitempty"` - Signingkey string `json:"signingkey,omitempty"` - + Signingkeyname string `json:"signingkeyname,omitempty"` + Signingkey string `json:"signingkey,omitempty"` } diff --git a/resource/config/authentication/authenticationradiusaction.go b/resource/config/authenticationradiusaction.go similarity index 91% rename from resource/config/authentication/authenticationradiusaction.go rename to resource/config/authenticationradiusaction.go index 5d6a4bb..c6aac20 100644 --- a/resource/config/authentication/authenticationradiusaction.go +++ b/resource/config/authenticationradiusaction.go @@ -12,59 +12,59 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for RADIUS action resource. -*/ + */ type Authenticationradiusaction struct { /** - * Name for the RADIUS action. + * Name for the RADIUS action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the RADIUS action is added. */ Name string `json:"name,omitempty"` /** * IP address assigned to the RADIUS server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * RADIUS server name as a FQDN. Mutually exclusive with RADIUS IP address. - */ + */ Servername string `json:"servername,omitempty"` /** * Port number on which the RADIUS server listens for connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Number of seconds the Citrix ADC waits for a response from the RADIUS server. - */ + */ Authtimeout int `json:"authtimeout,omitempty"` /** - * Key shared between the RADIUS server and the Citrix ADC. + * Key shared between the RADIUS server and the Citrix ADC. Required to allow the Citrix ADC to communicate with the RADIUS server. */ Radkey string `json:"radkey,omitempty"` /** - * If enabled, the Citrix ADC IP address (NSIP) is sent to the RADIUS server as the Network Access Server IP (NASIP) address. + * If enabled, the Citrix ADC IP address (NSIP) is sent to the RADIUS server as the Network Access Server IP (NASIP) address. The RADIUS protocol defines the meaning and use of the NASIP address. */ Radnasip string `json:"radnasip,omitempty"` /** * If configured, this string is sent to the RADIUS server as the Network Access Server ID (NASID). - */ + */ Radnasid string `json:"radnasid,omitempty"` /** * RADIUS vendor ID attribute, used for RADIUS group extraction. - */ + */ Radvendorid int `json:"radvendorid,omitempty"` /** * RADIUS attribute type, used for RADIUS group extraction. - */ + */ Radattributetype int `json:"radattributetype,omitempty"` /** - * RADIUS groups prefix string. + * RADIUS groups prefix string. This groups prefix precedes the group names within a RADIUS attribute for RADIUS group extraction. */ Radgroupsprefix string `json:"radgroupsprefix,omitempty"` @@ -75,7 +75,7 @@ type Authenticationradiusaction struct { Radgroupseparator string `json:"radgroupseparator,omitempty"` /** * Encoding type for passwords in RADIUS packets that the Citrix ADC sends to the RADIUS server. - */ + */ Passencoding string `json:"passencoding,omitempty"` /** * Vendor ID of the intranet IP attribute in the RADIUS response. @@ -84,45 +84,44 @@ type Authenticationradiusaction struct { Ipvendorid int `json:"ipvendorid,omitempty"` /** * Remote IP address attribute type in a RADIUS response. - */ + */ Ipattributetype int `json:"ipattributetype,omitempty"` /** * Whether the RADIUS server is currently accepting accounting messages. - */ + */ Accounting string `json:"accounting,omitempty"` /** * Vendor ID of the attribute, in the RADIUS response, used to extract the user password. - */ + */ Pwdvendorid int `json:"pwdvendorid,omitempty"` /** * Vendor-specific password attribute type in a RADIUS response. - */ + */ Pwdattributetype int `json:"pwdattributetype,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Send Calling-Station-ID of the client to the RADIUS server. IP Address of the client is sent as its Calling-Station-ID. - */ + */ Callingstationid string `json:"callingstationid,omitempty"` /** * Number of retry by the Citrix ADC before getting response from the RADIUS server. - */ + */ Authservretry int `json:"authservretry,omitempty"` /** * Configure the RADIUS server state to accept or refuse authentication messages. - */ + */ Authentication string `json:"authentication,omitempty"` /** * Send Tunnel Endpoint Client IP address to the RADIUS server. - */ + */ Tunnelendpointclientip string `json:"tunnelendpointclientip,omitempty"` //------- Read only Parameter ---------; Ipaddress string `json:"ipaddress,omitempty"` - Success string `json:"success,omitempty"` - Failure string `json:"failure,omitempty"` - + Success string `json:"success,omitempty"` + Failure string `json:"failure,omitempty"` } diff --git a/resource/config/authentication/authenticationradiuspolicy.go b/resource/config/authenticationradiuspolicy.go similarity index 94% rename from resource/config/authentication/authenticationradiuspolicy.go rename to resource/config/authenticationradiuspolicy.go index c9ea8a0..c1db85f 100644 --- a/resource/config/authentication/authenticationradiuspolicy.go +++ b/resource/config/authenticationradiuspolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for RADIUS policy resource. -*/ + */ type Authenticationradiuspolicy struct { /** - * Name for the RADIUS authentication policy. + * Name for the RADIUS authentication policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after RADIUS policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationradiuspolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the RADIUS server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the RADIUS action to perform if the policy matches. - */ + */ Reqaction string `json:"reqaction,omitempty"` - } diff --git a/resource/config/authentication/authenticationradiuspolicy_authenticationvserver_binding.go b/resource/config/authenticationradiuspolicy_authenticationvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationradiuspolicy_authenticationvserver_binding.go rename to resource/config/authenticationradiuspolicy_authenticationvserver_binding.go index 8d63d12..e103cd7 100644 --- a/resource/config/authentication/authenticationradiuspolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationradiuspolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationradiuspolicy. -*/ + */ type Authenticationradiuspolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the RADIUS authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationradiuspolicy_binding.go b/resource/config/authenticationradiuspolicy_binding.go similarity index 92% rename from resource/config/authentication/authenticationradiuspolicy_binding.go rename to resource/config/authenticationradiuspolicy_binding.go index e5201c5..07328d1 100644 --- a/resource/config/authentication/authenticationradiuspolicy_binding.go +++ b/resource/config/authenticationradiuspolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationradiuspolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationradiuspolicy_binding. + */ type Authenticationradiuspolicybinding struct { /** - * Name of the RADIUS authentication policy.
Minimum value = - */ + * Name of the RADIUS authentication policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationradiuspolicy_global_binding.go b/resource/config/authenticationradiuspolicy_global_binding.go similarity index 87% rename from resource/config/authentication/authenticationradiuspolicy_global_binding.go rename to resource/config/authenticationradiuspolicy_global_binding.go index 47d5757..8f75507 100644 --- a/resource/config/authentication/authenticationradiuspolicy_global_binding.go +++ b/resource/config/authenticationradiuspolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationradiuspolicy. -*/ + */ type Authenticationradiuspolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the RADIUS authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationradiuspolicy_systemglobal_binding.go b/resource/config/authenticationradiuspolicy_systemglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationradiuspolicy_systemglobal_binding.go rename to resource/config/authenticationradiuspolicy_systemglobal_binding.go index 05f36de..87fa89c 100644 --- a/resource/config/authentication/authenticationradiuspolicy_systemglobal_binding.go +++ b/resource/config/authenticationradiuspolicy_systemglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the systemglobal that can be bound to authenticationradiuspolicy. -*/ + */ type Authenticationradiuspolicysystemglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the RADIUS authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationradiuspolicy_vpnglobal_binding.go b/resource/config/authenticationradiuspolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationradiuspolicy_vpnglobal_binding.go rename to resource/config/authenticationradiuspolicy_vpnglobal_binding.go index a242bf6..c484ddf 100644 --- a/resource/config/authentication/authenticationradiuspolicy_vpnglobal_binding.go +++ b/resource/config/authenticationradiuspolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnglobal that can be bound to authenticationradiuspolicy. -*/ + */ type Authenticationradiuspolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the RADIUS authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationradiuspolicy_vpnvserver_binding.go b/resource/config/authenticationradiuspolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationradiuspolicy_vpnvserver_binding.go rename to resource/config/authenticationradiuspolicy_vpnvserver_binding.go index 46c68ad..5043956 100644 --- a/resource/config/authentication/authenticationradiuspolicy_vpnvserver_binding.go +++ b/resource/config/authenticationradiuspolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationradiuspolicy. -*/ + */ type Authenticationradiuspolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the RADIUS authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationradiuspolicy_vserver_binding.go b/resource/config/authenticationradiuspolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationradiuspolicy_vserver_binding.go rename to resource/config/authenticationradiuspolicy_vserver_binding.go index 828d2db..03b07f5 100644 --- a/resource/config/authentication/authenticationradiuspolicy_vserver_binding.go +++ b/resource/config/authenticationradiuspolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationradiuspolicy. -*/ + */ type Authenticationradiuspolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the RADIUS authentication policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlaction.go b/resource/config/authenticationsamlaction.go similarity index 97% rename from resource/config/authentication/authenticationsamlaction.go rename to resource/config/authenticationsamlaction.go index 3a90f80..b01534b 100644 --- a/resource/config/authentication/authenticationsamlaction.go +++ b/resource/config/authenticationsamlaction.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for AAA Saml action resource. -*/ + */ type Authenticationsamlaction struct { /** - * Name for the SAML server profile (action). + * Name for the SAML server profile (action). Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after SAML profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication action" or 'my authentication action'). @@ -29,118 +29,118 @@ type Authenticationsamlaction struct { Name string `json:"name,omitempty"` /** * This URL is used for obtaining saml metadata. Note that it fills samlIdPCertName and samlredirectUrl fields so those fields should not be updated when metadataUrl present - */ + */ Metadataurl string `json:"metadataurl,omitempty"` /** * Name of the SSL certificate used to verify responses from SAML Identity Provider (IdP). Note that if metadateURL is present then this filed should be empty. - */ + */ Samlidpcertname string `json:"samlidpcertname,omitempty"` /** * Name of the SSL certificate to sign requests from ServiceProvider (SP) to Identity Provider (IdP). - */ + */ Samlsigningcertname string `json:"samlsigningcertname,omitempty"` /** * URL to which users are redirected for authentication. Note that if metadateURL is present then this filed should be empty - */ + */ Samlredirecturl string `json:"samlredirecturl,omitempty"` /** * Index/ID of the metadata entry corresponding to this configuration. - */ + */ Samlacsindex int `json:"samlacsindex,omitempty"` /** * SAML user ID, as given in the SAML assertion. - */ + */ Samluserfield string `json:"samluserfield,omitempty"` /** * Reject unsigned SAML assertions. ON option results in rejection of Assertion that is received without signature. STRICT option ensures that both Response and Assertion are signed. OFF allows unsigned Assertions. - */ + */ Samlrejectunsignedassertion string `json:"samlrejectunsignedassertion,omitempty"` /** * The name to be used in requests sent from Citrix ADC to IdP to uniquely identify Citrix ADC. - */ + */ Samlissuername string `json:"samlissuername,omitempty"` /** * Option to enable second factor after SAML - */ + */ Samltwofactor string `json:"samltwofactor,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute1. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute1 string `json:"attribute1,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute2. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute2 string `json:"attribute2,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute3. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute3 string `json:"attribute3,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute4. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute4 string `json:"attribute4,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute5. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute5 string `json:"attribute5,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute6. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute6 string `json:"attribute6,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute7. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute7 string `json:"attribute7,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute8. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute8 string `json:"attribute8,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute9. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute9 string `json:"attribute9,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute10. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute10 string `json:"attribute10,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute11. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute11 string `json:"attribute11,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute12. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute12 string `json:"attribute12,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute13. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute13 string `json:"attribute13,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute14. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute14 string `json:"attribute14,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute15. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute15 string `json:"attribute15,omitempty"` /** * Name of the attribute in SAML Assertion whose value needs to be extracted and stored as attribute16. Maximum length of the extracted attribute is 239 bytes. - */ + */ Attribute16 string `json:"attribute16,omitempty"` /** - * List of attribute names separated by ',' which needs to be extracted. - Note that preceeding and trailing spaces will be removed. + * List of attribute names separated by ',' which needs to be extracted. + Note that preceeding and trailing spaces will be removed. Attribute name can be 127 bytes and total length of this string should not cross 2047 bytes. These attributes have multi-value support separated by ',' and stored as key-value pair in AAA session */ Attributes string `json:"attributes,omitempty"` /** * Boolean expression that will be evaluated to validate the SAML Response. - Examples: + Examples: set authentication samlaction -relaystateRule 'AAA.LOGIN.RELAYSTATE.EQ("https://fqdn.com/")' set authentication samlaction -relaystateRule 'AAA.LOGIN.RELAYSTATE.CONTAINS("https://fqdn.com/")' set authentication samlaction -relaystateRule 'AAA.LOGIN.RELAYSTATE.CONTAINS_ANY("patset_name")' @@ -149,15 +149,15 @@ type Authenticationsamlaction struct { Relaystaterule string `json:"relaystaterule,omitempty"` /** * Algorithm to be used to sign/verify SAML transactions - */ + */ Signaturealg string `json:"signaturealg,omitempty"` /** * Algorithm to be used to compute/verify digest for SAML transactions - */ + */ Digestmethod string `json:"digestmethod,omitempty"` /** * This element specifies the authentication context requirements of authentication statements returned in the response. - */ + */ Requestedauthncontext string `json:"requestedauthncontext,omitempty"` /** * This element specifies the authentication class types that are requested from IdP (IdentityProvider). @@ -197,59 +197,58 @@ type Authenticationsamlaction struct { Customauthnctxclassref string `json:"customauthnctxclassref,omitempty"` /** * This element specifies the transport mechanism of saml messages. - */ + */ Samlbinding string `json:"samlbinding,omitempty"` /** * Index/ID of the attribute specification at Identity Provider (IdP). IdP will locate attributes requested by SP using this index and send those attributes in Assertion - */ + */ Attributeconsumingserviceindex int `json:"attributeconsumingserviceindex,omitempty"` /** * Option to send thumbprint instead of x509 certificate in SAML request - */ + */ Sendthumbprint string `json:"sendthumbprint,omitempty"` /** * Option to choose whether the username that is extracted from SAML assertion can be edited in login page while doing second factor - */ + */ Enforceusername string `json:"enforceusername,omitempty"` /** * SingleLogout URL on IdP to which logoutRequest will be sent on Citrix ADC session cleanup. - */ + */ Logouturl string `json:"logouturl,omitempty"` /** * URL of the Artifact Resolution Service on IdP to which Citrix ADC will post artifact to get actual SAML token. - */ + */ Artifactresolutionserviceurl string `json:"artifactresolutionserviceurl,omitempty"` /** * This option specifies the allowed clock skew in number of minutes that Citrix ADC ServiceProvider allows on an incoming assertion. For example, if skewTime is 10, then assertion would be valid from (current time - 10) min to (current time + 10) min, ie 20min in all. - */ + */ Skewtime int `json:"skewtime,omitempty"` /** * This element specifies the transport mechanism of saml logout messages. - */ + */ Logoutbinding string `json:"logoutbinding,omitempty"` /** * Option that forces authentication at the Identity Provider (IdP) that receives Citrix ADC's request - */ + */ Forceauthn string `json:"forceauthn,omitempty"` /** * Name of the tag in assertion that contains user groups. - */ + */ Groupnamefield string `json:"groupnamefield,omitempty"` /** * Audience for which assertion sent by IdP is applicable. This is typically entity name or url that represents ServiceProvider - */ + */ Audience string `json:"audience,omitempty"` /** * Interval in minutes for fetching metadata from specified metadata URL - */ + */ Metadatarefreshinterval int `json:"metadatarefreshinterval,omitempty"` /** * Option to store entire SAML Response through the life of user session. - */ + */ Storesamlresponse string `json:"storesamlresponse,omitempty"` //------- Read only Parameter ---------; Metadataimportstatus string `json:"metadataimportstatus,omitempty"` - } diff --git a/resource/config/authentication/authenticationsamlidppolicy.go b/resource/config/authenticationsamlidppolicy.go similarity index 94% rename from resource/config/authentication/authenticationsamlidppolicy.go rename to resource/config/authenticationsamlidppolicy.go index b392cd9..28fb4b3 100644 --- a/resource/config/authentication/authenticationsamlidppolicy.go +++ b/resource/config/authenticationsamlidppolicy.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for AAA Saml IdentityProvider (IdP) policy resource. -*/ + */ type Authenticationsamlidppolicy struct { /** * Name for the SAML Identity Provider (IdP) authentication policy. This is used for configuring Citrix ADC as SAML Identity Provider. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the policy is created. @@ -30,28 +30,28 @@ type Authenticationsamlidppolicy struct { * Expression which is evaluated to choose a profile for authentication. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** * Name of the profile to apply to requests or connections that match this policy. - */ + */ Action string `json:"action,omitempty"` /** * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition. Only the above built-in actions can be used. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * Any comments to preserve information about this policy. - */ + */ Comment string `json:"comment,omitempty"` /** * Name of messagelog action to use when a request matches this policy. - */ + */ Logaction string `json:"logaction,omitempty"` /** - * New name for the SAML IdentityProvider policy. + * New name for the SAML IdentityProvider policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my samlidppolicy policy" or 'my samlidppolicy policy'). @@ -61,6 +61,5 @@ type Authenticationsamlidppolicy struct { //------- Read only Parameter ---------; Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits string `json:"hits,omitempty"` - + Hits string `json:"hits,omitempty"` } diff --git a/resource/config/authentication/authenticationsamlidppolicy_authenticationvserver_binding.go b/resource/config/authenticationsamlidppolicy_authenticationvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationsamlidppolicy_authenticationvserver_binding.go rename to resource/config/authenticationsamlidppolicy_authenticationvserver_binding.go index 8056f9b..eab0191 100644 --- a/resource/config/authentication/authenticationsamlidppolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationsamlidppolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationsamlidppolicy. -*/ + */ type Authenticationsamlidppolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the SAML IdentityProvider (IdP) policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlidppolicy_binding.go b/resource/config/authenticationsamlidppolicy_binding.go similarity index 87% rename from resource/config/authentication/authenticationsamlidppolicy_binding.go rename to resource/config/authenticationsamlidppolicy_binding.go index 1a645cc..4df7662 100644 --- a/resource/config/authentication/authenticationsamlidppolicy_binding.go +++ b/resource/config/authenticationsamlidppolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationsamlidppolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationsamlidppolicy_binding. + */ type Authenticationsamlidppolicybinding struct { /** - * Name of the SAML IdentityProvider (IdP) policy for which to display detailed information.
Minimum value = - */ + * Name of the SAML IdentityProvider (IdP) policy for which to display detailed information.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlidppolicy_vpnvserver_binding.go b/resource/config/authenticationsamlidppolicy_vpnvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationsamlidppolicy_vpnvserver_binding.go rename to resource/config/authenticationsamlidppolicy_vpnvserver_binding.go index f328a52..a17320f 100644 --- a/resource/config/authentication/authenticationsamlidppolicy_vpnvserver_binding.go +++ b/resource/config/authenticationsamlidppolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationsamlidppolicy. -*/ + */ type Authenticationsamlidppolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the SAML IdentityProvider (IdP) policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlidppolicy_vserver_binding.go b/resource/config/authenticationsamlidppolicy_vserver_binding.go similarity index 88% rename from resource/config/authentication/authenticationsamlidppolicy_vserver_binding.go rename to resource/config/authenticationsamlidppolicy_vserver_binding.go index 55f99db..c86ebff 100644 --- a/resource/config/authentication/authenticationsamlidppolicy_vserver_binding.go +++ b/resource/config/authenticationsamlidppolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationsamlidppolicy. -*/ + */ type Authenticationsamlidppolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the SAML IdentityProvider (IdP) policy for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlidpprofile.go b/resource/config/authenticationsamlidpprofile.go similarity index 96% rename from resource/config/authentication/authenticationsamlidpprofile.go rename to resource/config/authenticationsamlidpprofile.go index 3cb52aa..b78c91d 100644 --- a/resource/config/authentication/authenticationsamlidpprofile.go +++ b/resource/config/authenticationsamlidpprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for AAA Saml IdentityProvider (IdP) profile resource. -*/ + */ type Authenticationsamlidpprofile struct { /** * Name for the new saml single sign-on profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after an action is created. @@ -28,371 +28,370 @@ type Authenticationsamlidpprofile struct { Name string `json:"name,omitempty"` /** * Name of the SSL certificate of SAML Relying Party. This certificate is used to verify signature of the incoming AuthnRequest from a Relying Party or Service Provider - */ + */ Samlspcertname string `json:"samlspcertname,omitempty"` /** * Name of the certificate used to sign the SAMLResposne that is sent to Relying Party or Service Provider after successful authentication - */ + */ Samlidpcertname string `json:"samlidpcertname,omitempty"` /** * URL to which the assertion is to be sent. - */ + */ Assertionconsumerserviceurl string `json:"assertionconsumerserviceurl,omitempty"` /** * Option to send password in assertion. - */ + */ Sendpassword string `json:"sendpassword,omitempty"` /** * The name to be used in requests sent from Citrix ADC to IdP to uniquely identify Citrix ADC. - */ + */ Samlissuername string `json:"samlissuername,omitempty"` /** * Option to Reject unsigned SAML Requests. ON option denies any authentication requests that arrive without signature. - */ + */ Rejectunsignedrequests string `json:"rejectunsignedrequests,omitempty"` /** * Algorithm to be used to sign/verify SAML transactions - */ + */ Signaturealg string `json:"signaturealg,omitempty"` /** * Algorithm to be used to compute/verify digest for SAML transactions - */ + */ Digestmethod string `json:"digestmethod,omitempty"` /** * Audience for which assertion sent by IdP is applicable. This is typically entity name or url that represents ServiceProvider - */ + */ Audience string `json:"audience,omitempty"` /** * Format of Name Identifier sent in Assertion. - */ + */ Nameidformat string `json:"nameidformat,omitempty"` /** * Expression that will be evaluated to obtain NameIdentifier to be sent in assertion - */ + */ Nameidexpr string `json:"nameidexpr,omitempty"` /** * Name of attribute1 that needs to be sent in SAML Assertion - */ + */ Attribute1 string `json:"attribute1,omitempty"` /** * Expression that will be evaluated to obtain attribute1's value to be sent in Assertion - */ + */ Attribute1expr string `json:"attribute1expr,omitempty"` /** * User-Friendly Name of attribute1 that needs to be sent in SAML Assertion - */ + */ Attribute1friendlyname string `json:"attribute1friendlyname,omitempty"` /** * Format of Attribute1 to be sent in Assertion. - */ + */ Attribute1format string `json:"attribute1format,omitempty"` /** * Name of attribute2 that needs to be sent in SAML Assertion - */ + */ Attribute2 string `json:"attribute2,omitempty"` /** * Expression that will be evaluated to obtain attribute2's value to be sent in Assertion - */ + */ Attribute2expr string `json:"attribute2expr,omitempty"` /** * User-Friendly Name of attribute2 that needs to be sent in SAML Assertion - */ + */ Attribute2friendlyname string `json:"attribute2friendlyname,omitempty"` /** * Format of Attribute2 to be sent in Assertion. - */ + */ Attribute2format string `json:"attribute2format,omitempty"` /** * Name of attribute3 that needs to be sent in SAML Assertion - */ + */ Attribute3 string `json:"attribute3,omitempty"` /** * Expression that will be evaluated to obtain attribute3's value to be sent in Assertion - */ + */ Attribute3expr string `json:"attribute3expr,omitempty"` /** * User-Friendly Name of attribute3 that needs to be sent in SAML Assertion - */ + */ Attribute3friendlyname string `json:"attribute3friendlyname,omitempty"` /** * Format of Attribute3 to be sent in Assertion. - */ + */ Attribute3format string `json:"attribute3format,omitempty"` /** * Name of attribute4 that needs to be sent in SAML Assertion - */ + */ Attribute4 string `json:"attribute4,omitempty"` /** * Expression that will be evaluated to obtain attribute4's value to be sent in Assertion - */ + */ Attribute4expr string `json:"attribute4expr,omitempty"` /** * User-Friendly Name of attribute4 that needs to be sent in SAML Assertion - */ + */ Attribute4friendlyname string `json:"attribute4friendlyname,omitempty"` /** * Format of Attribute4 to be sent in Assertion. - */ + */ Attribute4format string `json:"attribute4format,omitempty"` /** * Name of attribute5 that needs to be sent in SAML Assertion - */ + */ Attribute5 string `json:"attribute5,omitempty"` /** * Expression that will be evaluated to obtain attribute5's value to be sent in Assertion - */ + */ Attribute5expr string `json:"attribute5expr,omitempty"` /** * User-Friendly Name of attribute5 that needs to be sent in SAML Assertion - */ + */ Attribute5friendlyname string `json:"attribute5friendlyname,omitempty"` /** * Format of Attribute5 to be sent in Assertion. - */ + */ Attribute5format string `json:"attribute5format,omitempty"` /** * Name of attribute6 that needs to be sent in SAML Assertion - */ + */ Attribute6 string `json:"attribute6,omitempty"` /** * Expression that will be evaluated to obtain attribute6's value to be sent in Assertion - */ + */ Attribute6expr string `json:"attribute6expr,omitempty"` /** * User-Friendly Name of attribute6 that needs to be sent in SAML Assertion - */ + */ Attribute6friendlyname string `json:"attribute6friendlyname,omitempty"` /** * Format of Attribute6 to be sent in Assertion. - */ + */ Attribute6format string `json:"attribute6format,omitempty"` /** * Name of attribute7 that needs to be sent in SAML Assertion - */ + */ Attribute7 string `json:"attribute7,omitempty"` /** * Expression that will be evaluated to obtain attribute7's value to be sent in Assertion - */ + */ Attribute7expr string `json:"attribute7expr,omitempty"` /** * User-Friendly Name of attribute7 that needs to be sent in SAML Assertion - */ + */ Attribute7friendlyname string `json:"attribute7friendlyname,omitempty"` /** * Format of Attribute7 to be sent in Assertion. - */ + */ Attribute7format string `json:"attribute7format,omitempty"` /** * Name of attribute8 that needs to be sent in SAML Assertion - */ + */ Attribute8 string `json:"attribute8,omitempty"` /** * Expression that will be evaluated to obtain attribute8's value to be sent in Assertion - */ + */ Attribute8expr string `json:"attribute8expr,omitempty"` /** * User-Friendly Name of attribute8 that needs to be sent in SAML Assertion - */ + */ Attribute8friendlyname string `json:"attribute8friendlyname,omitempty"` /** * Format of Attribute8 to be sent in Assertion. - */ + */ Attribute8format string `json:"attribute8format,omitempty"` /** * Name of attribute9 that needs to be sent in SAML Assertion - */ + */ Attribute9 string `json:"attribute9,omitempty"` /** * Expression that will be evaluated to obtain attribute9's value to be sent in Assertion - */ + */ Attribute9expr string `json:"attribute9expr,omitempty"` /** * User-Friendly Name of attribute9 that needs to be sent in SAML Assertion - */ + */ Attribute9friendlyname string `json:"attribute9friendlyname,omitempty"` /** * Format of Attribute9 to be sent in Assertion. - */ + */ Attribute9format string `json:"attribute9format,omitempty"` /** * Name of attribute10 that needs to be sent in SAML Assertion - */ + */ Attribute10 string `json:"attribute10,omitempty"` /** * Expression that will be evaluated to obtain attribute10's value to be sent in Assertion - */ + */ Attribute10expr string `json:"attribute10expr,omitempty"` /** * User-Friendly Name of attribute10 that needs to be sent in SAML Assertion - */ + */ Attribute10friendlyname string `json:"attribute10friendlyname,omitempty"` /** * Format of Attribute10 to be sent in Assertion. - */ + */ Attribute10format string `json:"attribute10format,omitempty"` /** * Name of attribute11 that needs to be sent in SAML Assertion - */ + */ Attribute11 string `json:"attribute11,omitempty"` /** * Expression that will be evaluated to obtain attribute11's value to be sent in Assertion - */ + */ Attribute11expr string `json:"attribute11expr,omitempty"` /** * User-Friendly Name of attribute11 that needs to be sent in SAML Assertion - */ + */ Attribute11friendlyname string `json:"attribute11friendlyname,omitempty"` /** * Format of Attribute11 to be sent in Assertion. - */ + */ Attribute11format string `json:"attribute11format,omitempty"` /** * Name of attribute12 that needs to be sent in SAML Assertion - */ + */ Attribute12 string `json:"attribute12,omitempty"` /** * Expression that will be evaluated to obtain attribute12's value to be sent in Assertion - */ + */ Attribute12expr string `json:"attribute12expr,omitempty"` /** * User-Friendly Name of attribute12 that needs to be sent in SAML Assertion - */ + */ Attribute12friendlyname string `json:"attribute12friendlyname,omitempty"` /** * Format of Attribute12 to be sent in Assertion. - */ + */ Attribute12format string `json:"attribute12format,omitempty"` /** * Name of attribute13 that needs to be sent in SAML Assertion - */ + */ Attribute13 string `json:"attribute13,omitempty"` /** * Expression that will be evaluated to obtain attribute13's value to be sent in Assertion - */ + */ Attribute13expr string `json:"attribute13expr,omitempty"` /** * User-Friendly Name of attribute13 that needs to be sent in SAML Assertion - */ + */ Attribute13friendlyname string `json:"attribute13friendlyname,omitempty"` /** * Format of Attribute13 to be sent in Assertion. - */ + */ Attribute13format string `json:"attribute13format,omitempty"` /** * Name of attribute14 that needs to be sent in SAML Assertion - */ + */ Attribute14 string `json:"attribute14,omitempty"` /** * Expression that will be evaluated to obtain attribute14's value to be sent in Assertion - */ + */ Attribute14expr string `json:"attribute14expr,omitempty"` /** * User-Friendly Name of attribute14 that needs to be sent in SAML Assertion - */ + */ Attribute14friendlyname string `json:"attribute14friendlyname,omitempty"` /** * Format of Attribute14 to be sent in Assertion. - */ + */ Attribute14format string `json:"attribute14format,omitempty"` /** * Name of attribute15 that needs to be sent in SAML Assertion - */ + */ Attribute15 string `json:"attribute15,omitempty"` /** * Expression that will be evaluated to obtain attribute15's value to be sent in Assertion - */ + */ Attribute15expr string `json:"attribute15expr,omitempty"` /** * User-Friendly Name of attribute15 that needs to be sent in SAML Assertion - */ + */ Attribute15friendlyname string `json:"attribute15friendlyname,omitempty"` /** * Format of Attribute15 to be sent in Assertion. - */ + */ Attribute15format string `json:"attribute15format,omitempty"` /** * Name of attribute16 that needs to be sent in SAML Assertion - */ + */ Attribute16 string `json:"attribute16,omitempty"` /** * Expression that will be evaluated to obtain attribute16's value to be sent in Assertion - */ + */ Attribute16expr string `json:"attribute16expr,omitempty"` /** * User-Friendly Name of attribute16 that needs to be sent in SAML Assertion - */ + */ Attribute16friendlyname string `json:"attribute16friendlyname,omitempty"` /** * Format of Attribute16 to be sent in Assertion. - */ + */ Attribute16format string `json:"attribute16format,omitempty"` /** * Option to encrypt assertion when Citrix ADC IDP sends one. - */ + */ Encryptassertion string `json:"encryptassertion,omitempty"` /** * Algorithm to be used to encrypt SAML assertion - */ + */ Encryptionalgorithm string `json:"encryptionalgorithm,omitempty"` /** * This element specifies the transport mechanism of saml messages. - */ + */ Samlbinding string `json:"samlbinding,omitempty"` /** * This option specifies the number of minutes on either side of current time that the assertion would be valid. For example, if skewTime is 10, then assertion would be valid from (current time - 10) min to (current time + 10) min, ie 20min in all. - */ + */ Skewtime int `json:"skewtime,omitempty"` /** * Unique identifier of the Service Provider that sends SAML Request. Citrix ADC will ensure that the Issuer of the SAML Request matches this URI. In case of SP initiated sign-in scenarios, this value must be same as samlIssuerName configured in samlAction. - */ + */ Serviceproviderid string `json:"serviceproviderid,omitempty"` /** * Option to sign portions of assertion when Citrix ADC IDP sends one. Based on the user selection, either Assertion or Response or Both or none can be signed - */ + */ Signassertion string `json:"signassertion,omitempty"` /** * Key transport algorithm to be used in encryption of SAML assertion - */ + */ Keytransportalg string `json:"keytransportalg,omitempty"` /** * Endpoint on the ServiceProvider (SP) to which logout messages are to be sent - */ + */ Splogouturl string `json:"splogouturl,omitempty"` /** * This element specifies the transport mechanism of saml logout messages. - */ + */ Logoutbinding string `json:"logoutbinding,omitempty"` /** * This group will be part of AAA session's internal group list. This will be helpful to admin in Nfactor flow to decide right AAA configuration for Relaying Party. In authentication policy AAA.USER.IS_MEMBER_OF("") is way to use this feature. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * This URL is used for obtaining samlidp metadata - */ + */ Metadataurl string `json:"metadataurl,omitempty"` /** * Interval in minute for fetching metadata from specified metadata URL - */ + */ Metadatarefreshinterval int `json:"metadatarefreshinterval,omitempty"` /** * Name of the service in cloud used to sign the data - */ + */ Signatureservice string `json:"signatureservice,omitempty"` /** * version of the certificate in signature service used to sign the SAMLResposne that is sent to Relying Party or Service Provider after successful authentication - */ + */ Samlsigningcertversion string `json:"samlsigningcertversion,omitempty"` /** * version of the certificate in signature service used to verify the signature of the incoming AuthnRequest from a Relying Party or Service Provider - */ + */ Samlspcertversion string `json:"samlspcertversion,omitempty"` /** * Expression that will be evaluated to allow Assertion Consumer Service URI coming in the SAML Request - */ + */ Acsurlrule string `json:"acsurlrule,omitempty"` //------- Read only Parameter ---------; Metadataimportstatus string `json:"metadataimportstatus,omitempty"` - } diff --git a/resource/config/authentication/authenticationsamlpolicy.go b/resource/config/authenticationsamlpolicy.go similarity index 95% rename from resource/config/authentication/authenticationsamlpolicy.go rename to resource/config/authenticationsamlpolicy.go index 12a0a0f..453ca7d 100644 --- a/resource/config/authentication/authenticationsamlpolicy.go +++ b/resource/config/authenticationsamlpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for AAA Saml policy resource. -*/ + */ type Authenticationsamlpolicy struct { /** - * Name for the SAML policy. + * Name for the SAML policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after SAML policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationsamlpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the SAML server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the SAML authentication action to be performed if the policy matches. - */ + */ Reqaction string `json:"reqaction,omitempty"` - } diff --git a/resource/config/authentication/authenticationsamlpolicy_authenticationvserver_binding.go b/resource/config/authenticationsamlpolicy_authenticationvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationsamlpolicy_authenticationvserver_binding.go rename to resource/config/authenticationsamlpolicy_authenticationvserver_binding.go index 3e546c2..d585c2a 100644 --- a/resource/config/authentication/authenticationsamlpolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationsamlpolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationsamlpolicy. -*/ + */ type Authenticationsamlpolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the SAML policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlpolicy_binding.go b/resource/config/authenticationsamlpolicy_binding.go similarity index 87% rename from resource/config/authentication/authenticationsamlpolicy_binding.go rename to resource/config/authenticationsamlpolicy_binding.go index dc19334..e0fa4df 100644 --- a/resource/config/authentication/authenticationsamlpolicy_binding.go +++ b/resource/config/authenticationsamlpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationsamlpolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationsamlpolicy_binding. + */ type Authenticationsamlpolicybinding struct { /** - * Name of the SAML policy.
Minimum value = - */ + * Name of the SAML policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlpolicy_global_binding.go b/resource/config/authenticationsamlpolicy_global_binding.go similarity index 87% rename from resource/config/authentication/authenticationsamlpolicy_global_binding.go rename to resource/config/authenticationsamlpolicy_global_binding.go index 3a9b966..886f7b7 100644 --- a/resource/config/authentication/authenticationsamlpolicy_global_binding.go +++ b/resource/config/authenticationsamlpolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationsamlpolicy. -*/ + */ type Authenticationsamlpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the SAML policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlpolicy_vpnglobal_binding.go b/resource/config/authenticationsamlpolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationsamlpolicy_vpnglobal_binding.go rename to resource/config/authenticationsamlpolicy_vpnglobal_binding.go index bb357be..6f75e86 100644 --- a/resource/config/authentication/authenticationsamlpolicy_vpnglobal_binding.go +++ b/resource/config/authenticationsamlpolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnglobal that can be bound to authenticationsamlpolicy. -*/ + */ type Authenticationsamlpolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the SAML policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlpolicy_vpnvserver_binding.go b/resource/config/authenticationsamlpolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationsamlpolicy_vpnvserver_binding.go rename to resource/config/authenticationsamlpolicy_vpnvserver_binding.go index 1596530..14eb084 100644 --- a/resource/config/authentication/authenticationsamlpolicy_vpnvserver_binding.go +++ b/resource/config/authenticationsamlpolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationsamlpolicy. -*/ + */ type Authenticationsamlpolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the SAML policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationsamlpolicy_vserver_binding.go b/resource/config/authenticationsamlpolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationsamlpolicy_vserver_binding.go rename to resource/config/authenticationsamlpolicy_vserver_binding.go index d6f36b6..e74b410 100644 --- a/resource/config/authentication/authenticationsamlpolicy_vserver_binding.go +++ b/resource/config/authenticationsamlpolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationsamlpolicy. -*/ + */ type Authenticationsamlpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the SAML policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationstorefrontauthaction.go b/resource/config/authenticationstorefrontauthaction.go similarity index 95% rename from resource/config/authentication/authenticationstorefrontauthaction.go rename to resource/config/authenticationstorefrontauthaction.go index 76eab0c..d49ad9b 100644 --- a/resource/config/authentication/authenticationstorefrontauthaction.go +++ b/resource/config/authenticationstorefrontauthaction.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Storefront authentication action resource. -*/ + */ type Authenticationstorefrontauthaction struct { /** - * Name for the Storefront Authentication action. + * Name for the Storefront Authentication action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication action" or 'my authentication action'). @@ -29,20 +29,19 @@ type Authenticationstorefrontauthaction struct { Name string `json:"name,omitempty"` /** * URL of the Storefront server. This is the FQDN of the Storefront server. example: https://storefront.com/. Authentication endpoints are learned dynamically by Gateway. - */ + */ Serverurl string `json:"serverurl,omitempty"` /** * Domain of the server that is used for authentication. If users enter name without domain, this parameter is added to username in the authentication request to server. - */ + */ Domain string `json:"domain,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` //------- Read only Parameter ---------; Success string `json:"success,omitempty"` Failure string `json:"failure,omitempty"` - } diff --git a/resource/config/authentication/authenticationtacacsaction.go b/resource/config/authenticationtacacsaction.go similarity index 94% rename from resource/config/authentication/authenticationtacacsaction.go rename to resource/config/authenticationtacacsaction.go index a2651ea..49611a6 100644 --- a/resource/config/authentication/authenticationtacacsaction.go +++ b/resource/config/authenticationtacacsaction.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for TACACS action resource. -*/ + */ type Authenticationtacacsaction struct { /** - * Name for the TACACS+ profile (action). + * Name for the TACACS+ profile (action). Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after TACACS profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication action" or 'y authentication action'). @@ -29,32 +29,32 @@ type Authenticationtacacsaction struct { Name string `json:"name,omitempty"` /** * IP address assigned to the TACACS+ server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port number on which the TACACS+ server listens for connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Number of seconds the Citrix ADC waits for a response from the TACACS+ server. - */ + */ Authtimeout int `json:"authtimeout,omitempty"` /** - * Key shared between the TACACS+ server and the Citrix ADC. + * Key shared between the TACACS+ server and the Citrix ADC. Required for allowing the Citrix ADC to communicate with the TACACS+ server. */ Tacacssecret string `json:"tacacssecret,omitempty"` /** * Use streaming authorization on the TACACS+ server. - */ + */ Authorization string `json:"authorization,omitempty"` /** * Whether the TACACS+ server is currently accepting accounting messages. - */ + */ Accounting string `json:"accounting,omitempty"` /** * The state of the TACACS+ server that will receive accounting messages. - */ + */ Auditfailedcmds string `json:"auditfailedcmds,omitempty"` /** * TACACS+ group attribute name. @@ -63,75 +63,75 @@ type Authenticationtacacsaction struct { Groupattrname string `json:"groupattrname,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '1' (where '1' changes for each attribute) - */ + */ Attribute1 string `json:"attribute1,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '2' (where '2' changes for each attribute) - */ + */ Attribute2 string `json:"attribute2,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '3' (where '3' changes for each attribute) - */ + */ Attribute3 string `json:"attribute3,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '4' (where '4' changes for each attribute) - */ + */ Attribute4 string `json:"attribute4,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '5' (where '5' changes for each attribute) - */ + */ Attribute5 string `json:"attribute5,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '6' (where '6' changes for each attribute) - */ + */ Attribute6 string `json:"attribute6,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '7' (where '7' changes for each attribute) - */ + */ Attribute7 string `json:"attribute7,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '8' (where '8' changes for each attribute) - */ + */ Attribute8 string `json:"attribute8,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '9' (where '9' changes for each attribute) - */ + */ Attribute9 string `json:"attribute9,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '10' (where '10' changes for each attribute) - */ + */ Attribute10 string `json:"attribute10,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '11' (where '11' changes for each attribute) - */ + */ Attribute11 string `json:"attribute11,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '12' (where '12' changes for each attribute) - */ + */ Attribute12 string `json:"attribute12,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '13' (where '13' changes for each attribute) - */ + */ Attribute13 string `json:"attribute13,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '14' (where '14' changes for each attribute) - */ + */ Attribute14 string `json:"attribute14,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '15' (where '15' changes for each attribute) - */ + */ Attribute15 string `json:"attribute15,omitempty"` /** * Name of the custom attribute to be extracted from server and stored at index '16' (where '16' changes for each attribute) - */ + */ Attribute16 string `json:"attribute16,omitempty"` /** - * List of attribute names separated by ',' which needs to be fetched from tacacs server. - Note that preceeding and trailing spaces will be removed. + * List of attribute names separated by ',' which needs to be fetched from tacacs server. + Note that preceeding and trailing spaces will be removed. Attribute name can be 127 bytes and total length of this string should not cross 2047 bytes. These attributes have multi-value support separated by ',' and stored as key-value pair in AAA session */ @@ -141,5 +141,4 @@ type Authenticationtacacsaction struct { Success string `json:"success,omitempty"` Failure string `json:"failure,omitempty"` - } diff --git a/resource/config/authentication/authenticationtacacspolicy.go b/resource/config/authenticationtacacspolicy.go similarity index 95% rename from resource/config/authentication/authenticationtacacspolicy.go rename to resource/config/authenticationtacacspolicy.go index 3b3fd1b..5a66479 100644 --- a/resource/config/authentication/authenticationtacacspolicy.go +++ b/resource/config/authenticationtacacspolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for TACACS policy resource. -*/ + */ type Authenticationtacacspolicy struct { /** - * Name for the TACACS+ policy. + * Name for the TACACS+ policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after TACACS+ policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationtacacspolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the TACACS+ server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the TACACS+ action to perform if the policy matches. - */ + */ Reqaction string `json:"reqaction,omitempty"` - } diff --git a/resource/config/authentication/authenticationtacacspolicy_authenticationvserver_binding.go b/resource/config/authenticationtacacspolicy_authenticationvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationtacacspolicy_authenticationvserver_binding.go rename to resource/config/authenticationtacacspolicy_authenticationvserver_binding.go index 83bed0b..24168ae 100644 --- a/resource/config/authentication/authenticationtacacspolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationtacacspolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationtacacspolicy. -*/ + */ type Authenticationtacacspolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the TACACS+ policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationtacacspolicy_binding.go b/resource/config/authenticationtacacspolicy_binding.go similarity index 86% rename from resource/config/authentication/authenticationtacacspolicy_binding.go rename to resource/config/authenticationtacacspolicy_binding.go index 682e3ec..6f7b680 100644 --- a/resource/config/authentication/authenticationtacacspolicy_binding.go +++ b/resource/config/authenticationtacacspolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationtacacspolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationtacacspolicy_binding. + */ type Authenticationtacacspolicybinding struct { /** - * Name of the TACACS+ policy.
Minimum value = - */ + * Name of the TACACS+ policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationtacacspolicy_global_binding.go b/resource/config/authenticationtacacspolicy_global_binding.go similarity index 87% rename from resource/config/authentication/authenticationtacacspolicy_global_binding.go rename to resource/config/authenticationtacacspolicy_global_binding.go index 9825ea9..485c065 100644 --- a/resource/config/authentication/authenticationtacacspolicy_global_binding.go +++ b/resource/config/authenticationtacacspolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationtacacspolicy. -*/ + */ type Authenticationtacacspolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the TACACS+ policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationtacacspolicy_systemglobal_binding.go b/resource/config/authenticationtacacspolicy_systemglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationtacacspolicy_systemglobal_binding.go rename to resource/config/authenticationtacacspolicy_systemglobal_binding.go index 2f7c9d5..4a05d80 100644 --- a/resource/config/authentication/authenticationtacacspolicy_systemglobal_binding.go +++ b/resource/config/authenticationtacacspolicy_systemglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the systemglobal that can be bound to authenticationtacacspolicy. -*/ + */ type Authenticationtacacspolicysystemglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the TACACS+ policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationtacacspolicy_vpnglobal_binding.go b/resource/config/authenticationtacacspolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationtacacspolicy_vpnglobal_binding.go rename to resource/config/authenticationtacacspolicy_vpnglobal_binding.go index 0f7b5ae..a227486 100644 --- a/resource/config/authentication/authenticationtacacspolicy_vpnglobal_binding.go +++ b/resource/config/authenticationtacacspolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnglobal that can be bound to authenticationtacacspolicy. -*/ + */ type Authenticationtacacspolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the TACACS+ policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationtacacspolicy_vpnvserver_binding.go b/resource/config/authenticationtacacspolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationtacacspolicy_vpnvserver_binding.go rename to resource/config/authenticationtacacspolicy_vpnvserver_binding.go index c7312c2..1c7b6b7 100644 --- a/resource/config/authentication/authenticationtacacspolicy_vpnvserver_binding.go +++ b/resource/config/authenticationtacacspolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationtacacspolicy. -*/ + */ type Authenticationtacacspolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the TACACS+ policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationtacacspolicy_vserver_binding.go b/resource/config/authenticationtacacspolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationtacacspolicy_vserver_binding.go rename to resource/config/authenticationtacacspolicy_vserver_binding.go index 19995f6..1d79890 100644 --- a/resource/config/authentication/authenticationtacacspolicy_vserver_binding.go +++ b/resource/config/authenticationtacacspolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationtacacspolicy. -*/ + */ type Authenticationtacacspolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the TACACS+ policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver.go b/resource/config/authenticationvserver.go similarity index 67% rename from resource/config/authentication/authenticationvserver.go rename to resource/config/authenticationvserver.go index d0419b9..3fb504d 100644 --- a/resource/config/authentication/authenticationvserver.go +++ b/resource/config/authenticationvserver.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for authentication virtual server resource. -*/ + */ type Authenticationvserver struct { /** - * Name for the new authentication virtual server. + * Name for the new authentication virtual server. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the authentication virtual server is added by using the rename authentication vserver command. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,63 +29,63 @@ type Authenticationvserver struct { Name string `json:"name,omitempty"` /** * Protocol type of the authentication virtual server. Always SSL. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * IP address of the authentication virtual server, if a single IP address is assigned to the virtual server. - */ + */ Ipv46 string `json:"ipv46,omitempty"` /** - * If you are creating a series of virtual servers with a range of IP addresses assigned to them, the length of the range. + * If you are creating a series of virtual servers with a range of IP addresses assigned to them, the length of the range. The new range of authentication virtual servers will have IP addresses consecutively numbered, starting with the primary address specified with the IP Address parameter. */ Range int `json:"range,omitempty"` /** * TCP port on which the virtual server accepts connections. - */ + */ Port int `json:"port,omitempty"` /** * Initial state of the new virtual server. - */ + */ State string `json:"state,omitempty"` /** * Require users to be authenticated before sending traffic through this virtual server. - */ + */ Authentication string `json:"authentication,omitempty"` /** * The domain of the authentication cookie set by Authentication vserver - */ + */ Authenticationdomain string `json:"authenticationdomain,omitempty"` /** * Any comments associated with this virtual server. - */ + */ Comment string `json:"comment,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Log AppFlow flow information. - */ + */ Appflowlog string `json:"appflowlog,omitempty"` /** * Maximum Number of login Attempts - */ + */ Maxloginattempts int `json:"maxloginattempts,omitempty"` /** * Number of minutes an account will be locked if user exceeds maximum permissible attempts - */ + */ Failedlogintimeout int `json:"failedlogintimeout,omitempty"` /** * Name of the certificate key that was bound to the corresponding SSL virtual server as the Certificate Authority for the device certificate - */ + */ Certkeynames string `json:"certkeynames,omitempty"` /** * SameSite attribute value for Cookies generated in AAATM context. This attribute value will be appended only for the cookies which are specified in the builtin patset ns_cookies_samesite - */ + */ Samesite string `json:"samesite,omitempty"` /** - * New name of the authentication virtual server. + * New name of the authentication virtual server. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, 'my authentication policy' or "my authentication policy"). @@ -94,37 +94,36 @@ type Authenticationvserver struct { //------- Read only Parameter ---------; - Ip string `json:"ip,omitempty"` - Value string `json:"value,omitempty"` - Type string `json:"type,omitempty"` - Curstate string `json:"curstate,omitempty"` - Status string `json:"status,omitempty"` - Cachetype string `json:"cachetype,omitempty"` - Redirect string `json:"redirect,omitempty"` - Precedence string `json:"precedence,omitempty"` - Redirecturl string `json:"redirecturl,omitempty"` - Curaaausers string `json:"curaaausers,omitempty"` - Policy string `json:"policy,omitempty"` - Servicename string `json:"servicename,omitempty"` - Weight string `json:"weight,omitempty"` - Cachevserver string `json:"cachevserver,omitempty"` - Backupvserver string `json:"backupvserver,omitempty"` - Clttimeout string `json:"clttimeout,omitempty"` - Somethod string `json:"somethod,omitempty"` - Sothreshold string `json:"sothreshold,omitempty"` - Sopersistence string `json:"sopersistence,omitempty"` + Ip string `json:"ip,omitempty"` + Value string `json:"value,omitempty"` + Type string `json:"type,omitempty"` + Curstate string `json:"curstate,omitempty"` + Status string `json:"status,omitempty"` + Cachetype string `json:"cachetype,omitempty"` + Redirect string `json:"redirect,omitempty"` + Precedence string `json:"precedence,omitempty"` + Redirecturl string `json:"redirecturl,omitempty"` + Curaaausers string `json:"curaaausers,omitempty"` + Policy string `json:"policy,omitempty"` + Servicename string `json:"servicename,omitempty"` + Weight string `json:"weight,omitempty"` + Cachevserver string `json:"cachevserver,omitempty"` + Backupvserver string `json:"backupvserver,omitempty"` + Clttimeout string `json:"clttimeout,omitempty"` + Somethod string `json:"somethod,omitempty"` + Sothreshold string `json:"sothreshold,omitempty"` + Sopersistence string `json:"sopersistence,omitempty"` Sopersistencetimeout string `json:"sopersistencetimeout,omitempty"` - Priority string `json:"priority,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Bindpoint string `json:"bindpoint,omitempty"` + Priority string `json:"priority,omitempty"` + Downstateflush string `json:"downstateflush,omitempty"` + Bindpoint string `json:"bindpoint,omitempty"` Disableprimaryondown string `json:"disableprimaryondown,omitempty"` - Listenpolicy string `json:"listenpolicy,omitempty"` - Listenpriority string `json:"listenpriority,omitempty"` - Tcpprofilename string `json:"tcpprofilename,omitempty"` - Httpprofilename string `json:"httpprofilename,omitempty"` - Vstype string `json:"vstype,omitempty"` - Ngname string `json:"ngname,omitempty"` - Secondary string `json:"secondary,omitempty"` - Groupextraction string `json:"groupextraction,omitempty"` - + Listenpolicy string `json:"listenpolicy,omitempty"` + Listenpriority string `json:"listenpriority,omitempty"` + Tcpprofilename string `json:"tcpprofilename,omitempty"` + Httpprofilename string `json:"httpprofilename,omitempty"` + Vstype string `json:"vstype,omitempty"` + Ngname string `json:"ngname,omitempty"` + Secondary string `json:"secondary,omitempty"` + Groupextraction string `json:"groupextraction,omitempty"` } diff --git a/resource/config/authentication/authenticationvserver_auditnslogpolicy_binding.go b/resource/config/authenticationvserver_auditnslogpolicy_binding.go similarity index 98% rename from resource/config/authentication/authenticationvserver_auditnslogpolicy_binding.go rename to resource/config/authenticationvserver_auditnslogpolicy_binding.go index b5d3268..234030c 100644 --- a/resource/config/authentication/authenticationvserver_auditnslogpolicy_binding.go +++ b/resource/config/authenticationvserver_auditnslogpolicy_binding.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the auditnslogpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauditnslogpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -62,8 +62,6 @@ type Authenticationvserverauditnslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_auditsyslogpolicy_binding.go b/resource/config/authenticationvserver_auditsyslogpolicy_binding.go similarity index 98% rename from resource/config/authentication/authenticationvserver_auditsyslogpolicy_binding.go rename to resource/config/authenticationvserver_auditsyslogpolicy_binding.go index 2186507..d374979 100644 --- a/resource/config/authentication/authenticationvserver_auditsyslogpolicy_binding.go +++ b/resource/config/authenticationvserver_auditsyslogpolicy_binding.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the auditsyslogpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauditsyslogpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -62,8 +62,6 @@ type Authenticationvserverauditsyslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationcertpolicy_binding.go b/resource/config/authenticationvserver_authenticationcertpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_authenticationcertpolicy_binding.go rename to resource/config/authenticationvserver_authenticationcertpolicy_binding.go index fdb3479..e793fe2 100644 --- a/resource/config/authentication/authenticationvserver_authenticationcertpolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationcertpolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationcertpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationcertpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverauthenticationcertpolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverauthenticationcertpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationldappolicy_binding.go b/resource/config/authenticationvserver_authenticationldappolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_authenticationldappolicy_binding.go rename to resource/config/authenticationvserver_authenticationldappolicy_binding.go index 13a2dd9..00147ba 100644 --- a/resource/config/authentication/authenticationvserver_authenticationldappolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationldappolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationldappolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationldappolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverauthenticationldappolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Bind the Authentication policy to a tertiary chain which will be used only for group extraction. The user will not authenticate against this server, and this will only be called if primary and/or secondary authentication has succeeded. - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverauthenticationldappolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationlocalpolicy_binding.go b/resource/config/authenticationvserver_authenticationlocalpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_authenticationlocalpolicy_binding.go rename to resource/config/authenticationvserver_authenticationlocalpolicy_binding.go index 2a6f708..569bf72 100644 --- a/resource/config/authentication/authenticationvserver_authenticationlocalpolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationlocalpolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationlocalpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationlocalpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverauthenticationlocalpolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverauthenticationlocalpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationloginschemapolicy_binding.go b/resource/config/authenticationvserver_authenticationloginschemapolicy_binding.go similarity index 95% rename from resource/config/authentication/authenticationvserver_authenticationloginschemapolicy_binding.go rename to resource/config/authenticationvserver_authenticationloginschemapolicy_binding.go index 97200ea..7fdc3b8 100644 --- a/resource/config/authentication/authenticationvserver_authenticationloginschemapolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationloginschemapolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationloginschemapolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationloginschemapolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationnegotiatepolicy_binding.go b/resource/config/authenticationvserver_authenticationnegotiatepolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_authenticationnegotiatepolicy_binding.go rename to resource/config/authenticationvserver_authenticationnegotiatepolicy_binding.go index 8f6a4de..81570d6 100644 --- a/resource/config/authentication/authenticationvserver_authenticationnegotiatepolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationnegotiatepolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationnegotiatepolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationnegotiatepolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverauthenticationnegotiatepolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverauthenticationnegotiatepolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationoauthidppolicy_binding.go b/resource/config/authenticationvserver_authenticationoauthidppolicy_binding.go similarity index 95% rename from resource/config/authentication/authenticationvserver_authenticationoauthidppolicy_binding.go rename to resource/config/authenticationvserver_authenticationoauthidppolicy_binding.go index e6215af..70d3db4 100644 --- a/resource/config/authentication/authenticationvserver_authenticationoauthidppolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationoauthidppolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationoauthidppolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationoauthidppolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationpolicy_binding.go b/resource/config/authenticationvserver_authenticationpolicy_binding.go similarity index 95% rename from resource/config/authentication/authenticationvserver_authenticationpolicy_binding.go rename to resource/config/authenticationvserver_authenticationpolicy_binding.go index f094b44..78065b1 100644 --- a/resource/config/authentication/authenticationvserver_authenticationpolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationradiuspolicy_binding.go b/resource/config/authenticationvserver_authenticationradiuspolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_authenticationradiuspolicy_binding.go rename to resource/config/authenticationvserver_authenticationradiuspolicy_binding.go index c6a834e..3385d9c 100644 --- a/resource/config/authentication/authenticationvserver_authenticationradiuspolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationradiuspolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationradiuspolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationradiuspolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverauthenticationradiuspolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverauthenticationradiuspolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationsamlidppolicy_binding.go b/resource/config/authenticationvserver_authenticationsamlidppolicy_binding.go similarity index 95% rename from resource/config/authentication/authenticationvserver_authenticationsamlidppolicy_binding.go rename to resource/config/authenticationvserver_authenticationsamlidppolicy_binding.go index 6f70455..5d65499 100644 --- a/resource/config/authentication/authenticationvserver_authenticationsamlidppolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationsamlidppolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationsamlidppolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationsamlidppolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationsamlpolicy_binding.go b/resource/config/authenticationvserver_authenticationsamlpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_authenticationsamlpolicy_binding.go rename to resource/config/authenticationvserver_authenticationsamlpolicy_binding.go index 728b50e..38267b8 100644 --- a/resource/config/authentication/authenticationvserver_authenticationsamlpolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationsamlpolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationsamlpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationsamlpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverauthenticationsamlpolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverauthenticationsamlpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationtacacspolicy_binding.go b/resource/config/authenticationvserver_authenticationtacacspolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_authenticationtacacspolicy_binding.go rename to resource/config/authenticationvserver_authenticationtacacspolicy_binding.go index 1a4aa0e..91c3936 100644 --- a/resource/config/authentication/authenticationvserver_authenticationtacacspolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationtacacspolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationtacacspolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationtacacspolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverauthenticationtacacspolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverauthenticationtacacspolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_authenticationwebauthpolicy_binding.go b/resource/config/authenticationvserver_authenticationwebauthpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_authenticationwebauthpolicy_binding.go rename to resource/config/authenticationvserver_authenticationwebauthpolicy_binding.go index 6d0be43..1ed827d 100644 --- a/resource/config/authentication/authenticationvserver_authenticationwebauthpolicy_binding.go +++ b/resource/config/authenticationvserver_authenticationwebauthpolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationwebauthpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverauthenticationwebauthpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverauthenticationwebauthpolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverauthenticationwebauthpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_binding.go b/resource/config/authenticationvserver_binding.go similarity index 93% rename from resource/config/authentication/authenticationvserver_binding.go rename to resource/config/authenticationvserver_binding.go index b3320b6..557ab1f 100644 --- a/resource/config/authentication/authenticationvserver_binding.go +++ b/resource/config/authenticationvserver_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationvserver_binding. -*/ +* Binding object which returns the resources bound to authenticationvserver_binding. + */ type Authenticationvserverbinding struct { /** - * Name of the authentication virtual server.
Minimum value = - */ + * Name of the authentication virtual server.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_cachepolicy_binding.go b/resource/config/authenticationvserver_cachepolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_cachepolicy_binding.go rename to resource/config/authenticationvserver_cachepolicy_binding.go index 0497c7c..545214c 100644 --- a/resource/config/authentication/authenticationvserver_cachepolicy_binding.go +++ b/resource/config/authenticationvserver_cachepolicy_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the cachepolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvservercachepolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_certpolicy_binding.go b/resource/config/authenticationvserver_certpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_certpolicy_binding.go rename to resource/config/authenticationvserver_certpolicy_binding.go index b2be6b7..00afadd 100644 --- a/resource/config/authentication/authenticationvserver_certpolicy_binding.go +++ b/resource/config/authenticationvserver_certpolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the certpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvservercertpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvservercertpolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvservercertpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_cspolicy_binding.go b/resource/config/authenticationvserver_cspolicy_binding.go similarity index 96% rename from resource/config/authentication/authenticationvserver_cspolicy_binding.go rename to resource/config/authenticationvserver_cspolicy_binding.go index 05ecc19..0cc019f 100644 --- a/resource/config/authentication/authenticationvserver_cspolicy_binding.go +++ b/resource/config/authenticationvserver_cspolicy_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the cspolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvservercspolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_ldappolicy_binding.go b/resource/config/authenticationvserver_ldappolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_ldappolicy_binding.go rename to resource/config/authenticationvserver_ldappolicy_binding.go index fa9a062..d322fda 100644 --- a/resource/config/authentication/authenticationvserver_ldappolicy_binding.go +++ b/resource/config/authenticationvserver_ldappolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the ldappolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverldappolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverldappolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Bind the Authentication policy to a tertiary chain which will be used only for group extraction. The user will not authenticate against this server, and this will only be called if primary and/or secondary authentication has succeeded. - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverldappolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_localpolicy_binding.go b/resource/config/authenticationvserver_localpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_localpolicy_binding.go rename to resource/config/authenticationvserver_localpolicy_binding.go index f7c6e96..a866666 100644 --- a/resource/config/authentication/authenticationvserver_localpolicy_binding.go +++ b/resource/config/authenticationvserver_localpolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the localpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverlocalpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverlocalpolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverlocalpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_loginschemapolicy_binding.go b/resource/config/authenticationvserver_loginschemapolicy_binding.go similarity index 95% rename from resource/config/authentication/authenticationvserver_loginschemapolicy_binding.go rename to resource/config/authenticationvserver_loginschemapolicy_binding.go index 1c908bc..acfb3b0 100644 --- a/resource/config/authentication/authenticationvserver_loginschemapolicy_binding.go +++ b/resource/config/authenticationvserver_loginschemapolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the loginschemapolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverloginschemapolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_negotiatepolicy_binding.go b/resource/config/authenticationvserver_negotiatepolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_negotiatepolicy_binding.go rename to resource/config/authenticationvserver_negotiatepolicy_binding.go index 2ce6456..b4087c4 100644 --- a/resource/config/authentication/authenticationvserver_negotiatepolicy_binding.go +++ b/resource/config/authenticationvserver_negotiatepolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the negotiatepolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvservernegotiatepolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvservernegotiatepolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvservernegotiatepolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_nslogpolicy_binding.go b/resource/config/authenticationvserver_nslogpolicy_binding.go similarity index 98% rename from resource/config/authentication/authenticationvserver_nslogpolicy_binding.go rename to resource/config/authenticationvserver_nslogpolicy_binding.go index 23ff805..2d61e9a 100644 --- a/resource/config/authentication/authenticationvserver_nslogpolicy_binding.go +++ b/resource/config/authenticationvserver_nslogpolicy_binding.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the nslogpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvservernslogpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -62,8 +62,6 @@ type Authenticationvservernslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_oauthidppolicy_binding.go b/resource/config/authenticationvserver_oauthidppolicy_binding.go similarity index 94% rename from resource/config/authentication/authenticationvserver_oauthidppolicy_binding.go rename to resource/config/authenticationvserver_oauthidppolicy_binding.go index 0cf55d5..c23d4f7 100644 --- a/resource/config/authentication/authenticationvserver_oauthidppolicy_binding.go +++ b/resource/config/authenticationvserver_oauthidppolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the oauthidppolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserveroauthidppolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_policy_binding.go b/resource/config/authenticationvserver_policy_binding.go similarity index 94% rename from resource/config/authentication/authenticationvserver_policy_binding.go rename to resource/config/authenticationvserver_policy_binding.go index bd1b398..b8f520e 100644 --- a/resource/config/authentication/authenticationvserver_policy_binding.go +++ b/resource/config/authenticationvserver_policy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the policy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_portaltheme_binding.go b/resource/config/authenticationvserver_portaltheme_binding.go similarity index 92% rename from resource/config/authentication/authenticationvserver_portaltheme_binding.go rename to resource/config/authenticationvserver_portaltheme_binding.go index 069c428..e81c735 100644 --- a/resource/config/authentication/authenticationvserver_portaltheme_binding.go +++ b/resource/config/authenticationvserver_portaltheme_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the portaltheme that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverportalthemebinding struct { /** * Theme for Authentication virtual server Login portal - */ + */ Portaltheme string `json:"portaltheme,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_radiuspolicy_binding.go b/resource/config/authenticationvserver_radiuspolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_radiuspolicy_binding.go rename to resource/config/authenticationvserver_radiuspolicy_binding.go index 247cf2a..105a1ae 100644 --- a/resource/config/authentication/authenticationvserver_radiuspolicy_binding.go +++ b/resource/config/authenticationvserver_radiuspolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the radiuspolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverradiuspolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverradiuspolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverradiuspolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_responderpolicy_binding.go b/resource/config/authenticationvserver_responderpolicy_binding.go similarity index 96% rename from resource/config/authentication/authenticationvserver_responderpolicy_binding.go rename to resource/config/authenticationvserver_responderpolicy_binding.go index 0234445..587138f 100644 --- a/resource/config/authentication/authenticationvserver_responderpolicy_binding.go +++ b/resource/config/authenticationvserver_responderpolicy_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the responderpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverresponderpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_rewritepolicy_binding.go b/resource/config/authenticationvserver_rewritepolicy_binding.go similarity index 96% rename from resource/config/authentication/authenticationvserver_rewritepolicy_binding.go rename to resource/config/authenticationvserver_rewritepolicy_binding.go index 258a7ce..bde14f9 100644 --- a/resource/config/authentication/authenticationvserver_rewritepolicy_binding.go +++ b/resource/config/authenticationvserver_rewritepolicy_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the rewritepolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverrewritepolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_samlidppolicy_binding.go b/resource/config/authenticationvserver_samlidppolicy_binding.go similarity index 94% rename from resource/config/authentication/authenticationvserver_samlidppolicy_binding.go rename to resource/config/authenticationvserver_samlidppolicy_binding.go index 50b4a76..d442fb6 100644 --- a/resource/config/authentication/authenticationvserver_samlidppolicy_binding.go +++ b/resource/config/authenticationvserver_samlidppolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the samlidppolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserversamlidppolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * On success invoke label. - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_samlpolicy_binding.go b/resource/config/authenticationvserver_samlpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_samlpolicy_binding.go rename to resource/config/authenticationvserver_samlpolicy_binding.go index 64927ad..769af8e 100644 --- a/resource/config/authentication/authenticationvserver_samlpolicy_binding.go +++ b/resource/config/authenticationvserver_samlpolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the samlpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserversamlpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserversamlpolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserversamlpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_sessionpolicy_binding.go b/resource/config/authenticationvserver_sessionpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_sessionpolicy_binding.go rename to resource/config/authenticationvserver_sessionpolicy_binding.go index 6ed7826..6d60278 100644 --- a/resource/config/authentication/authenticationvserver_sessionpolicy_binding.go +++ b/resource/config/authenticationvserver_sessionpolicy_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the sessionpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserversessionpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_syslogpolicy_binding.go b/resource/config/authenticationvserver_syslogpolicy_binding.go similarity index 98% rename from resource/config/authentication/authenticationvserver_syslogpolicy_binding.go rename to resource/config/authenticationvserver_syslogpolicy_binding.go index 73980d7..0bdce42 100644 --- a/resource/config/authentication/authenticationvserver_syslogpolicy_binding.go +++ b/resource/config/authenticationvserver_syslogpolicy_binding.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the syslogpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserversyslogpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -62,8 +62,6 @@ type Authenticationvserversyslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_tacacspolicy_binding.go b/resource/config/authenticationvserver_tacacspolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_tacacspolicy_binding.go rename to resource/config/authenticationvserver_tacacspolicy_binding.go index 2a2877c..9116252 100644 --- a/resource/config/authentication/authenticationvserver_tacacspolicy_binding.go +++ b/resource/config/authenticationvserver_tacacspolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the tacacspolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvservertacacspolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvservertacacspolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvservertacacspolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_tmsessionpolicy_binding.go b/resource/config/authenticationvserver_tmsessionpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_tmsessionpolicy_binding.go rename to resource/config/authenticationvserver_tmsessionpolicy_binding.go index 12b1f90..14371d8 100644 --- a/resource/config/authentication/authenticationvserver_tmsessionpolicy_binding.go +++ b/resource/config/authenticationvserver_tmsessionpolicy_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the tmsessionpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvservertmsessionpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Secondary bool `json:"secondary,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_vpnportaltheme_binding.go b/resource/config/authenticationvserver_vpnportaltheme_binding.go similarity index 92% rename from resource/config/authentication/authenticationvserver_vpnportaltheme_binding.go rename to resource/config/authenticationvserver_vpnportaltheme_binding.go index 87e30f7..16e8ff1 100644 --- a/resource/config/authentication/authenticationvserver_vpnportaltheme_binding.go +++ b/resource/config/authenticationvserver_vpnportaltheme_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnportaltheme that can be bound to authenticationvserver. -*/ + */ type Authenticationvservervpnportalthemebinding struct { /** * Theme for Authentication virtual server Login portal - */ + */ Portaltheme string `json:"portaltheme,omitempty"` - Acttype int `json:"acttype,omitempty"` + Acttype int `json:"acttype,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationvserver_webauthpolicy_binding.go b/resource/config/authenticationvserver_webauthpolicy_binding.go similarity index 97% rename from resource/config/authentication/authenticationvserver_webauthpolicy_binding.go rename to resource/config/authenticationvserver_webauthpolicy_binding.go index 4b91884..000a952 100644 --- a/resource/config/authentication/authenticationvserver_webauthpolicy_binding.go +++ b/resource/config/authenticationvserver_webauthpolicy_binding.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the webauthpolicy that can be bound to authenticationvserver. -*/ + */ type Authenticationvserverwebauthpolicybinding struct { /** * The name of the policy, if any, bound to the authentication vserver. - */ + */ Policy string `json:"policy,omitempty"` /** * The priority, if any, of the vpn vserver policy. - */ + */ Priority uint32 `json:"priority,omitempty"` - Acttype uint32 `json:"acttype,omitempty"` + Acttype uint32 `json:"acttype,omitempty"` /** * Bind the authentication policy to the secondary chain. Provides for multifactor authentication in which a user must authenticate via both a primary authentication method and, afterward, via a secondary authentication method. @@ -37,15 +37,15 @@ type Authenticationvserverwebauthpolicybinding struct { Secondary bool `json:"secondary,omitempty"` /** * Name of the authentication virtual server to which to bind the policy. - */ + */ Name string `json:"name,omitempty"` /** * Applicable only while bindind classic authentication policy as advance authentication policy use nFactor - */ + */ Groupextraction bool `json:"groupextraction,omitempty"` /** * Applicable only while binding advance authentication policy as classic authentication policy does not support nFactor - */ + */ Nextfactor string `json:"nextfactor,omitempty"` /** * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -65,8 +65,6 @@ type Authenticationvserverwebauthpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. Applies only to rewrite and cache policies. If you do not set this parameter, the policy is bound to REQ_DEFAULT or RES_DEFAULT, depending on whether the policy rule is a response-time or a request-time expression. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationwebauthaction.go b/resource/config/authenticationwebauthaction.go similarity index 96% rename from resource/config/authentication/authenticationwebauthaction.go rename to resource/config/authenticationwebauthaction.go index 4ec5ab5..d94fc29 100644 --- a/resource/config/authentication/authenticationwebauthaction.go +++ b/resource/config/authenticationwebauthaction.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Web authentication action resource. -*/ + */ type Authenticationwebauthaction struct { /** - * Name for the Web Authentication action. + * Name for the Web Authentication action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication action" or 'my authentication action'). @@ -29,11 +29,11 @@ type Authenticationwebauthaction struct { Name string `json:"name,omitempty"` /** * IP address of the web server to be used for authentication. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port on which the web server accepts connections. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Exact HTTP request, in the form of an expression, which the Citrix ADC sends to the authentication server. @@ -42,79 +42,78 @@ type Authenticationwebauthaction struct { Fullreqexpr string `json:"fullreqexpr,omitempty"` /** * Type of scheme for the web server. - */ + */ Scheme string `json:"scheme,omitempty"` /** * Expression, that checks to see if authentication is successful. - */ + */ Successrule string `json:"successrule,omitempty"` /** * This is the default group that is chosen when the authentication succeeds in addition to extracted groups. - */ + */ Defaultauthenticationgroup string `json:"defaultauthenticationgroup,omitempty"` /** * Expression that would be evaluated to extract attribute1 from the webauth response - */ + */ Attribute1 string `json:"attribute1,omitempty"` /** * Expression that would be evaluated to extract attribute2 from the webauth response - */ + */ Attribute2 string `json:"attribute2,omitempty"` /** * Expression that would be evaluated to extract attribute3 from the webauth response - */ + */ Attribute3 string `json:"attribute3,omitempty"` /** * Expression that would be evaluated to extract attribute4 from the webauth response - */ + */ Attribute4 string `json:"attribute4,omitempty"` /** * Expression that would be evaluated to extract attribute5 from the webauth response - */ + */ Attribute5 string `json:"attribute5,omitempty"` /** * Expression that would be evaluated to extract attribute6 from the webauth response - */ + */ Attribute6 string `json:"attribute6,omitempty"` /** * Expression that would be evaluated to extract attribute7 from the webauth response - */ + */ Attribute7 string `json:"attribute7,omitempty"` /** * Expression that would be evaluated to extract attribute8 from the webauth response - */ + */ Attribute8 string `json:"attribute8,omitempty"` /** * Expression that would be evaluated to extract attribute9 from the webauth response - */ + */ Attribute9 string `json:"attribute9,omitempty"` /** * Expression that would be evaluated to extract attribute10 from the webauth response - */ + */ Attribute10 string `json:"attribute10,omitempty"` /** * Expression that would be evaluated to extract attribute11 from the webauth response - */ + */ Attribute11 string `json:"attribute11,omitempty"` /** * Expression that would be evaluated to extract attribute12 from the webauth response - */ + */ Attribute12 string `json:"attribute12,omitempty"` /** * Expression that would be evaluated to extract attribute13 from the webauth response - */ + */ Attribute13 string `json:"attribute13,omitempty"` /** * Expression that would be evaluated to extract attribute14 from the webauth response - */ + */ Attribute14 string `json:"attribute14,omitempty"` /** * Expression that would be evaluated to extract attribute15 from the webauth response - */ + */ Attribute15 string `json:"attribute15,omitempty"` /** * Expression that would be evaluated to extract attribute16 from the webauth response - */ + */ Attribute16 string `json:"attribute16,omitempty"` - } diff --git a/resource/config/authentication/authenticationwebauthpolicy.go b/resource/config/authenticationwebauthpolicy.go similarity index 95% rename from resource/config/authentication/authenticationwebauthpolicy.go rename to resource/config/authenticationwebauthpolicy.go index 164cd3c..84c737a 100644 --- a/resource/config/authentication/authenticationwebauthpolicy.go +++ b/resource/config/authenticationwebauthpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Configuration for Web authentication policy resource. -*/ + */ type Authenticationwebauthpolicy struct { /** - * Name for the WebAuth policy. + * Name for the WebAuth policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after LDAP policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authentication policy" or 'my authentication policy'). @@ -29,11 +29,10 @@ type Authenticationwebauthpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to determine whether to attempt to authenticate the user with the Web server. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the WebAuth action to perform if the policy matches. - */ + */ Action string `json:"action,omitempty"` - } diff --git a/resource/config/authentication/authenticationwebauthpolicy_authenticationvserver_binding.go b/resource/config/authenticationwebauthpolicy_authenticationvserver_binding.go similarity index 83% rename from resource/config/authentication/authenticationwebauthpolicy_authenticationvserver_binding.go rename to resource/config/authenticationwebauthpolicy_authenticationvserver_binding.go index cedfef1..44b3943 100644 --- a/resource/config/authentication/authenticationwebauthpolicy_authenticationvserver_binding.go +++ b/resource/config/authenticationwebauthpolicy_authenticationvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the authenticationvserver that can be bound to authenticationwebauthpolicy. -*/ + */ type Authenticationwebauthpolicyauthenticationvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the WebAuth policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationwebauthpolicy_binding.go b/resource/config/authenticationwebauthpolicy_binding.go similarity index 86% rename from resource/config/authentication/authenticationwebauthpolicy_binding.go rename to resource/config/authenticationwebauthpolicy_binding.go index 088b7ca..007e233 100644 --- a/resource/config/authentication/authenticationwebauthpolicy_binding.go +++ b/resource/config/authenticationwebauthpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** -* Binding object which returns the resources bound to authenticationwebauthpolicy_binding. -*/ +* Binding object which returns the resources bound to authenticationwebauthpolicy_binding. + */ type Authenticationwebauthpolicybinding struct { /** - * Name of the WebAuth policy.
Minimum value = - */ + * Name of the WebAuth policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationwebauthpolicy_global_binding.go b/resource/config/authenticationwebauthpolicy_global_binding.go similarity index 87% rename from resource/config/authentication/authenticationwebauthpolicy_global_binding.go rename to resource/config/authenticationwebauthpolicy_global_binding.go index 8fa481a..a9202cd 100644 --- a/resource/config/authentication/authenticationwebauthpolicy_global_binding.go +++ b/resource/config/authenticationwebauthpolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the global that can be bound to authenticationwebauthpolicy. -*/ + */ type Authenticationwebauthpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the WebAuth policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationwebauthpolicy_systemglobal_binding.go b/resource/config/authenticationwebauthpolicy_systemglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationwebauthpolicy_systemglobal_binding.go rename to resource/config/authenticationwebauthpolicy_systemglobal_binding.go index d5443f9..4b76df7 100644 --- a/resource/config/authentication/authenticationwebauthpolicy_systemglobal_binding.go +++ b/resource/config/authenticationwebauthpolicy_systemglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the systemglobal that can be bound to authenticationwebauthpolicy. -*/ + */ type Authenticationwebauthpolicysystemglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the WebAuth policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationwebauthpolicy_vpnglobal_binding.go b/resource/config/authenticationwebauthpolicy_vpnglobal_binding.go similarity index 82% rename from resource/config/authentication/authenticationwebauthpolicy_vpnglobal_binding.go rename to resource/config/authenticationwebauthpolicy_vpnglobal_binding.go index fdc18bf..db5cff4 100644 --- a/resource/config/authentication/authenticationwebauthpolicy_vpnglobal_binding.go +++ b/resource/config/authenticationwebauthpolicy_vpnglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnglobal that can be bound to authenticationwebauthpolicy. -*/ + */ type Authenticationwebauthpolicyvpnglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the WebAuth policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationwebauthpolicy_vpnvserver_binding.go b/resource/config/authenticationwebauthpolicy_vpnvserver_binding.go similarity index 82% rename from resource/config/authentication/authenticationwebauthpolicy_vpnvserver_binding.go rename to resource/config/authenticationwebauthpolicy_vpnvserver_binding.go index 323465d..09488be 100644 --- a/resource/config/authentication/authenticationwebauthpolicy_vpnvserver_binding.go +++ b/resource/config/authenticationwebauthpolicy_vpnvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vpnvserver that can be bound to authenticationwebauthpolicy. -*/ + */ type Authenticationwebauthpolicyvpnvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the WebAuth policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authentication/authenticationwebauthpolicy_vserver_binding.go b/resource/config/authenticationwebauthpolicy_vserver_binding.go similarity index 87% rename from resource/config/authentication/authenticationwebauthpolicy_vserver_binding.go rename to resource/config/authenticationwebauthpolicy_vserver_binding.go index 6a59fa9..5810ce0 100644 --- a/resource/config/authentication/authenticationwebauthpolicy_vserver_binding.go +++ b/resource/config/authenticationwebauthpolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authentication +package config /** * Binding class showing the vserver that can be bound to authenticationwebauthpolicy. -*/ + */ type Authenticationwebauthpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the WebAuth policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationaction.go b/resource/config/authorizationaction.go similarity index 95% rename from resource/config/authorization/authorizationaction.go rename to resource/config/authorizationaction.go index 81cebb4..80ba67f 100644 --- a/resource/config/authorization/authorizationaction.go +++ b/resource/config/authorizationaction.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Configuration for authorization action resource. -*/ + */ type Authorizationaction struct { /** * Name of authorization action - */ + */ Name string `json:"name,omitempty"` - } diff --git a/resource/config/authorization/authorizationpolicy.go b/resource/config/authorizationpolicy.go similarity index 90% rename from resource/config/authorization/authorizationpolicy.go rename to resource/config/authorizationpolicy.go index 22aa3aa..50093d2 100644 --- a/resource/config/authorization/authorizationpolicy.go +++ b/resource/config/authorizationpolicy.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Configuration for authorization policy resource. -*/ + */ type Authorizationpolicy struct { /** - * Name for the new authorization policy. + * Name for the new authorization policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the authorization policy is added. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authorization policy" or 'my authorization policy'). @@ -29,21 +29,20 @@ type Authorizationpolicy struct { Name string `json:"name,omitempty"` /** * Name of the Citrix ADC named rule, or an expression, that the policy uses to perform the authentication. - */ + */ Rule string `json:"rule,omitempty"` /** * Action to perform if the policy matches: either allow or deny the request. - */ + */ Action string `json:"action,omitempty"` /** * The new name of the author policy. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Activepolicy string `json:"activepolicy,omitempty"` + Activepolicy string `json:"activepolicy,omitempty"` Expressiontype string `json:"expressiontype,omitempty"` - Hits string `json:"hits,omitempty"` - + Hits string `json:"hits,omitempty"` } diff --git a/resource/config/authorization/authorizationpolicy_aaagroup_binding.go b/resource/config/authorizationpolicy_aaagroup_binding.go similarity index 87% rename from resource/config/authorization/authorizationpolicy_aaagroup_binding.go rename to resource/config/authorizationpolicy_aaagroup_binding.go index 6ee0fec..04457f5 100644 --- a/resource/config/authorization/authorizationpolicy_aaagroup_binding.go +++ b/resource/config/authorizationpolicy_aaagroup_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the aaagroup that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicyaaagroupbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_aaauser_binding.go b/resource/config/authorizationpolicy_aaauser_binding.go similarity index 87% rename from resource/config/authorization/authorizationpolicy_aaauser_binding.go rename to resource/config/authorizationpolicy_aaauser_binding.go index 7438689..580ed63 100644 --- a/resource/config/authorization/authorizationpolicy_aaauser_binding.go +++ b/resource/config/authorizationpolicy_aaauser_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the aaauser that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicyaaauserbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_authorizationpolicylabel_binding.go b/resource/config/authorizationpolicy_authorizationpolicylabel_binding.go similarity index 87% rename from resource/config/authorization/authorizationpolicy_authorizationpolicylabel_binding.go rename to resource/config/authorizationpolicy_authorizationpolicylabel_binding.go index 9dcb5c7..5898689 100644 --- a/resource/config/authorization/authorizationpolicy_authorizationpolicylabel_binding.go +++ b/resource/config/authorizationpolicy_authorizationpolicylabel_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the authorizationpolicylabel that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicyauthorizationpolicylabelbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_binding.go b/resource/config/authorizationpolicy_binding.go similarity index 86% rename from resource/config/authorization/authorizationpolicy_binding.go rename to resource/config/authorizationpolicy_binding.go index 99f3eb0..1321006 100644 --- a/resource/config/authorization/authorizationpolicy_binding.go +++ b/resource/config/authorizationpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** -* Binding object which returns the resources bound to authorizationpolicy_binding. -*/ +* Binding object which returns the resources bound to authorizationpolicy_binding. + */ type Authorizationpolicybinding struct { /** - * Name of the authorization policy.
Minimum value = - */ + * Name of the authorization policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_csvserver_binding.go b/resource/config/authorizationpolicy_csvserver_binding.go similarity index 87% rename from resource/config/authorization/authorizationpolicy_csvserver_binding.go rename to resource/config/authorizationpolicy_csvserver_binding.go index 03414c2..c059fd6 100644 --- a/resource/config/authorization/authorizationpolicy_csvserver_binding.go +++ b/resource/config/authorizationpolicy_csvserver_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the csvserver that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicycsvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_group_binding.go b/resource/config/authorizationpolicy_group_binding.go similarity index 91% rename from resource/config/authorization/authorizationpolicy_group_binding.go rename to resource/config/authorizationpolicy_group_binding.go index 3622d5a..f29a03b 100644 --- a/resource/config/authorization/authorizationpolicy_group_binding.go +++ b/resource/config/authorizationpolicy_group_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the group that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicygroupbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` Priority uint32 `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_lbvserver_binding.go b/resource/config/authorizationpolicy_lbvserver_binding.go similarity index 87% rename from resource/config/authorization/authorizationpolicy_lbvserver_binding.go rename to resource/config/authorizationpolicy_lbvserver_binding.go index 4347ec0..1fded8a 100644 --- a/resource/config/authorization/authorizationpolicy_lbvserver_binding.go +++ b/resource/config/authorizationpolicy_lbvserver_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the lbvserver that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicylbvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_policylabel_binding.go b/resource/config/authorizationpolicy_policylabel_binding.go similarity index 91% rename from resource/config/authorization/authorizationpolicy_policylabel_binding.go rename to resource/config/authorizationpolicy_policylabel_binding.go index f9db2a3..072bb95 100644 --- a/resource/config/authorization/authorizationpolicy_policylabel_binding.go +++ b/resource/config/authorizationpolicy_policylabel_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the policylabel that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicypolicylabelbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` Priority uint32 `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_user_binding.go b/resource/config/authorizationpolicy_user_binding.go similarity index 91% rename from resource/config/authorization/authorizationpolicy_user_binding.go rename to resource/config/authorizationpolicy_user_binding.go index 9492370..779d9d7 100644 --- a/resource/config/authorization/authorizationpolicy_user_binding.go +++ b/resource/config/authorizationpolicy_user_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the user that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicyuserbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` Priority uint32 `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicy_vserver_binding.go b/resource/config/authorizationpolicy_vserver_binding.go similarity index 91% rename from resource/config/authorization/authorizationpolicy_vserver_binding.go rename to resource/config/authorizationpolicy_vserver_binding.go index fe238c9..65aadf3 100644 --- a/resource/config/authorization/authorizationpolicy_vserver_binding.go +++ b/resource/config/authorizationpolicy_vserver_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the vserver that can be bound to authorizationpolicy. -*/ + */ type Authorizationpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` Priority uint32 `json:"priority,omitempty"` /** * Name of the authorization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicylabel.go b/resource/config/authorizationpolicylabel.go similarity index 72% rename from resource/config/authorization/authorizationpolicylabel.go rename to resource/config/authorizationpolicylabel.go index 63863a8..67d7075 100644 --- a/resource/config/authorization/authorizationpolicylabel.go +++ b/resource/config/authorizationpolicylabel.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Configuration for authorization policy label resource. -*/ + */ type Authorizationpolicylabel struct { /** - * Name for the new authorization policy label. + * Name for the new authorization policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the authorization policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my authorization policy label" or 'authorization policy label'). @@ -29,19 +29,18 @@ type Authorizationpolicylabel struct { Labelname string `json:"labelname,omitempty"` /** * The new name of the auth policy label - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority string `json:"priority,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority string `json:"priority,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Flowtype string `json:"flowtype,omitempty"` - Description string `json:"description,omitempty"` - + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` } diff --git a/resource/config/authorization/authorizationpolicylabel_authorizationpolicy_binding.go b/resource/config/authorizationpolicylabel_authorizationpolicy_binding.go similarity index 97% rename from resource/config/authorization/authorizationpolicylabel_authorizationpolicy_binding.go rename to resource/config/authorizationpolicylabel_authorizationpolicy_binding.go index bbd459f..37b78ae 100644 --- a/resource/config/authorization/authorizationpolicylabel_authorizationpolicy_binding.go +++ b/resource/config/authorizationpolicylabel_authorizationpolicy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the authorizationpolicy that can be bound to authorizationpolicylabel. -*/ + */ type Authorizationpolicylabelauthorizationpolicybinding struct { /** * Name of the authorization policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of invocation. Available settings function as follows: @@ -41,16 +41,14 @@ type Authorizationpolicylabelauthorizationpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the authorization policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then either forward the request or response to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicylabel_binding.go b/resource/config/authorizationpolicylabel_binding.go similarity index 93% rename from resource/config/authorization/authorizationpolicylabel_binding.go rename to resource/config/authorizationpolicylabel_binding.go index 1f1e35b..dc29d2d 100644 --- a/resource/config/authorization/authorizationpolicylabel_binding.go +++ b/resource/config/authorizationpolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** -* Binding object which returns the resources bound to authorizationpolicylabel_binding. -*/ +* Binding object which returns the resources bound to authorizationpolicylabel_binding. + */ type Authorizationpolicylabelbinding struct { /** * Name of the authorization policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/authorization/authorizationpolicylabel_policy_binding.go b/resource/config/authorizationpolicylabel_policy_binding.go similarity index 97% rename from resource/config/authorization/authorizationpolicylabel_policy_binding.go rename to resource/config/authorizationpolicylabel_policy_binding.go index abc6c2d..b02b87b 100644 --- a/resource/config/authorization/authorizationpolicylabel_policy_binding.go +++ b/resource/config/authorizationpolicylabel_policy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package authorization +package config /** * Binding class showing the policy that can be bound to authorizationpolicylabel. -*/ + */ type Authorizationpolicylabelpolicybinding struct { /** * Name of the authorization policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of invocation. Available settings function as follows: @@ -41,16 +41,14 @@ type Authorizationpolicylabelpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the authorization policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then either forward the request or response to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/autoscale/autoscaleaction.go b/resource/config/autoscaleaction.go similarity index 95% rename from resource/config/autoscale/autoscaleaction.go rename to resource/config/autoscaleaction.go index 6c4af19..530f42c 100644 --- a/resource/config/autoscale/autoscaleaction.go +++ b/resource/config/autoscaleaction.go @@ -12,41 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package autoscale +package config /** * Configuration for autoscale action resource. -*/ + */ type Autoscaleaction struct { /** * ActionScale action name. - */ + */ Name string `json:"name,omitempty"` /** * The type of action. - */ + */ Type string `json:"type,omitempty"` /** * AutoScale profile name. - */ + */ Profilename string `json:"profilename,omitempty"` /** * Parameters to use in the action - */ + */ Parameters string `json:"parameters,omitempty"` /** * Time in minutes a VM is kept in inactive state before destroying - */ + */ Vmdestroygraceperiod int `json:"vmdestroygraceperiod,omitempty"` /** * Time in seconds no other policy is evaluated or action is taken - */ + */ Quiettime int `json:"quiettime,omitempty"` /** * Name of the vserver on which autoscale action has to be taken. - */ + */ Vserver string `json:"vserver,omitempty"` - } diff --git a/resource/config/autoscale/autoscalepolicy.go b/resource/config/autoscalepolicy.go similarity index 90% rename from resource/config/autoscale/autoscalepolicy.go rename to resource/config/autoscalepolicy.go index 3ef303c..e81d98d 100644 --- a/resource/config/autoscale/autoscalepolicy.go +++ b/resource/config/autoscalepolicy.go @@ -12,43 +12,42 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package autoscale +package config /** * Configuration for Autoscale policy resource. -*/ + */ type Autoscalepolicy struct { /** * The name of the autoscale policy. - */ + */ Name string `json:"name,omitempty"` /** * The rule associated with the policy. - */ + */ Rule string `json:"rule,omitempty"` /** * The autoscale profile associated with the policy. - */ + */ Action string `json:"action,omitempty"` /** * Comments associated with this autoscale policy. - */ + */ Comment string `json:"comment,omitempty"` /** * The log action associated with the autoscale policy - */ + */ Logaction string `json:"logaction,omitempty"` /** * The new name of the autoscale policy. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Undefhits string `json:"undefhits,omitempty"` - Priority string `json:"priority,omitempty"` - + Priority string `json:"priority,omitempty"` } diff --git a/resource/config/autoscale/autoscalepolicy_binding.go b/resource/config/autoscalepolicy_binding.go similarity index 87% rename from resource/config/autoscale/autoscalepolicy_binding.go rename to resource/config/autoscalepolicy_binding.go index dc10ff3..5e08887 100644 --- a/resource/config/autoscale/autoscalepolicy_binding.go +++ b/resource/config/autoscalepolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package autoscale +package config /** -* Binding object which returns the resources bound to autoscalepolicy_binding. -*/ +* Binding object which returns the resources bound to autoscalepolicy_binding. + */ type Autoscalepolicybinding struct { /** - * The name of the autoscale policy.
Minimum value = - */ + * The name of the autoscale policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/autoscale/autoscalepolicy_nstimer_binding.go b/resource/config/autoscalepolicy_nstimer_binding.go similarity index 96% rename from resource/config/autoscale/autoscalepolicy_nstimer_binding.go rename to resource/config/autoscalepolicy_nstimer_binding.go index 12f69cd..c81291e 100644 --- a/resource/config/autoscale/autoscalepolicy_nstimer_binding.go +++ b/resource/config/autoscalepolicy_nstimer_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package autoscale +package config /** * Binding class showing the nstimer that can be bound to autoscalepolicy. -*/ + */ type Autoscalepolicynstimerbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The name of the autoscale policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/autoscale/autoscalepolicy_timer_binding.go b/resource/config/autoscalepolicy_timer_binding.go similarity index 96% rename from resource/config/autoscale/autoscalepolicy_timer_binding.go rename to resource/config/autoscalepolicy_timer_binding.go index fbb0849..5499a49 100644 --- a/resource/config/autoscale/autoscalepolicy_timer_binding.go +++ b/resource/config/autoscalepolicy_timer_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package autoscale +package config /** * Binding class showing the timer that can be bound to autoscalepolicy. -*/ + */ type Autoscalepolicytimerbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The name of the autoscale policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/autoscale/autoscaleprofile.go b/resource/config/autoscaleprofile.go similarity index 95% rename from resource/config/autoscale/autoscaleprofile.go rename to resource/config/autoscaleprofile.go index 3a31b42..b33c8ba 100644 --- a/resource/config/autoscale/autoscaleprofile.go +++ b/resource/config/autoscaleprofile.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package autoscale +package config /** * Configuration for autoscale profile resource. -*/ + */ type Autoscaleprofile struct { /** * AutoScale profile name. - */ + */ Name string `json:"name,omitempty"` /** * The type of profile. - */ + */ Type string `json:"type,omitempty"` /** * URL providing the service - */ + */ Url string `json:"url,omitempty"` /** * api key for authentication with service - */ + */ Apikey string `json:"apikey,omitempty"` /** * shared secret for authentication with service - */ + */ Sharedsecret string `json:"sharedsecret,omitempty"` - } diff --git a/resource/config/azure/azureapplication.go b/resource/config/azureapplication.go similarity index 97% rename from resource/config/azure/azureapplication.go rename to resource/config/azureapplication.go index 83e320e..0f3cf37 100644 --- a/resource/config/azure/azureapplication.go +++ b/resource/config/azureapplication.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package azure +package config /** * Configuration for Azure Application resource. -*/ + */ type Azureapplication struct { /** * Name for the application. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the application is created.', @@ -27,23 +27,22 @@ type Azureapplication struct { Name string `json:"name,omitempty"` /** * Application ID that is generated when an application is created in Azure Active Directory using either the Azure CLI or the Azure portal (GUI) - */ + */ Clientid string `json:"clientid,omitempty"` /** * Password for the application configured in Azure Active Directory. The password is specified in the Azure CLI or generated in the Azure portal (GUI). - */ + */ Clientsecret string `json:"clientsecret,omitempty"` /** * ID of the directory inside Azure Active Directory in which the application was created - */ + */ Tenantid string `json:"tenantid,omitempty"` /** * Vault resource for which access token is granted. Example : vault.azure.net - */ + */ Vaultresource string `json:"vaultresource,omitempty"` /** * URL from where access token can be obtained. If the token end point is not specified, the default value is https://login.microsoftonline.com/. - */ + */ Tokenendpoint string `json:"tokenendpoint,omitempty"` - } diff --git a/resource/config/azure/azurekeyvault.go b/resource/config/azurekeyvault.go similarity index 98% rename from resource/config/azure/azurekeyvault.go rename to resource/config/azurekeyvault.go index 385ff8e..b9709c1 100644 --- a/resource/config/azure/azurekeyvault.go +++ b/resource/config/azurekeyvault.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package azure +package config /** * Configuration for Azure Key Vault entity resource. -*/ + */ type Azurekeyvault struct { /** * Name for the Key Vault. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the Key Vault is created. @@ -27,15 +27,14 @@ type Azurekeyvault struct { Name string `json:"name,omitempty"` /** * Name of the Key Vault configured in Azure cloud using either the Azure CLI or the Azure portal (GUI) with complete domain name. Example: Test.vault.azure.net. - */ + */ Azurevaultname string `json:"azurevaultname,omitempty"` /** * Name of the Azure Application object created on the ADC appliance. This object will be used for authentication with Azure Active Directory - */ + */ Azureapplication string `json:"azureapplication,omitempty"` //------- Read only Parameter ---------; State string `json:"state,omitempty"` - } diff --git a/resource/config/bfd/bfdsession.go b/resource/config/bfd/bfdsession.go deleted file mode 100644 index 8b604fd..0000000 --- a/resource/config/bfd/bfdsession.go +++ /dev/null @@ -1,54 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package bfd - -/** -* Configuration for BFD configuration resource. -*/ -type Bfdsession struct { - /** - * IPV4 or IPV6 Address of Local Node - */ - Localip string `json:"localip,omitempty"` - /** - * IPV4 or IPV6 Address of Remote Node - */ - Remoteip string `json:"remoteip,omitempty"` - - //------- Read only Parameter ---------; - - State string `json:"state,omitempty"` - Localport string `json:"localport,omitempty"` - Remoteport string `json:"remoteport,omitempty"` - Minimumtransmitinterval string `json:"minimumtransmitinterval,omitempty"` - Negotiatedminimumtransmitinterval string `json:"negotiatedminimumtransmitinterval,omitempty"` - Minimumreceiveinterval string `json:"minimumreceiveinterval,omitempty"` - Negotiatedminimumreceiveinterval string `json:"negotiatedminimumreceiveinterval,omitempty"` - Multiplier string `json:"multiplier,omitempty"` - Remotemultiplier string `json:"remotemultiplier,omitempty"` - Vlan string `json:"vlan,omitempty"` - Localdiagnotic string `json:"localdiagnotic,omitempty"` - Localdiscriminator string `json:"localdiscriminator,omitempty"` - Remotediscriminator string `json:"remotediscriminator,omitempty"` - Passive string `json:"passive,omitempty"` - Multihop string `json:"multihop,omitempty"` - Admindown string `json:"admindown,omitempty"` - Originalownerpe string `json:"originalownerpe,omitempty"` - Currentownerpe string `json:"currentownerpe,omitempty"` - Ownernode string `json:"ownernode,omitempty"` - -} diff --git a/resource/config/bfdsession.go b/resource/config/bfdsession.go new file mode 100644 index 0000000..6467866 --- /dev/null +++ b/resource/config/bfdsession.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for BFD configuration resource. + */ +type Bfdsession struct { + /** + * IPV4 or IPV6 Address of Local Node + */ + Localip string `json:"localip,omitempty"` + /** + * IPV4 or IPV6 Address of Remote Node + */ + Remoteip string `json:"remoteip,omitempty"` + + //------- Read only Parameter ---------; + + State string `json:"state,omitempty"` + Localport string `json:"localport,omitempty"` + Remoteport string `json:"remoteport,omitempty"` + Minimumtransmitinterval string `json:"minimumtransmitinterval,omitempty"` + Negotiatedminimumtransmitinterval string `json:"negotiatedminimumtransmitinterval,omitempty"` + Minimumreceiveinterval string `json:"minimumreceiveinterval,omitempty"` + Negotiatedminimumreceiveinterval string `json:"negotiatedminimumreceiveinterval,omitempty"` + Multiplier string `json:"multiplier,omitempty"` + Remotemultiplier string `json:"remotemultiplier,omitempty"` + Vlan string `json:"vlan,omitempty"` + Localdiagnotic string `json:"localdiagnotic,omitempty"` + Localdiscriminator string `json:"localdiscriminator,omitempty"` + Remotediscriminator string `json:"remotediscriminator,omitempty"` + Passive string `json:"passive,omitempty"` + Multihop string `json:"multihop,omitempty"` + Admindown string `json:"admindown,omitempty"` + Originalownerpe string `json:"originalownerpe,omitempty"` + Currentownerpe string `json:"currentownerpe,omitempty"` + Ownernode string `json:"ownernode,omitempty"` +} diff --git a/resource/config/bot/botglobal_binding.go b/resource/config/botglobal_binding.go similarity index 95% rename from resource/config/bot/botglobal_binding.go rename to resource/config/botglobal_binding.go index bf7107a..68ab7f8 100644 --- a/resource/config/bot/botglobal_binding.go +++ b/resource/config/botglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** -* Binding object which returns the resources bound to botglobal_binding. -*/ +* Binding object which returns the resources bound to botglobal_binding. + */ type Botglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botglobal_botpolicy_binding.go b/resource/config/botglobal_botpolicy_binding.go similarity index 95% rename from resource/config/bot/botglobal_botpolicy_binding.go rename to resource/config/botglobal_botpolicy_binding.go index cb976f1..2f0daf8 100644 --- a/resource/config/bot/botglobal_botpolicy_binding.go +++ b/resource/config/botglobal_botpolicy_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the botpolicy that can be bound to botglobal. -*/ + */ type Botglobalbotpolicybinding struct { /** * Name of the bot policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the bind point whose policies you want to display. Available settings function as follows: @@ -32,15 +32,15 @@ type Botglobalbotpolicybinding struct { Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of invocation, Available settings function as follows: @@ -50,17 +50,15 @@ type Botglobalbotpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke. If the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is policylabel. - */ + */ Labelname string `json:"labelname,omitempty"` /** * number of polices bound to label. - */ + */ Numpol int `json:"numpol,omitempty"` /** * flowtype of the bound bot policy. - */ - Flowtype int `json:"flowtype,omitempty"` + */ + Flowtype int `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botglobal_policy_binding.go b/resource/config/botglobal_policy_binding.go similarity index 95% rename from resource/config/bot/botglobal_policy_binding.go rename to resource/config/botglobal_policy_binding.go index 000b548..b8477c4 100644 --- a/resource/config/bot/botglobal_policy_binding.go +++ b/resource/config/botglobal_policy_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the policy that can be bound to botglobal. -*/ + */ type Botglobalpolicybinding struct { /** * Name of the bot policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the bind point whose policies you want to display. Available settings function as follows: @@ -32,15 +32,15 @@ type Botglobalpolicybinding struct { Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of invocation, Available settings function as follows: @@ -50,17 +50,15 @@ type Botglobalpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke. If the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is policylabel. - */ + */ Labelname string `json:"labelname,omitempty"` /** * number of polices bound to label. - */ + */ Numpol uint32 `json:"numpol,omitempty"` /** * flowtype of the bound bot policy. - */ - Flowtype uint32 `json:"flowtype,omitempty"` + */ + Flowtype uint32 `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicy.go b/resource/config/botpolicy.go similarity index 91% rename from resource/config/bot/botpolicy.go rename to resource/config/botpolicy.go index 2eaac84..455ce9e 100644 --- a/resource/config/bot/botpolicy.go +++ b/resource/config/botpolicy.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Configuration for Bot policy resource. -*/ + */ type Botpolicy struct { /** * Name for the bot policy. @@ -29,26 +29,26 @@ type Botpolicy struct { Name string `json:"name,omitempty"` /** * Expression that the policy uses to determine whether to apply bot profile on the specified request. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the bot profile to apply if the request matches this bot policy. - */ + */ Profilename string `json:"profilename,omitempty"` /** * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * Any type of information about this bot policy. - */ + */ Comment string `json:"comment,omitempty"` /** * Name of the messagelog action to use for requests that match this policy. - */ + */ Logaction string `json:"logaction,omitempty"` /** - * New name for the bot policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + * New name for the bot policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my bot policy" or 'my bot policy'). */ @@ -56,9 +56,8 @@ type Botpolicy struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Undefhits string `json:"undefhits,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/bot/botpolicy_binding.go b/resource/config/botpolicy_binding.go similarity index 95% rename from resource/config/bot/botpolicy_binding.go rename to resource/config/botpolicy_binding.go index 5a94102..4077238 100644 --- a/resource/config/bot/botpolicy_binding.go +++ b/resource/config/botpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** -* Binding object which returns the resources bound to botpolicy_binding. -*/ +* Binding object which returns the resources bound to botpolicy_binding. + */ type Botpolicybinding struct { /** * Name of the bot policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicy_botglobal_binding.go b/resource/config/botpolicy_botglobal_binding.go similarity index 96% rename from resource/config/bot/botpolicy_botglobal_binding.go rename to resource/config/botpolicy_botglobal_binding.go index ddd5bcf..4f7db5b 100644 --- a/resource/config/bot/botpolicy_botglobal_binding.go +++ b/resource/config/botpolicy_botglobal_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the botglobal that can be bound to botpolicy. -*/ + */ type Botpolicybotglobalbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the bot policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicy_botpolicylabel_binding.go b/resource/config/botpolicy_botpolicylabel_binding.go similarity index 96% rename from resource/config/bot/botpolicy_botpolicylabel_binding.go rename to resource/config/botpolicy_botpolicylabel_binding.go index 7c426b7..894c0a3 100644 --- a/resource/config/bot/botpolicy_botpolicylabel_binding.go +++ b/resource/config/botpolicy_botpolicylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the botpolicylabel that can be bound to botpolicy. -*/ + */ type Botpolicybotpolicylabelbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the bot policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicy_csvserver_binding.go b/resource/config/botpolicy_csvserver_binding.go similarity index 96% rename from resource/config/bot/botpolicy_csvserver_binding.go rename to resource/config/botpolicy_csvserver_binding.go index c1373f6..74a3fbf 100644 --- a/resource/config/bot/botpolicy_csvserver_binding.go +++ b/resource/config/botpolicy_csvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the csvserver that can be bound to botpolicy. -*/ + */ type Botpolicycsvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the bot policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicy_global_binding.go b/resource/config/botpolicy_global_binding.go similarity index 96% rename from resource/config/bot/botpolicy_global_binding.go rename to resource/config/botpolicy_global_binding.go index 9acc3ad..ed7417b 100644 --- a/resource/config/bot/botpolicy_global_binding.go +++ b/resource/config/botpolicy_global_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the global that can be bound to botpolicy. -*/ + */ type Botpolicyglobalbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the bot policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicy_lbvserver_binding.go b/resource/config/botpolicy_lbvserver_binding.go similarity index 96% rename from resource/config/bot/botpolicy_lbvserver_binding.go rename to resource/config/botpolicy_lbvserver_binding.go index b1aa63d..92c0d48 100644 --- a/resource/config/bot/botpolicy_lbvserver_binding.go +++ b/resource/config/botpolicy_lbvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the lbvserver that can be bound to botpolicy. -*/ + */ type Botpolicylbvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the bot policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicy_policylabel_binding.go b/resource/config/botpolicy_policylabel_binding.go similarity index 96% rename from resource/config/bot/botpolicy_policylabel_binding.go rename to resource/config/botpolicy_policylabel_binding.go index 2a6f3ac..c0f1d21 100644 --- a/resource/config/bot/botpolicy_policylabel_binding.go +++ b/resource/config/botpolicy_policylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the policylabel that can be bound to botpolicy. -*/ + */ type Botpolicypolicylabelbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the bot policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicy_vserver_binding.go b/resource/config/botpolicy_vserver_binding.go similarity index 96% rename from resource/config/bot/botpolicy_vserver_binding.go rename to resource/config/botpolicy_vserver_binding.go index a925d3d..33f0431 100644 --- a/resource/config/bot/botpolicy_vserver_binding.go +++ b/resource/config/botpolicy_vserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the vserver that can be bound to botpolicy. -*/ + */ type Botpolicyvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the bot policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicylabel.go b/resource/config/botpolicylabel.go similarity index 96% rename from resource/config/bot/botpolicylabel.go rename to resource/config/botpolicylabel.go index 0d31975..03ac53e 100644 --- a/resource/config/bot/botpolicylabel.go +++ b/resource/config/botpolicylabel.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Configuration for Bot policy label resource. -*/ + */ type Botpolicylabel struct { /** * Name for the bot policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the responder policy label is added. @@ -28,16 +28,15 @@ type Botpolicylabel struct { Labelname string `json:"labelname,omitempty"` /** * Any comments to preserve information about this bot policy label. - */ + */ Comment string `json:"comment,omitempty"` /** * New name for the bot policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - + Hits string `json:"hits,omitempty"` } diff --git a/resource/config/bot/botpolicylabel_binding.go b/resource/config/botpolicylabel_binding.go similarity index 94% rename from resource/config/bot/botpolicylabel_binding.go rename to resource/config/botpolicylabel_binding.go index 27d6482..13b2bf3 100644 --- a/resource/config/bot/botpolicylabel_binding.go +++ b/resource/config/botpolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** -* Binding object which returns the resources bound to botpolicylabel_binding. -*/ +* Binding object which returns the resources bound to botpolicylabel_binding. + */ type Botpolicylabelbinding struct { /** * Name of the bot policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicylabel_botpolicy_binding.go b/resource/config/botpolicylabel_botpolicy_binding.go similarity index 97% rename from resource/config/bot/botpolicylabel_botpolicy_binding.go rename to resource/config/botpolicylabel_botpolicy_binding.go index a0a741c..54ed8a7 100644 --- a/resource/config/bot/botpolicylabel_botpolicy_binding.go +++ b/resource/config/botpolicylabel_botpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the botpolicy that can be bound to botpolicylabel. -*/ + */ type Botpolicylabelbotpolicybinding struct { /** * Name of the bot policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label and evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Available settings function as follows: @@ -43,14 +43,12 @@ type Botpolicylabelbotpolicybinding struct { */ Labeltype string `json:"labeltype,omitempty"` /** - * * If labelType is policylabel, name of the policy label to invoke. + * * If labelType is policylabel, name of the policy label to invoke. * If labelType is vserver, name of the virtual server. */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the bot policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicylabel_policy_binding.go b/resource/config/botpolicylabel_policy_binding.go similarity index 97% rename from resource/config/bot/botpolicylabel_policy_binding.go rename to resource/config/botpolicylabel_policy_binding.go index 41b5580..1f0ad7e 100644 --- a/resource/config/bot/botpolicylabel_policy_binding.go +++ b/resource/config/botpolicylabel_policy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the policy that can be bound to botpolicylabel. -*/ + */ type Botpolicylabelpolicybinding struct { /** * Name of the bot policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label and evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Available settings function as follows: @@ -43,14 +43,12 @@ type Botpolicylabelpolicybinding struct { */ Labeltype string `json:"labeltype,omitempty"` /** - * * If labelType is policylabel, name of the policy label to invoke. + * * If labelType is policylabel, name of the policy label to invoke. * If labelType is vserver, name of the virtual server. */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the bot policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botpolicylabel_policybinding_binding.go b/resource/config/botpolicylabel_policybinding_binding.go similarity index 97% rename from resource/config/bot/botpolicylabel_policybinding_binding.go rename to resource/config/botpolicylabel_policybinding_binding.go index 491559d..3815585 100644 --- a/resource/config/bot/botpolicylabel_policybinding_binding.go +++ b/resource/config/botpolicylabel_policybinding_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the policybinding that can be bound to botpolicylabel. -*/ + */ type Botpolicylabelpolicybindingbinding struct { /** * Name of the bot policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label and evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Available settings function as follows: @@ -43,14 +43,12 @@ type Botpolicylabelpolicybindingbinding struct { */ Labeltype string `json:"labeltype,omitempty"` /** - * * If labelType is policylabel, name of the policy label to invoke. + * * If labelType is policylabel, name of the policy label to invoke. * If labelType is vserver, name of the virtual server. */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the bot policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile.go b/resource/config/botprofile.go similarity index 97% rename from resource/config/bot/botprofile.go rename to resource/config/botprofile.go index 0b80bf5..380cc23 100644 --- a/resource/config/bot/botprofile.go +++ b/resource/config/botprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Configuration for Bot profile resource. -*/ + */ type Botprofile struct { /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -28,71 +28,71 @@ type Botprofile struct { Name string `json:"name,omitempty"` /** * Name of object containing bot static signature details. - */ + */ Signature string `json:"signature,omitempty"` /** * URL that Bot protection uses as the Error URL. - */ + */ Errorurl string `json:"errorurl,omitempty"` /** * URL that Bot protection uses as the Trap URL. - */ + */ Trapurl string `json:"trapurl,omitempty"` /** * Any comments about the purpose of profile, or other useful information about the profile. - */ + */ Comment string `json:"comment,omitempty"` /** * Enable white-list bot detection. - */ + */ Botenablewhitelist string `json:"bot_enable_white_list,omitempty"` /** * Enable black-list bot detection. - */ + */ Botenableblacklist string `json:"bot_enable_black_list,omitempty"` /** * Enable rate-limit bot detection. - */ + */ Botenableratelimit string `json:"bot_enable_rate_limit,omitempty"` /** * Enable device-fingerprint bot detection - */ + */ Devicefingerprint string `json:"devicefingerprint,omitempty"` /** * Action to be taken for device-fingerprint based bot detection. - */ + */ Devicefingerprintaction []string `json:"devicefingerprintaction,omitempty"` /** * Enable IP-reputation bot detection. - */ + */ Botenableipreputation string `json:"bot_enable_ip_reputation,omitempty"` /** * Enable trap bot detection. - */ + */ Trap string `json:"trap,omitempty"` /** * Action to be taken for bot trap based bot detection. - */ + */ Trapaction []string `json:"trapaction,omitempty"` /** * Actions to be taken if no User-Agent header in the request (Applicable if Signature check is enabled). - */ + */ Signaturenouseragentheaderaction []string `json:"signaturenouseragentheaderaction,omitempty"` /** * Actions to be taken if multiple User-Agent headers are seen in a request (Applicable if Signature check is enabled). Log action should be combined with other actions - */ + */ Signaturemultipleuseragentheaderaction []string `json:"signaturemultipleuseragentheaderaction,omitempty"` /** * Enable TPS. - */ + */ Botenabletps string `json:"bot_enable_tps,omitempty"` /** * Enabling bot device fingerprint protection for mobile clients - */ + */ Devicefingerprintmobile []string `json:"devicefingerprintmobile,omitempty"` /** * Expression to get the client IP. - */ + */ Clientipexpression string `json:"clientipexpression,omitempty"` /** * Name of the JavaScript file that the Bot Management feature will insert in the response for keyboard-mouse based detection. @@ -103,16 +103,15 @@ type Botprofile struct { Kmjavascriptname string `json:"kmjavascriptname,omitempty"` /** * Enable keyboard-mouse based bot detection. - */ + */ Kmdetection string `json:"kmdetection,omitempty"` /** * Size of the KM data send by the browser, needs to be processed on ADC - */ + */ Kmeventspostbodylimit int `json:"kmeventspostbodylimit,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/bot/botprofile_binding.go b/resource/config/botprofile_binding.go similarity index 88% rename from resource/config/bot/botprofile_binding.go rename to resource/config/botprofile_binding.go index 98c6140..7df958b 100644 --- a/resource/config/bot/botprofile_binding.go +++ b/resource/config/botprofile_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** -* Binding object which returns the resources bound to botprofile_binding. -*/ +* Binding object which returns the resources bound to botprofile_binding. + */ type Botprofilebinding struct { /** - * Name of the bot management profile.
Minimum value = - */ + * Name of the bot management profile.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_blacklist_binding.go b/resource/config/botprofile_blacklist_binding.go similarity index 97% rename from resource/config/bot/botprofile_blacklist_binding.go rename to resource/config/botprofile_blacklist_binding.go index 224276f..7a56cae 100644 --- a/resource/config/bot/botprofile_blacklist_binding.go +++ b/resource/config/botprofile_blacklist_binding.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the blacklist that can be bound to botprofile. -*/ + */ type Botprofileblacklistbinding struct { /** * Blacklist binding. Maximum 32 bindings can be configured per profile for Blacklist detection. - */ + */ Botblacklist bool `json:"bot_blacklist,omitempty"` /** * Type of the black-list entry. - */ + */ Botblacklisttype string `json:"bot_blacklist_type,omitempty"` /** * Enabled or disbaled black-list binding. - */ + */ Botblacklistenabled string `json:"bot_blacklist_enabled,omitempty"` /** * Value of the bot black-list entry. - */ + */ Botblacklistvalue string `json:"bot_blacklist_value,omitempty"` /** * One or more actions to be taken if bot is detected based on this Blacklist binding. Only LOG action can be combined with DROP or RESET action. - */ + */ Botblacklistaction []string `json:"bot_blacklist_action,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -54,6 +54,4 @@ type Botprofileblacklistbinding struct { If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_captcha_binding.go b/resource/config/botprofile_captcha_binding.go similarity index 97% rename from resource/config/bot/botprofile_captcha_binding.go rename to resource/config/botprofile_captcha_binding.go index 3cf140a..fb0de90 100644 --- a/resource/config/bot/botprofile_captcha_binding.go +++ b/resource/config/botprofile_captcha_binding.go @@ -12,57 +12,57 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the captcha that can be bound to botprofile. -*/ + */ type Botprofilecaptchabinding struct { /** * Captcha action binding. For each URL, only one binding is allowed. To update the values of an existing URL binding, user has to first unbind that binding, and then needs to bind the URL again with new values. Maximum 30 bindings can be configured per profile. - */ + */ Captcharesource bool `json:"captcharesource,omitempty"` /** * URL for which the Captcha action, if configured under IP reputation, TPS or device fingerprint, need to be applied. - */ + */ Botcaptchaurl string `json:"bot_captcha_url,omitempty"` /** * Enable or disable the captcha binding. - */ + */ Botcaptchaenabled string `json:"bot_captcha_enabled,omitempty"` /** * Wait time in seconds for which ADC needs to wait for the Captcha response. This is to avoid DOS attacks. - */ + */ Waittime int `json:"waittime,omitempty"` /** * Time (in seconds) duration for which no new captcha challenge is sent after current captcha challenge has been answered successfully. - */ + */ Graceperiod int `json:"graceperiod,omitempty"` /** * Time (in seconds) duration for which client which failed captcha need to wait until allowed to try again. The requests from this client are silently dropped during the mute period. - */ + */ Muteperiod int `json:"muteperiod,omitempty"` /** * Length of body request (in Bytes) up to (equal or less than) which captcha challenge will be provided to client. Above this length threshold the request will be dropped. This is to avoid DOS and DDOS attacks. - */ + */ Requestsizelimit int `json:"requestsizelimit,omitempty"` /** * Number of times client can retry solving the captcha. - */ + */ Retryattempts int `json:"retryattempts,omitempty"` /** * One or more actions to be taken when client fails captcha challenge. Only, log action can be configured with DROP, REDIRECT or RESET action. - */ + */ Botcaptchaaction []string `json:"bot_captcha_action,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -70,6 +70,4 @@ type Botprofilecaptchabinding struct { If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_ipreputation_binding.go b/resource/config/botprofile_ipreputation_binding.go similarity index 98% rename from resource/config/bot/botprofile_ipreputation_binding.go rename to resource/config/botprofile_ipreputation_binding.go index 8a9bc53..95cc811 100644 --- a/resource/config/bot/botprofile_ipreputation_binding.go +++ b/resource/config/botprofile_ipreputation_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the ipreputation that can be bound to botprofile. -*/ + */ type Botprofileipreputationbinding struct { /** * IP reputation binding. For each category, only one binding is allowed. To update the values of an existing binding, user has to first unbind that binding, and then needs to bind again with the new values. - */ + */ Botipreputation bool `json:"bot_ipreputation,omitempty"` /** * IP Repuation category. Following IP Reuputation categories are allowed: @@ -40,19 +40,19 @@ type Botprofileipreputationbinding struct { Category string `json:"category,omitempty"` /** * Enabled or disabled IP-repuation binding. - */ + */ Botiprepenabled string `json:"bot_iprep_enabled,omitempty"` /** * One or more actions to be taken if bot is detected based on this IP Reputation binding. Only LOG action can be combinded with DROP, RESET, REDIRECT or MITIGATION action. - */ + */ Botiprepaction []string `json:"bot_iprep_action,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -60,6 +60,4 @@ type Botprofileipreputationbinding struct { If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_kmdetectionexpr_binding.go b/resource/config/botprofile_kmdetectionexpr_binding.go similarity index 97% rename from resource/config/bot/botprofile_kmdetectionexpr_binding.go rename to resource/config/botprofile_kmdetectionexpr_binding.go index d503141..275d90f 100644 --- a/resource/config/bot/botprofile_kmdetectionexpr_binding.go +++ b/resource/config/botprofile_kmdetectionexpr_binding.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the kmdetectionexpr that can be bound to botprofile. -*/ + */ type Botprofilekmdetectionexprbinding struct { /** * Keyboard-mouse based detection binding. For each name, only one binding is allowed. To update the values of an existing binding, user has to first unbind that binding, then needs to bind again with new vlaues. Maximum 30 bindings can be configured per profile. - */ + */ Kmdetectionexpr bool `json:"kmdetectionexpr,omitempty"` /** * Name of the keyboard-mouse expression object. - */ + */ Botkmexpressionname string `json:"bot_km_expression_name,omitempty"` /** * JavaScript file for keyboard-mouse detection, would be inserted if the result of the expression is true. - */ + */ Botkmexpressionvalue string `json:"bot_km_expression_value,omitempty"` /** * Enable or disable the keyboard-mouse based binding. - */ + */ Botkmdetectionenabled string `json:"bot_km_detection_enabled,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -48,8 +48,6 @@ type Botprofilekmdetectionexprbinding struct { Name string `json:"name,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_logexpression_binding.go b/resource/config/botprofile_logexpression_binding.go similarity index 97% rename from resource/config/bot/botprofile_logexpression_binding.go rename to resource/config/botprofile_logexpression_binding.go index 23c2aa6..2855bfc 100644 --- a/resource/config/bot/botprofile_logexpression_binding.go +++ b/resource/config/botprofile_logexpression_binding.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the logexpression that can be bound to botprofile. -*/ + */ type Botprofilelogexpressionbinding struct { /** * Log expression binding. - */ + */ Logexpression bool `json:"logexpression,omitempty"` /** * Name of the log expression object. - */ + */ Botlogexpressionname string `json:"bot_log_expression_name,omitempty"` /** * Expression whose result to be logged when violation happened on the bot profile. - */ + */ Botlogexpressionvalue string `json:"bot_log_expression_value,omitempty"` /** * Enable or disable the log expression binding. - */ + */ Botlogexpressionenabled string `json:"bot_log_expression_enabled,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -48,8 +48,6 @@ type Botprofilelogexpressionbinding struct { Name string `json:"name,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_ratelimit_binding.go b/resource/config/botprofile_ratelimit_binding.go similarity index 97% rename from resource/config/bot/botprofile_ratelimit_binding.go rename to resource/config/botprofile_ratelimit_binding.go index 0535542..eedd4ef 100644 --- a/resource/config/bot/botprofile_ratelimit_binding.go +++ b/resource/config/botprofile_ratelimit_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the ratelimit that can be bound to botprofile. -*/ + */ type Botprofileratelimitbinding struct { /** * Rate-limit binding. Maximum 30 bindings can be configured per profile for rate-limit detection. For SOURCE_IP type, only one binding can be configured, and for URL type, only one binding is allowed per URL, and for SESSION type, only one binding is allowed for a cookie name. To update the values of an existing binding, user has to first unbind that binding, and then needs to bind again with new values. - */ + */ Botratelimit bool `json:"bot_ratelimit,omitempty"` /** * Rate-limiting type Following rate-limiting types are allowed: @@ -33,35 +33,35 @@ type Botprofileratelimitbinding struct { Botratelimittype string `json:"bot_rate_limit_type,omitempty"` /** * Enable or disable rate-limit binding. - */ + */ Botratelimitenabled string `json:"bot_rate_limit_enabled,omitempty"` /** * URL for the resource based rate-limiting. - */ + */ Botratelimiturl string `json:"bot_rate_limit_url,omitempty"` /** * Cookie name which is used to identify the session for session rate-limiting. - */ + */ Cookiename string `json:"cookiename,omitempty"` /** * Maximum number of requests that are allowed in this session in the given period time. - */ + */ Rate int `json:"rate,omitempty"` /** * Time interval during which requests are tracked to check if they cross the given rate. - */ + */ Timeslice int `json:"timeslice,omitempty"` /** * One or more actions to be taken when the current rate becomes more than the configured rate. Only LOG action can be combined with DROP, REDIRECT or RESET action. - */ + */ Botratelimitaction []string `json:"bot_rate_limit_action,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -69,6 +69,4 @@ type Botprofileratelimitbinding struct { If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_tps_binding.go b/resource/config/botprofile_tps_binding.go similarity index 97% rename from resource/config/bot/botprofile_tps_binding.go rename to resource/config/botprofile_tps_binding.go index beb5c9c..cd749c9 100644 --- a/resource/config/bot/botprofile_tps_binding.go +++ b/resource/config/botprofile_tps_binding.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the tps that can be bound to botprofile. -*/ + */ type Botprofiletpsbinding struct { /** * TPS binding. For each type only binding can be configured. To update the values of an existing binding, user has to first unbind that binding, and then needs to bind again with new values. - */ + */ Bottps bool `json:"bot_tps,omitempty"` /** * Type of TPS binding. - */ + */ Bottpstype string `json:"bot_tps_type,omitempty"` /** * Maximum number of requests that are allowed from (or to) a IP, Geolocation, URL or Host in 1 second time interval. - */ + */ Threshold int `json:"threshold,omitempty"` /** * Maximum percentage increase in the requests from (or to) a IP, Geolocation, URL or Host in 30 minutes interval. - */ + */ Percentage int `json:"percentage,omitempty"` /** * One to more actions to be taken if bot is detected based on this TPS binding. Only LOG action can be combined with DROP, RESET, REDIRECT, or MITIGIATION action. - */ + */ Bottpsaction []string `json:"bot_tps_action,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -54,6 +54,4 @@ type Botprofiletpsbinding struct { If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_trapinsertionurl_binding.go b/resource/config/botprofile_trapinsertionurl_binding.go similarity index 97% rename from resource/config/bot/botprofile_trapinsertionurl_binding.go rename to resource/config/botprofile_trapinsertionurl_binding.go index 0d294a3..79578da 100644 --- a/resource/config/bot/botprofile_trapinsertionurl_binding.go +++ b/resource/config/botprofile_trapinsertionurl_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the trapinsertionurl that can be bound to botprofile. -*/ + */ type Botprofiletrapinsertionurlbinding struct { /** * Bind the trap URL for the configured request URLs. Maximum 30 bindings can be configured per profile. - */ + */ Trapinsertionurl bool `json:"trapinsertionurl,omitempty"` /** * Request URL regex pattern for which Trap URL is inserted. - */ + */ Bottrapurl string `json:"bot_trap_url,omitempty"` /** * Enable or disable the request URL pattern. - */ + */ Bottrapurlinsertionenabled string `json:"bot_trap_url_insertion_enabled,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -44,8 +44,6 @@ type Botprofiletrapinsertionurlbinding struct { Name string `json:"name,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botprofile_whitelist_binding.go b/resource/config/botprofile_whitelist_binding.go similarity index 97% rename from resource/config/bot/botprofile_whitelist_binding.go rename to resource/config/botprofile_whitelist_binding.go index b5173f3..f187605 100644 --- a/resource/config/bot/botprofile_whitelist_binding.go +++ b/resource/config/botprofile_whitelist_binding.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Binding class showing the whitelist that can be bound to botprofile. -*/ + */ type Botprofilewhitelistbinding struct { /** * Whitelist binding. Maximum 32 bindings can be configured per profile for Whitelist detection. - */ + */ Botwhitelist bool `json:"bot_whitelist,omitempty"` /** * Type of the white-list entry. - */ + */ Botwhitelisttype string `json:"bot_whitelist_type,omitempty"` /** * Enabled or disabled white-list binding. - */ + */ Botwhitelistenabled string `json:"bot_whitelist_enabled,omitempty"` /** * Value of bot white-list entry. - */ + */ Botwhitelistvalue string `json:"bot_whitelist_value,omitempty"` /** * Enable logging for Whitelist binding. - */ + */ Log string `json:"log,omitempty"` /** * Message to be logged for this binding. - */ + */ Logmessage string `json:"logmessage,omitempty"` /** * Any comments about this binding. - */ + */ Botbindcomment string `json:"bot_bind_comment,omitempty"` /** * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. @@ -54,6 +54,4 @@ type Botprofilewhitelistbinding struct { If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/bot/botsettings.go b/resource/config/botsettings.go similarity index 97% rename from resource/config/bot/botsettings.go rename to resource/config/botsettings.go index f8ecc11..b26bd1e 100644 --- a/resource/config/bot/botsettings.go +++ b/resource/config/botsettings.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Configuration for Bot engine settings resource. -*/ + */ type Botsettings struct { /** * Profile to use when a connection does not match any policy. Default setting is " ", which sends unmatched connections back to the Citrix ADC without attempting to filter them further. - */ + */ Defaultprofile string `json:"defaultprofile,omitempty"` /** * Name of the JavaScript that the Bot Management feature uses in response. @@ -33,7 +33,7 @@ type Botsettings struct { Javascriptname string `json:"javascriptname,omitempty"` /** * Timeout, in seconds, after which a user session is terminated. - */ + */ Sessiontimeout int `json:"sessiontimeout,omitempty"` /** * Name of the SessionCookie that the Bot Management feature uses for tracking. @@ -44,40 +44,39 @@ type Botsettings struct { Sessioncookiename string `json:"sessioncookiename,omitempty"` /** * Number of requests to allow without bot session cookie if device fingerprint is enabled - */ + */ Dfprequestlimit int `json:"dfprequestlimit,omitempty"` /** * Flag used to enable/disable bot auto update signatures - */ + */ Signatureautoupdate string `json:"signatureautoupdate,omitempty"` /** * URL to download the bot signature mapping file from server - */ + */ Signatureurl string `json:"signatureurl,omitempty"` /** * Proxy Server IP to get updated signatures from AWS. - */ + */ Proxyserver string `json:"proxyserver,omitempty"` /** * Proxy Server Port to get updated signatures from AWS. - */ + */ Proxyport int `json:"proxyport,omitempty"` /** * Enable/disable trap URL auto generation. When enabled, trap URL is updated within the configured interval. - */ + */ Trapurlautogenerate string `json:"trapurlautogenerate,omitempty"` /** * Time in seconds after which trap URL is updated. - */ + */ Trapurlinterval int `json:"trapurlinterval,omitempty"` /** * Length of the auto-generated trap URL. - */ + */ Trapurllength int `json:"trapurllength,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/bot/botsignature.go b/resource/config/botsignature.go similarity index 97% rename from resource/config/bot/botsignature.go rename to resource/config/botsignature.go index 6e9c085..3d22d5c 100644 --- a/resource/config/bot/botsignature.go +++ b/resource/config/botsignature.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package bot +package config /** * Configuration for bot signatures resource. -*/ + */ type Botsignature struct { /** * Local path to and name of, or URL (protocol, host, path, and file name) for, the file in which to store the imported signature file. @@ -27,19 +27,18 @@ type Botsignature struct { Src string `json:"src,omitempty"` /** * Name to assign to the bot signature file object on the Citrix ADC. - */ + */ Name string `json:"name,omitempty"` /** * Any comments to preserve information about the signature file object. - */ + */ Comment string `json:"comment,omitempty"` /** * Overwrites the existing file - */ + */ Overwrite bool `json:"overwrite,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/network/bridgegroup.go b/resource/config/bridgegroup.go similarity index 79% rename from resource/config/network/bridgegroup.go rename to resource/config/bridgegroup.go index 07608e8..3ac1ae3 100644 --- a/resource/config/network/bridgegroup.go +++ b/resource/config/bridgegroup.go @@ -12,35 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for bridge group resource. -*/ + */ type Bridgegroup struct { /** * An integer that uniquely identifies the bridge group. - */ + */ Id int `json:"id,omitempty"` /** * Enable dynamic routing for this bridgegroup. - */ + */ Dynamicrouting string `json:"dynamicrouting,omitempty"` /** * Enable all IPv6 dynamic routing protocols on all VLANs bound to this bridgegroup. Note: For the ENABLED setting to work, you must configure IPv6 dynamic routing protocols from the VTYSH command line. - */ + */ Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` //------- Read only Parameter ---------; - Flags string `json:"flags,omitempty"` - Portbitmap string `json:"portbitmap,omitempty"` - Tagbitmap string `json:"tagbitmap,omitempty"` - Ifaces string `json:"ifaces,omitempty"` - Tagifaces string `json:"tagifaces,omitempty"` - Rnat string `json:"rnat,omitempty"` + Flags string `json:"flags,omitempty"` + Portbitmap string `json:"portbitmap,omitempty"` + Tagbitmap string `json:"tagbitmap,omitempty"` + Ifaces string `json:"ifaces,omitempty"` + Tagifaces string `json:"tagifaces,omitempty"` + Rnat string `json:"rnat,omitempty"` Partitionname string `json:"partitionname,omitempty"` - } diff --git a/resource/config/network/bridgegroup_binding.go b/resource/config/bridgegroup_binding.go similarity index 95% rename from resource/config/network/bridgegroup_binding.go rename to resource/config/bridgegroup_binding.go index 7ba6659..c9e0973 100644 --- a/resource/config/network/bridgegroup_binding.go +++ b/resource/config/bridgegroup_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to bridgegroup_binding. -*/ +* Binding object which returns the resources bound to bridgegroup_binding. + */ type Bridgegroupbinding struct { /** * The name of the bridge group.
Minimum value = 1
Maximum value = 1000 - */ + */ Id int `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/bridgegroup_ip6_binding.go b/resource/config/bridgegroup_ip6_binding.go similarity index 96% rename from resource/config/network/bridgegroup_ip6_binding.go rename to resource/config/bridgegroup_ip6_binding.go index 6bd5720..31e266f 100644 --- a/resource/config/network/bridgegroup_ip6_binding.go +++ b/resource/config/bridgegroup_ip6_binding.go @@ -12,38 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the ip6 that can be bound to bridgegroup. -*/ + */ type Bridgegroupip6binding struct { /** * The IP address assigned to the bridge group. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td uint32 `json:"td,omitempty"` /** * Temporary flag used for internal purpose. - */ + */ Rnat bool `json:"rnat,omitempty"` /** * The owner node group in a Cluster for this vlan. - */ + */ Ownergroup string `json:"ownergroup,omitempty"` /** * The integer that uniquely identifies the bridge group. - */ + */ Id uint32 `json:"id,omitempty"` /** * A subnet mask associated with the network address. - */ + */ Netmask string `json:"netmask,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/bridgegroup_ip_binding.go b/resource/config/bridgegroup_ip_binding.go similarity index 96% rename from resource/config/network/bridgegroup_ip_binding.go rename to resource/config/bridgegroup_ip_binding.go index c4fff48..b690cac 100644 --- a/resource/config/network/bridgegroup_ip_binding.go +++ b/resource/config/bridgegroup_ip_binding.go @@ -12,38 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the ip that can be bound to bridgegroup. -*/ + */ type Bridgegroupipbinding struct { /** * The IP address assigned to the bridge group. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td uint32 `json:"td,omitempty"` /** * The network mask for the subnet defined for the bridge group. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Temporary flag used for internal purpose. - */ + */ Rnat bool `json:"rnat,omitempty"` /** * The owner node group in a Cluster for this vlan. - */ + */ Ownergroup string `json:"ownergroup,omitempty"` /** * The integer that uniquely identifies the bridge group. - */ + */ Id uint32 `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/bridgegroup_nsip6_binding.go b/resource/config/bridgegroup_nsip6_binding.go similarity index 96% rename from resource/config/network/bridgegroup_nsip6_binding.go rename to resource/config/bridgegroup_nsip6_binding.go index d0e3184..8cdb028 100644 --- a/resource/config/network/bridgegroup_nsip6_binding.go +++ b/resource/config/bridgegroup_nsip6_binding.go @@ -12,38 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the nsip6 that can be bound to bridgegroup. -*/ + */ type Bridgegroupnsip6binding struct { /** * The IP address assigned to the bridge group. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Temporary flag used for internal purpose. - */ + */ Rnat bool `json:"rnat,omitempty"` /** * The owner node group in a Cluster for this vlan. - */ + */ Ownergroup string `json:"ownergroup,omitempty"` /** * The integer that uniquely identifies the bridge group. - */ + */ Id int `json:"id,omitempty"` /** * A subnet mask associated with the network address. - */ + */ Netmask string `json:"netmask,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/bridgegroup_nsip_binding.go b/resource/config/bridgegroup_nsip_binding.go similarity index 96% rename from resource/config/network/bridgegroup_nsip_binding.go rename to resource/config/bridgegroup_nsip_binding.go index a513a58..edd4595 100644 --- a/resource/config/network/bridgegroup_nsip_binding.go +++ b/resource/config/bridgegroup_nsip_binding.go @@ -12,38 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the nsip that can be bound to bridgegroup. -*/ + */ type Bridgegroupnsipbinding struct { /** * The IP address assigned to the bridge group. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * The network mask for the subnet defined for the bridge group. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Temporary flag used for internal purpose. - */ + */ Rnat bool `json:"rnat,omitempty"` /** * The owner node group in a Cluster for this vlan. - */ + */ Ownergroup string `json:"ownergroup,omitempty"` /** * The integer that uniquely identifies the bridge group. - */ + */ Id int `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/bridgegroup_vlan_binding.go b/resource/config/bridgegroup_vlan_binding.go similarity index 96% rename from resource/config/network/bridgegroup_vlan_binding.go rename to resource/config/bridgegroup_vlan_binding.go index 14b27f3..ba6d304 100644 --- a/resource/config/network/bridgegroup_vlan_binding.go +++ b/resource/config/bridgegroup_vlan_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the vlan that can be bound to bridgegroup. -*/ + */ type Bridgegroupvlanbinding struct { /** * Names of all member VLANs. - */ + */ Vlan int `json:"vlan,omitempty"` /** * Temporary flag used for internal purpose. - */ + */ Rnat bool `json:"rnat,omitempty"` /** * The integer that uniquely identifies the bridge group. - */ + */ Id int `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/bridgetable.go b/resource/config/bridgetable.go similarity index 90% rename from resource/config/network/bridgetable.go rename to resource/config/bridgetable.go index cdf3b63..e5a7c1c 100644 --- a/resource/config/network/bridgetable.go +++ b/resource/config/bridgetable.go @@ -12,56 +12,55 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for bridge table entry resource. -*/ + */ type Bridgetable struct { /** * The MAC address of the target. - */ + */ Mac string `json:"mac,omitempty"` /** * The VXLAN to which this address is associated. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * The IP address of the destination VXLAN tunnel endpoint where the Ethernet MAC ADDRESS resides. - */ + */ Vtep string `json:"vtep,omitempty"` /** * The VXLAN VNI Network Identifier (or VXLAN Segment ID) to use to connect to the remote VXLAN tunnel endpoint. If omitted the value specified as vxlan will be used. - */ + */ Vni int `json:"vni,omitempty"` /** * The vlan on which to send multicast packets when the VXLAN tunnel endpoint is a muticast group address. - */ + */ Devicevlan int `json:"devicevlan,omitempty"` /** * Time-out value for the bridge table entries, in seconds. The new value applies only to the entries that are dynamically learned after the new value is set. Previously existing bridge table entries expire after the previously configured time-out value. - */ + */ Bridgeage int `json:"bridgeage,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` /** * VLAN whose entries are to be removed. - */ + */ Vlan int `json:"vlan,omitempty"` /** * INTERFACE whose entries are to be removed. - */ + */ Ifnum string `json:"ifnum,omitempty"` //------- Read only Parameter ---------; - Flags string `json:"flags,omitempty"` - Type string `json:"type,omitempty"` - Channel string `json:"channel,omitempty"` + Flags string `json:"flags,omitempty"` + Type string `json:"type,omitempty"` + Channel string `json:"channel,omitempty"` Controlplane string `json:"controlplane,omitempty"` - } diff --git a/resource/config/cache/cacheobject.go b/resource/config/cache/cacheobject.go deleted file mode 100644 index edc4f00..0000000 --- a/resource/config/cache/cacheobject.go +++ /dev/null @@ -1,135 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package cache - -/** -* Configuration for cache object resource. -*/ -type Cacheobject struct { - /** - * URL of the particular object whose details is required. Parameter "host" must be specified along with the URL. - */ - Url string `json:"url,omitempty"` - /** - * ID of the cached object. - */ - Locator int `json:"locator,omitempty"` - /** - * HTTP status of the object. - */ - Httpstatus int `json:"httpstatus,omitempty"` - /** - * Host name of the object. Parameter "url" must be specified. - */ - Host string `json:"host,omitempty"` - /** - * Host port of the object. You must also set the Host parameter. - */ - Port int `json:"port,omitempty"` - /** - * Name of the content group to which the object belongs. It will display only the objects belonging to the specified content group. You must also set the Host parameter. - */ - Groupname string `json:"groupname,omitempty"` - /** - * HTTP request method that caused the object to be stored. - */ - Httpmethod string `json:"httpmethod,omitempty"` - /** - * Name of the content group whose objects should be listed. - */ - Group string `json:"group,omitempty"` - /** - * Ignore marker objects. Marker objects are created when a response exceeds the maximum or minimum response size for the content group or has not yet received the minimum number of hits for the content group. - */ - Ignoremarkerobjects string `json:"ignoremarkerobjects,omitempty"` - /** - * Include responses that have not yet reached a minimum number of hits before being cached. - */ - Includenotreadyobjects string `json:"includenotreadyobjects,omitempty"` - /** - * Unique number that identifies the cluster node. - */ - Nodeid int `json:"nodeid,omitempty"` - /** - * Object will be saved onto Secondary. - */ - Tosecondary string `json:"tosecondary,omitempty"` - - //------- Read only Parameter ---------; - - Cacheressize string `json:"cacheressize,omitempty"` - Cachereshdrsize string `json:"cachereshdrsize,omitempty"` - Cacheetag string `json:"cacheetag,omitempty"` - Httpstatusoutput string `json:"httpstatusoutput,omitempty"` - Cachereslastmod string `json:"cachereslastmod,omitempty"` - Cachecontrol string `json:"cachecontrol,omitempty"` - Cacheresdate string `json:"cacheresdate,omitempty"` - Contentgroup string `json:"contentgroup,omitempty"` - Destipv46 string `json:"destipv46,omitempty"` - Destport string `json:"destport,omitempty"` - Cachecellcomplex string `json:"cachecellcomplex,omitempty"` - Hitparams string `json:"hitparams,omitempty"` - Hitvalues string `json:"hitvalues,omitempty"` - Cachecellreqtime string `json:"cachecellreqtime,omitempty"` - Cachecellrestime string `json:"cachecellrestime,omitempty"` - Cachecurage string `json:"cachecurage,omitempty"` - Cachecellexpires string `json:"cachecellexpires,omitempty"` - Cachecellexpiresmillisec string `json:"cachecellexpiresmillisec,omitempty"` - Flushed string `json:"flushed,omitempty"` - Prefetch string `json:"prefetch,omitempty"` - Prefetchperiod string `json:"prefetchperiod,omitempty"` - Prefetchperiodmillisec string `json:"prefetchperiodmillisec,omitempty"` - Cachecellcurreaders string `json:"cachecellcurreaders,omitempty"` - Cachecellcurmisses string `json:"cachecellcurmisses,omitempty"` - Cachecellhits string `json:"cachecellhits,omitempty"` - Cachecellmisses string `json:"cachecellmisses,omitempty"` - Cachecelldhits string `json:"cachecelldhits,omitempty"` - Cachecellcompressionformat string `json:"cachecellcompressionformat,omitempty"` - Cachecellappfwmetadataexists string `json:"cachecellappfwmetadataexists,omitempty"` - Cachecellhttp11 string `json:"cachecellhttp11,omitempty"` - Cachecellweaketag string `json:"cachecellweaketag,omitempty"` - Cachecellresbadsize string `json:"cachecellresbadsize,omitempty"` - Markerreason string `json:"markerreason,omitempty"` - Cachecellpolleverytime string `json:"cachecellpolleverytime,omitempty"` - Cachecelletaginserted string `json:"cachecelletaginserted,omitempty"` - Cachecellreadywithlastbyte string `json:"cachecellreadywithlastbyte,omitempty"` - Cacheinmemory string `json:"cacheinmemory,omitempty"` - Cacheindisk string `json:"cacheindisk,omitempty"` - Cacheinsecondary string `json:"cacheinsecondary,omitempty"` - Cachedirname string `json:"cachedirname,omitempty"` - Cachefilename string `json:"cachefilename,omitempty"` - Cachecelldestipverified string `json:"cachecelldestipverified,omitempty"` - Cachecellfwpxyobj string `json:"cachecellfwpxyobj,omitempty"` - Cachecellbasefile string `json:"cachecellbasefile,omitempty"` - Cachecellminhitflag string `json:"cachecellminhitflag,omitempty"` - Cachecellminhit string `json:"cachecellminhit,omitempty"` - Policy string `json:"policy,omitempty"` - Policyname string `json:"policyname,omitempty"` - Selectorname string `json:"selectorname,omitempty"` - Rule string `json:"rule,omitempty"` - Selectorvalue string `json:"selectorvalue,omitempty"` - Cacheurls string `json:"cacheurls,omitempty"` - Warnbucketskip string `json:"warnbucketskip,omitempty"` - Totalobjs string `json:"totalobjs,omitempty"` - Httpcalloutcell string `json:"httpcalloutcell,omitempty"` - Httpcalloutname string `json:"httpcalloutname,omitempty"` - Returntype string `json:"returntype,omitempty"` - Httpcalloutresult string `json:"httpcalloutresult,omitempty"` - Locatorshow string `json:"locatorshow,omitempty"` - Ceflags string `json:"ceflags,omitempty"` - -} diff --git a/resource/config/cache/cachecontentgroup.go b/resource/config/cachecontentgroup.go similarity index 88% rename from resource/config/cache/cachecontentgroup.go rename to resource/config/cachecontentgroup.go index 4ddf979..fc97f95 100644 --- a/resource/config/cache/cachecontentgroup.go +++ b/resource/config/cachecontentgroup.go @@ -12,72 +12,72 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Configuration for Integrated Cache content group resource. -*/ + */ type Cachecontentgroup struct { /** * Name for the content group. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the content group is created. - */ + */ Name string `json:"name,omitempty"` /** * Relative expiry time, in seconds, for expiring positive responses with response codes between 200 and 399. Cannot be used in combination with other Expiry attributes. Similar to -relExpiry but has lower precedence. - */ + */ Weakposrelexpiry int `json:"weakposrelexpiry,omitempty"` /** * Heuristic expiry time, in percent of the duration, since the object was last modified. - */ + */ Heurexpiryparam int `json:"heurexpiryparam,omitempty"` /** * Relative expiry time, in seconds, after which to expire an object cached in this content group. - */ + */ Relexpiry int `json:"relexpiry,omitempty"` /** * Relative expiry time, in milliseconds, after which to expire an object cached in this content group. - */ + */ Relexpirymillisec int `json:"relexpirymillisec,omitempty"` /** - * Local time, up to 4 times a day, at which all objects in the content group must expire. + * Local time, up to 4 times a day, at which all objects in the content group must expire. CLI Users: - For example, to specify that the objects in the content group should expire by 11:00 PM, type the following command: add cache contentgroup -absexpiry 23:00 + For example, to specify that the objects in the content group should expire by 11:00 PM, type the following command: add cache contentgroup -absexpiry 23:00 To specify that the objects in the content group should expire at 10:00 AM, 3 PM, 6 PM, and 11:00 PM, type: add cache contentgroup -absexpiry 10:00 15:00 18:00 23:00 */ Absexpiry []string `json:"absexpiry,omitempty"` /** * Coordinated Universal Time (GMT), up to 4 times a day, when all objects in the content group must expire. - */ + */ Absexpirygmt []string `json:"absexpirygmt,omitempty"` /** * Relative expiry time, in seconds, for expiring negative responses. This value is used only if the expiry time cannot be determined from any other source. It is applicable only to the following status codes: 307, 403, 404, and 410. - */ + */ Weaknegrelexpiry int `json:"weaknegrelexpiry,omitempty"` /** * Parameters to use for parameterized hit evaluation of an object. Up to 128 parameters can be specified. Mutually exclusive with the Hit Selector parameter. - */ + */ Hitparams []string `json:"hitparams,omitempty"` /** * Parameters for parameterized invalidation of an object. You can specify up to 8 parameters. Mutually exclusive with invalSelector. - */ + */ Invalparams []string `json:"invalparams,omitempty"` /** * Ignore case when comparing parameter values during parameterized hit evaluation. (Parameter value case is ignored by default during parameterized invalidation.) - */ + */ Ignoreparamvaluecase string `json:"ignoreparamvaluecase,omitempty"` /** * Evaluate for parameters in the cookie header also. - */ + */ Matchcookies string `json:"matchcookies,omitempty"` /** * Take the host header into account during parameterized invalidation. - */ + */ Invalrestrictedtohost string `json:"invalrestrictedtohost,omitempty"` /** * Always poll for the objects in this content group. That is, retrieve the objects from the origin server whenever they are requested. - */ + */ Polleverytime string `json:"polleverytime,omitempty"` /** * Ignore any request to reload a cached object from the origin server. @@ -86,51 +86,51 @@ type Cachecontentgroup struct { Ignorereloadreq string `json:"ignorereloadreq,omitempty"` /** * Remove cookies from responses. - */ + */ Removecookies string `json:"removecookies,omitempty"` /** * Attempt to refresh objects that are about to go stale. - */ + */ Prefetch string `json:"prefetch,omitempty"` /** * Time period, in seconds before an object's calculated expiry time, during which to attempt prefetch. - */ + */ Prefetchperiod int `json:"prefetchperiod,omitempty"` /** * Time period, in milliseconds before an object's calculated expiry time, during which to attempt prefetch. - */ + */ Prefetchperiodmillisec int `json:"prefetchperiodmillisec,omitempty"` /** * Maximum number of outstanding prefetches that can be queued for the content group. - */ + */ Prefetchmaxpending int `json:"prefetchmaxpending,omitempty"` /** * Perform flash cache. Mutually exclusive with Poll Every Time (PET) on the same content group. - */ + */ Flashcache string `json:"flashcache,omitempty"` /** * Force expiration of the content immediately after the response is downloaded (upon receipt of the last byte of the response body). Applicable only to positive responses. - */ + */ Expireatlastbyte string `json:"expireatlastbyte,omitempty"` /** * Insert a Via header into the response. - */ + */ Insertvia string `json:"insertvia,omitempty"` /** * Insert an Age header into the response. An Age header contains information about the age of the object, in seconds, as calculated by the integrated cache. - */ + */ Insertage string `json:"insertage,omitempty"` /** * Insert an ETag header in the response. With ETag header insertion, the integrated cache does not serve full responses on repeat requests. - */ + */ Insertetag string `json:"insertetag,omitempty"` /** * Insert a Cache-Control header into the response. - */ + */ Cachecontrol string `json:"cachecontrol,omitempty"` /** * If the size of an object that is being downloaded is less than or equal to the quick abort value, and a client aborts during the download, the cache stops downloading the response. If the object is larger than the quick abort size, the cache continues to download the response. - */ + */ Quickabortsize int `json:"quickabortsize,omitempty"` /** * Minimum size of a response that can be cached in this content group. @@ -139,81 +139,80 @@ type Cachecontentgroup struct { Minressize int `json:"minressize,omitempty"` /** * Maximum size of a response that can be cached in this content group. - */ + */ Maxressize int `json:"maxressize,omitempty"` /** * Maximum amount of memory that the cache can use. The effective limit is based on the available memory of the Citrix ADC. - */ + */ Memlimit int `json:"memlimit,omitempty"` /** * Ignore Cache-Control and Pragma headers in the incoming request. - */ + */ Ignorereqcachinghdrs string `json:"ignorereqcachinghdrs,omitempty"` /** * Number of hits that qualifies a response for storage in this content group. - */ + */ Minhits int `json:"minhits,omitempty"` /** * Force policy evaluation for each response arriving from the origin server. Cannot be set to YES if the Prefetch parameter is also set to YES. - */ + */ Alwaysevalpolicies string `json:"alwaysevalpolicies,omitempty"` /** * Setting persistHA to YES causes IC to save objects in contentgroup to Secondary node in HA deployment. - */ + */ Persistha string `json:"persistha,omitempty"` /** * Do not flush objects from this content group under memory pressure. - */ + */ Pinned string `json:"pinned,omitempty"` /** * Perform DNS resolution for responses only if the destination IP address in the request does not match the destination IP address of the cached response. - */ + */ Lazydnsresolve string `json:"lazydnsresolve,omitempty"` /** * Selector for evaluating whether an object gets stored in a particular content group. A selector is an abstraction for a collection of PIXL expressions. - */ + */ Hitselector string `json:"hitselector,omitempty"` /** * Selector for invalidating objects in the content group. A selector is an abstraction for a collection of PIXL expressions. - */ + */ Invalselector string `json:"invalselector,omitempty"` /** * The type of the content group. - */ + */ Type string `json:"type,omitempty"` /** * Query string specifying individual objects to flush from this group by using parameterized invalidation. If this parameter is not set, all objects are flushed from the group. - */ + */ Query string `json:"query,omitempty"` /** * Flush only objects that belong to the specified host. Do not use except with parameterized invalidation. Also, the Invalidation Restricted to Host parameter for the group must be set to YES. - */ + */ Host string `json:"host,omitempty"` /** * Value of the selector to be used for flushing objects from the content group. Requires that an invalidation selector be configured for the content group. - */ + */ Selectorvalue string `json:"selectorvalue,omitempty"` /** * content group whose objects are to be sent to secondary. - */ + */ Tosecondary string `json:"tosecondary,omitempty"` //------- Read only Parameter ---------; - Flags string `json:"flags,omitempty"` - Prefetchcur string `json:"prefetchcur,omitempty"` - Memusage string `json:"memusage,omitempty"` - Memdusage string `json:"memdusage,omitempty"` - Disklimit string `json:"disklimit,omitempty"` - Cachenon304hits string `json:"cachenon304hits,omitempty"` - Cache304hits string `json:"cache304hits,omitempty"` - Cachecells string `json:"cachecells,omitempty"` + Flags string `json:"flags,omitempty"` + Prefetchcur string `json:"prefetchcur,omitempty"` + Memusage string `json:"memusage,omitempty"` + Memdusage string `json:"memdusage,omitempty"` + Disklimit string `json:"disklimit,omitempty"` + Cachenon304hits string `json:"cachenon304hits,omitempty"` + Cache304hits string `json:"cache304hits,omitempty"` + Cachecells string `json:"cachecells,omitempty"` Cachegroupincarnation string `json:"cachegroupincarnation,omitempty"` - Persist string `json:"persist,omitempty"` - Policyname string `json:"policyname,omitempty"` - Cachenuminvalpolicy string `json:"cachenuminvalpolicy,omitempty"` - Markercells string `json:"markercells,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Persist string `json:"persist,omitempty"` + Policyname string `json:"policyname,omitempty"` + Cachenuminvalpolicy string `json:"cachenuminvalpolicy,omitempty"` + Markercells string `json:"markercells,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/cache/cacheforwardproxy.go b/resource/config/cacheforwardproxy.go similarity index 97% rename from resource/config/cache/cacheforwardproxy.go rename to resource/config/cacheforwardproxy.go index 7259621..34f0661 100644 --- a/resource/config/cache/cacheforwardproxy.go +++ b/resource/config/cacheforwardproxy.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Configuration for forward proxy resource. -*/ + */ type Cacheforwardproxy struct { /** * IP address of the Citrix ADC or a cache server for which the cache acts as a proxy. Requests coming to the Citrix ADC with the configured IP address are forwarded to the particular address, without involving the Integrated Cache in any way. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port on the Citrix ADC or a server for which the cache acts as a proxy - */ + */ Port int `json:"port,omitempty"` - } diff --git a/resource/config/cache/cacheglobal_binding.go b/resource/config/cacheglobal_binding.go similarity index 95% rename from resource/config/cache/cacheglobal_binding.go rename to resource/config/cacheglobal_binding.go index 3cf9853..e69dbcb 100644 --- a/resource/config/cache/cacheglobal_binding.go +++ b/resource/config/cacheglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** -* Binding object which returns the resources bound to cacheglobal_binding. -*/ +* Binding object which returns the resources bound to cacheglobal_binding. + */ type Cacheglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cacheglobal_cachepolicy_binding.go b/resource/config/cacheglobal_cachepolicy_binding.go similarity index 94% rename from resource/config/cache/cacheglobal_cachepolicy_binding.go rename to resource/config/cacheglobal_cachepolicy_binding.go index 0d6e665..8096438 100644 --- a/resource/config/cache/cacheglobal_cachepolicy_binding.go +++ b/resource/config/cacheglobal_cachepolicy_binding.go @@ -12,55 +12,53 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the cachepolicy that can be bound to cacheglobal. -*/ + */ type Cacheglobalcachepolicybinding struct { /** * Name of the cache policy. - */ + */ Policy string `json:"policy,omitempty"` /** * The bind point to which policy is bound. When you specify the type, detailed information about that bind point appears. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. Applicable only to default-syntax policies. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. (To invoke a label associated with a virtual server, specify the name of the virtual server.) - */ + */ Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol int `json:"numpol,omitempty"` /** * flowtype of the bound cache policy. - */ - Flowtype int `json:"flowtype,omitempty"` + */ + Flowtype int `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` /** * Specify whether this policy should be evaluated. - */ + */ Precededefrules string `json:"precededefrules,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cacheglobal_policy_binding.go b/resource/config/cacheglobal_policy_binding.go similarity index 94% rename from resource/config/cache/cacheglobal_policy_binding.go rename to resource/config/cacheglobal_policy_binding.go index f063bca..9cdcce1 100644 --- a/resource/config/cache/cacheglobal_policy_binding.go +++ b/resource/config/cacheglobal_policy_binding.go @@ -12,55 +12,53 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the policy that can be bound to cacheglobal. -*/ + */ type Cacheglobalpolicybinding struct { /** * Name of the cache policy. - */ + */ Policy string `json:"policy,omitempty"` /** * The bind point to which policy is bound. When you specify the type, detailed information about that bind point appears. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. Applicable only to default-syntax policies. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. (To invoke a label associated with a virtual server, specify the name of the virtual server.) - */ + */ Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol uint32 `json:"numpol,omitempty"` /** * flowtype of the bound cache policy. - */ - Flowtype uint32 `json:"flowtype,omitempty"` + */ + Flowtype uint32 `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` /** * Specify whether this policy should be evaluated. - */ + */ Precededefrules string `json:"precededefrules,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cacheobject.go b/resource/config/cacheobject.go new file mode 100644 index 0000000..bdbf99c --- /dev/null +++ b/resource/config/cacheobject.go @@ -0,0 +1,134 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for cache object resource. + */ +type Cacheobject struct { + /** + * URL of the particular object whose details is required. Parameter "host" must be specified along with the URL. + */ + Url string `json:"url,omitempty"` + /** + * ID of the cached object. + */ + Locator int `json:"locator,omitempty"` + /** + * HTTP status of the object. + */ + Httpstatus int `json:"httpstatus,omitempty"` + /** + * Host name of the object. Parameter "url" must be specified. + */ + Host string `json:"host,omitempty"` + /** + * Host port of the object. You must also set the Host parameter. + */ + Port int `json:"port,omitempty"` + /** + * Name of the content group to which the object belongs. It will display only the objects belonging to the specified content group. You must also set the Host parameter. + */ + Groupname string `json:"groupname,omitempty"` + /** + * HTTP request method that caused the object to be stored. + */ + Httpmethod string `json:"httpmethod,omitempty"` + /** + * Name of the content group whose objects should be listed. + */ + Group string `json:"group,omitempty"` + /** + * Ignore marker objects. Marker objects are created when a response exceeds the maximum or minimum response size for the content group or has not yet received the minimum number of hits for the content group. + */ + Ignoremarkerobjects string `json:"ignoremarkerobjects,omitempty"` + /** + * Include responses that have not yet reached a minimum number of hits before being cached. + */ + Includenotreadyobjects string `json:"includenotreadyobjects,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid int `json:"nodeid,omitempty"` + /** + * Object will be saved onto Secondary. + */ + Tosecondary string `json:"tosecondary,omitempty"` + + //------- Read only Parameter ---------; + + Cacheressize string `json:"cacheressize,omitempty"` + Cachereshdrsize string `json:"cachereshdrsize,omitempty"` + Cacheetag string `json:"cacheetag,omitempty"` + Httpstatusoutput string `json:"httpstatusoutput,omitempty"` + Cachereslastmod string `json:"cachereslastmod,omitempty"` + Cachecontrol string `json:"cachecontrol,omitempty"` + Cacheresdate string `json:"cacheresdate,omitempty"` + Contentgroup string `json:"contentgroup,omitempty"` + Destipv46 string `json:"destipv46,omitempty"` + Destport string `json:"destport,omitempty"` + Cachecellcomplex string `json:"cachecellcomplex,omitempty"` + Hitparams string `json:"hitparams,omitempty"` + Hitvalues string `json:"hitvalues,omitempty"` + Cachecellreqtime string `json:"cachecellreqtime,omitempty"` + Cachecellrestime string `json:"cachecellrestime,omitempty"` + Cachecurage string `json:"cachecurage,omitempty"` + Cachecellexpires string `json:"cachecellexpires,omitempty"` + Cachecellexpiresmillisec string `json:"cachecellexpiresmillisec,omitempty"` + Flushed string `json:"flushed,omitempty"` + Prefetch string `json:"prefetch,omitempty"` + Prefetchperiod string `json:"prefetchperiod,omitempty"` + Prefetchperiodmillisec string `json:"prefetchperiodmillisec,omitempty"` + Cachecellcurreaders string `json:"cachecellcurreaders,omitempty"` + Cachecellcurmisses string `json:"cachecellcurmisses,omitempty"` + Cachecellhits string `json:"cachecellhits,omitempty"` + Cachecellmisses string `json:"cachecellmisses,omitempty"` + Cachecelldhits string `json:"cachecelldhits,omitempty"` + Cachecellcompressionformat string `json:"cachecellcompressionformat,omitempty"` + Cachecellappfwmetadataexists string `json:"cachecellappfwmetadataexists,omitempty"` + Cachecellhttp11 string `json:"cachecellhttp11,omitempty"` + Cachecellweaketag string `json:"cachecellweaketag,omitempty"` + Cachecellresbadsize string `json:"cachecellresbadsize,omitempty"` + Markerreason string `json:"markerreason,omitempty"` + Cachecellpolleverytime string `json:"cachecellpolleverytime,omitempty"` + Cachecelletaginserted string `json:"cachecelletaginserted,omitempty"` + Cachecellreadywithlastbyte string `json:"cachecellreadywithlastbyte,omitempty"` + Cacheinmemory string `json:"cacheinmemory,omitempty"` + Cacheindisk string `json:"cacheindisk,omitempty"` + Cacheinsecondary string `json:"cacheinsecondary,omitempty"` + Cachedirname string `json:"cachedirname,omitempty"` + Cachefilename string `json:"cachefilename,omitempty"` + Cachecelldestipverified string `json:"cachecelldestipverified,omitempty"` + Cachecellfwpxyobj string `json:"cachecellfwpxyobj,omitempty"` + Cachecellbasefile string `json:"cachecellbasefile,omitempty"` + Cachecellminhitflag string `json:"cachecellminhitflag,omitempty"` + Cachecellminhit string `json:"cachecellminhit,omitempty"` + Policy string `json:"policy,omitempty"` + Policyname string `json:"policyname,omitempty"` + Selectorname string `json:"selectorname,omitempty"` + Rule string `json:"rule,omitempty"` + Selectorvalue string `json:"selectorvalue,omitempty"` + Cacheurls string `json:"cacheurls,omitempty"` + Warnbucketskip string `json:"warnbucketskip,omitempty"` + Totalobjs string `json:"totalobjs,omitempty"` + Httpcalloutcell string `json:"httpcalloutcell,omitempty"` + Httpcalloutname string `json:"httpcalloutname,omitempty"` + Returntype string `json:"returntype,omitempty"` + Httpcalloutresult string `json:"httpcalloutresult,omitempty"` + Locatorshow string `json:"locatorshow,omitempty"` + Ceflags string `json:"ceflags,omitempty"` +} diff --git a/resource/config/cache/cacheparameter.go b/resource/config/cacheparameter.go similarity index 89% rename from resource/config/cache/cacheparameter.go rename to resource/config/cacheparameter.go index a422341..7340b3e 100644 --- a/resource/config/cache/cacheparameter.go +++ b/resource/config/cacheparameter.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Configuration for cache parameter resource. -*/ + */ type Cacheparameter struct { /** * Amount of memory available for storing the cache objects. In practice, the amount of memory available for caching can be less than half the total memory of the Citrix ADC. - */ + */ Memlimit int `json:"memlimit,omitempty"` /** * String to include in the Via header. A Via header is inserted into all responses served from a content group if its Insert Via flag is set. - */ + */ Via string `json:"via,omitempty"` /** * Criteria for deciding whether a cached object can be served for an incoming HTTP request. Available settings function as follows: - HOSTNAME - The URL, host name, and host port values in the incoming HTTP request header must match the cache policy. The IP address and the TCP port of the destination host are not evaluated. Do not use the HOSTNAME setting unless you are certain that no rogue client can access a rogue server through the cache. + HOSTNAME - The URL, host name, and host port values in the incoming HTTP request header must match the cache policy. The IP address and the TCP port of the destination host are not evaluated. Do not use the HOSTNAME setting unless you are certain that no rogue client can access a rogue server through the cache. HOSTNAME_AND_IP - The URL, host name, host port in the incoming HTTP request header, and the IP address and TCP port of the destination server, must match the cache policy. DNS - The URL, host name and host port in the incoming HTTP request, and the TCP port must match the cache policy. The host name is used for DNS lookup of the destination server's IP address, and is compared with the set of addresses returned by the DNS lookup. @@ -38,33 +38,32 @@ type Cacheparameter struct { Verifyusing string `json:"verifyusing,omitempty"` /** * Maximum number of POST body bytes to consider when evaluating parameters for a content group for which you have configured hit parameters and invalidation parameters. - */ + */ Maxpostlen int `json:"maxpostlen,omitempty"` /** * Maximum number of outstanding prefetches in the Integrated Cache. - */ + */ Prefetchmaxpending int `json:"prefetchmaxpending,omitempty"` /** * Evaluate the request-time policies before attempting hit selection. If set to NO, an incoming request for which a matching object is found in cache storage results in a response regardless of the policy configuration. - If the request matches a policy with a NOCACHE action, the request bypasses all cache processing. + If the request matches a policy with a NOCACHE action, the request bypasses all cache processing. This parameter does not affect processing of requests that match any invalidation policy. */ Enablebypass string `json:"enablebypass,omitempty"` /** * Action to take when a policy cannot be evaluated. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * The HA object persisting parameter. When this value is set to YES, cache objects can be synced to Secondary in a HA deployment. If set to NO, objects will never be synced to Secondary node. - */ + */ Enablehaobjpersist string `json:"enablehaobjpersist,omitempty"` //------- Read only Parameter ---------; - Disklimit string `json:"disklimit,omitempty"` - Maxdisklimit string `json:"maxdisklimit,omitempty"` + Disklimit string `json:"disklimit,omitempty"` + Maxdisklimit string `json:"maxdisklimit,omitempty"` Memlimitactive string `json:"memlimitactive,omitempty"` - Maxmemlimit string `json:"maxmemlimit,omitempty"` - Prefetchcur string `json:"prefetchcur,omitempty"` - + Maxmemlimit string `json:"maxmemlimit,omitempty"` + Prefetchcur string `json:"prefetchcur,omitempty"` } diff --git a/resource/config/cache/cachepolicy.go b/resource/config/cachepolicy.go similarity index 89% rename from resource/config/cache/cachepolicy.go rename to resource/config/cachepolicy.go index 4511b11..7e1656b 100644 --- a/resource/config/cache/cachepolicy.go +++ b/resource/config/cachepolicy.go @@ -12,28 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Configuration for Integrated Cache policy resource. -*/ + */ type Cachepolicy struct { /** * Name for the policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the policy is created. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Expression against which the traffic is evaluated. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** - * Action to apply to content that matches the policy. + * Action to apply to content that matches the policy. * CACHE or MAY_CACHE action - positive cachability policy * NOCACHE or MAY_NOCACHE action - negative cachability policy * INVAL action - Dynamic Invalidation Policy @@ -41,31 +41,30 @@ type Cachepolicy struct { Action string `json:"action,omitempty"` /** * Name of the content group in which to store the object when the final result of policy evaluation is CACHE. The content group must exist before being mentioned here. Use the "show cache contentgroup" command to view the list of existing content groups. - */ + */ Storeingroup string `json:"storeingroup,omitempty"` /** * Content group(s) to be invalidated when the INVAL action is applied. Maximum number of content groups that can be specified is 16. - */ + */ Invalgroups []string `json:"invalgroups,omitempty"` /** * Content groups(s) in which the objects will be invalidated if the action is INVAL. - */ + */ Invalobjects []string `json:"invalobjects,omitempty"` /** * Action to be performed when the result of rule evaluation is undefined. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * New name for the cache policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Undefhits string `json:"undefhits,omitempty"` - Flags string `json:"flags,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Flags string `json:"flags,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/cache/cachepolicy_binding.go b/resource/config/cachepolicy_binding.go similarity index 93% rename from resource/config/cache/cachepolicy_binding.go rename to resource/config/cachepolicy_binding.go index d4dd0aa..c367e3b 100644 --- a/resource/config/cache/cachepolicy_binding.go +++ b/resource/config/cachepolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** -* Binding object which returns the resources bound to cachepolicy_binding. -*/ +* Binding object which returns the resources bound to cachepolicy_binding. + */ type Cachepolicybinding struct { /** - * Name of the cache policy about which to display details.
Minimum value = - */ + * Name of the cache policy about which to display details.
Minimum value = + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicy_cacheglobal_binding.go b/resource/config/cachepolicy_cacheglobal_binding.go similarity index 96% rename from resource/config/cache/cachepolicy_cacheglobal_binding.go rename to resource/config/cachepolicy_cacheglobal_binding.go index f4339eb..8a1939e 100644 --- a/resource/config/cache/cachepolicy_cacheglobal_binding.go +++ b/resource/config/cachepolicy_cacheglobal_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the cacheglobal that can be bound to cachepolicy. -*/ + */ type Cachepolicycacheglobalbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache policy about which to display details. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicy_cachepolicylabel_binding.go b/resource/config/cachepolicy_cachepolicylabel_binding.go similarity index 96% rename from resource/config/cache/cachepolicy_cachepolicylabel_binding.go rename to resource/config/cachepolicy_cachepolicylabel_binding.go index 3b293ed..9425763 100644 --- a/resource/config/cache/cachepolicy_cachepolicylabel_binding.go +++ b/resource/config/cachepolicy_cachepolicylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the cachepolicylabel that can be bound to cachepolicy. -*/ + */ type Cachepolicycachepolicylabelbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache policy about which to display details. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicy_csvserver_binding.go b/resource/config/cachepolicy_csvserver_binding.go similarity index 96% rename from resource/config/cache/cachepolicy_csvserver_binding.go rename to resource/config/cachepolicy_csvserver_binding.go index 70dbc0f..4b7b73c 100644 --- a/resource/config/cache/cachepolicy_csvserver_binding.go +++ b/resource/config/cachepolicy_csvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the csvserver that can be bound to cachepolicy. -*/ + */ type Cachepolicycsvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache policy about which to display details. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicy_global_binding.go b/resource/config/cachepolicy_global_binding.go similarity index 96% rename from resource/config/cache/cachepolicy_global_binding.go rename to resource/config/cachepolicy_global_binding.go index f9f7de2..9deab9a 100644 --- a/resource/config/cache/cachepolicy_global_binding.go +++ b/resource/config/cachepolicy_global_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the global that can be bound to cachepolicy. -*/ + */ type Cachepolicyglobalbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache policy about which to display details. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicy_lbvserver_binding.go b/resource/config/cachepolicy_lbvserver_binding.go similarity index 96% rename from resource/config/cache/cachepolicy_lbvserver_binding.go rename to resource/config/cachepolicy_lbvserver_binding.go index c62715d..472cd0a 100644 --- a/resource/config/cache/cachepolicy_lbvserver_binding.go +++ b/resource/config/cachepolicy_lbvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the lbvserver that can be bound to cachepolicy. -*/ + */ type Cachepolicylbvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache policy about which to display details. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicy_policylabel_binding.go b/resource/config/cachepolicy_policylabel_binding.go similarity index 96% rename from resource/config/cache/cachepolicy_policylabel_binding.go rename to resource/config/cachepolicy_policylabel_binding.go index d78bb69..f46b682 100644 --- a/resource/config/cache/cachepolicy_policylabel_binding.go +++ b/resource/config/cachepolicy_policylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the policylabel that can be bound to cachepolicy. -*/ + */ type Cachepolicypolicylabelbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache policy about which to display details. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicy_vserver_binding.go b/resource/config/cachepolicy_vserver_binding.go similarity index 96% rename from resource/config/cache/cachepolicy_vserver_binding.go rename to resource/config/cachepolicy_vserver_binding.go index d919edf..fdd2732 100644 --- a/resource/config/cache/cachepolicy_vserver_binding.go +++ b/resource/config/cachepolicy_vserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the vserver that can be bound to cachepolicy. -*/ + */ type Cachepolicyvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache policy about which to display details. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicylabel.go b/resource/config/cachepolicylabel.go similarity index 75% rename from resource/config/cache/cachepolicylabel.go rename to resource/config/cachepolicylabel.go index ccb9a7d..44a5d4d 100644 --- a/resource/config/cache/cachepolicylabel.go +++ b/resource/config/cachepolicylabel.go @@ -12,37 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Configuration for cache policy label resource. -*/ + */ type Cachepolicylabel struct { /** * Name for the label. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the label is created. - */ + */ Labelname string `json:"labelname,omitempty"` /** * When to evaluate policies bound to this label: request-time or response-time. - */ + */ Evaluates string `json:"evaluates,omitempty"` /** * New name for the cache-policy label. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Priority string `json:"priority,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Flowtype string `json:"flowtype,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/cache/cachepolicylabel_binding.go b/resource/config/cachepolicylabel_binding.go similarity index 94% rename from resource/config/cache/cachepolicylabel_binding.go rename to resource/config/cachepolicylabel_binding.go index 3f6cf0f..cc83e5d 100644 --- a/resource/config/cache/cachepolicylabel_binding.go +++ b/resource/config/cachepolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** -* Binding object which returns the resources bound to cachepolicylabel_binding. -*/ +* Binding object which returns the resources bound to cachepolicylabel_binding. + */ type Cachepolicylabelbinding struct { /** * Name of the cache-policy label about which to display information. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicylabel_cachepolicy_binding.go b/resource/config/cachepolicylabel_cachepolicy_binding.go similarity index 96% rename from resource/config/cache/cachepolicylabel_cachepolicy_binding.go rename to resource/config/cachepolicylabel_cachepolicy_binding.go index 27ccdd4..e2adad3 100644 --- a/resource/config/cache/cachepolicylabel_cachepolicy_binding.go +++ b/resource/config/cachepolicylabel_cachepolicy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the cachepolicy that can be bound to cachepolicylabel. -*/ + */ type Cachepolicylabelcachepolicybinding struct { /** * Name of the cache policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next-lower priority. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke: an unnamed label associated with a virtual server, or user-defined policy label. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy rule evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the cache policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicylabel_policy_binding.go b/resource/config/cachepolicylabel_policy_binding.go similarity index 96% rename from resource/config/cache/cachepolicylabel_policy_binding.go rename to resource/config/cachepolicylabel_policy_binding.go index cc15d5f..893bce3 100644 --- a/resource/config/cache/cachepolicylabel_policy_binding.go +++ b/resource/config/cachepolicylabel_policy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the policy that can be bound to cachepolicylabel. -*/ + */ type Cachepolicylabelpolicybinding struct { /** * Name of the cache policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next-lower priority. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke: an unnamed label associated with a virtual server, or user-defined policy label. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy rule evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the cache policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cachepolicylabel_policybinding_binding.go b/resource/config/cachepolicylabel_policybinding_binding.go similarity index 96% rename from resource/config/cache/cachepolicylabel_policybinding_binding.go rename to resource/config/cachepolicylabel_policybinding_binding.go index c2cbe1b..2556af5 100644 --- a/resource/config/cache/cachepolicylabel_policybinding_binding.go +++ b/resource/config/cachepolicylabel_policybinding_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Binding class showing the policybinding that can be bound to cachepolicylabel. -*/ + */ type Cachepolicylabelpolicybindingbinding struct { /** * Name of the cache policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next-lower priority. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke: an unnamed label associated with a virtual server, or user-defined policy label. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the policy label to invoke if the current policy rule evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the cache policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cache/cacheselector.go b/resource/config/cacheselector.go similarity index 94% rename from resource/config/cache/cacheselector.go rename to resource/config/cacheselector.go index e69d52e..d07bc60 100644 --- a/resource/config/cache/cacheselector.go +++ b/resource/config/cacheselector.go @@ -12,27 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cache +package config /** * Configuration for cache selector resource. -*/ + */ type Cacheselector struct { /** * Name for the selector. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Selectorname string `json:"selectorname,omitempty"` /** * One or multiple PIXL expressions for evaluating an HTTP request or response. - */ + */ Rule []string `json:"rule,omitempty"` //------- Read only Parameter ---------; - Flags string `json:"flags,omitempty"` + Flags string `json:"flags,omitempty"` Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/utility/callhome.go b/resource/config/callhome.go similarity index 68% rename from resource/config/utility/callhome.go rename to resource/config/callhome.go index 7721f17..4164850 100644 --- a/resource/config/utility/callhome.go +++ b/resource/config/callhome.go @@ -12,62 +12,61 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package utility +package config /** * Configuration for callhome resource. -*/ + */ type Callhome struct { /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` /** * CallHome mode of operation - */ + */ Mode string `json:"mode,omitempty"` /** * Email address of the contact administrator. - */ + */ Emailaddress string `json:"emailaddress,omitempty"` /** * Interval (in days) between CallHome heartbeats - */ + */ Hbcustominterval int `json:"hbcustominterval,omitempty"` /** * Enables or disables the proxy mode. The proxy server can be set by either specifying the IP address of the server or the name of the service representing the proxy server. - */ + */ Proxymode string `json:"proxymode,omitempty"` /** * IP address of the proxy server. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Name of the service that represents the proxy server. - */ + */ Proxyauthservice string `json:"proxyauthservice,omitempty"` /** * HTTP port on the Proxy server. This is a mandatory parameter for both IP address and service name based configuration. - */ + */ Port int `json:"port,omitempty"` //------- Read only Parameter ---------; - Sslcardfirstfailure string `json:"sslcardfirstfailure,omitempty"` + Sslcardfirstfailure string `json:"sslcardfirstfailure,omitempty"` Sslcardlatestfailure string `json:"sslcardlatestfailure,omitempty"` - Powfirstfail string `json:"powfirstfail,omitempty"` - Powlatestfailure string `json:"powlatestfailure,omitempty"` - Hddfirstfail string `json:"hddfirstfail,omitempty"` - Hddlatestfailure string `json:"hddlatestfailure,omitempty"` - Flashfirstfail string `json:"flashfirstfail,omitempty"` - Flashlatestfailure string `json:"flashlatestfailure,omitempty"` - Rlfirsthighdrop string `json:"rlfirsthighdrop,omitempty"` - Rllatesthighdrop string `json:"rllatesthighdrop,omitempty"` - Restartlatestfail string `json:"restartlatestfail,omitempty"` - Memthrefirstanomaly string `json:"memthrefirstanomaly,omitempty"` + Powfirstfail string `json:"powfirstfail,omitempty"` + Powlatestfailure string `json:"powlatestfailure,omitempty"` + Hddfirstfail string `json:"hddfirstfail,omitempty"` + Hddlatestfailure string `json:"hddlatestfailure,omitempty"` + Flashfirstfail string `json:"flashfirstfail,omitempty"` + Flashlatestfailure string `json:"flashlatestfailure,omitempty"` + Rlfirsthighdrop string `json:"rlfirsthighdrop,omitempty"` + Rllatesthighdrop string `json:"rllatesthighdrop,omitempty"` + Restartlatestfail string `json:"restartlatestfail,omitempty"` + Memthrefirstanomaly string `json:"memthrefirstanomaly,omitempty"` Memthrelatestanomaly string `json:"memthrelatestanomaly,omitempty"` - Callhomestatus string `json:"callhomestatus,omitempty"` - + Callhomestatus string `json:"callhomestatus,omitempty"` } diff --git a/resource/config/network/channel.go b/resource/config/channel.go similarity index 59% rename from resource/config/network/channel.go rename to resource/config/channel.go index c548cfe..6fbbcc2 100644 --- a/resource/config/network/channel.go +++ b/resource/config/channel.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for channel resource. -*/ + */ type Channel struct { /** * ID for the LA channel or cluster LA channel or LR channel to be created. Specify an LA channel in LA/x notation, where x can range from 1 to 8 or cluster LA channel in CLA/x notation or Link redundant channel in LR/x notation, where x can range from 1 to 4. Cannot be changed after the LA channel is created. - */ + */ Id string `json:"id,omitempty"` /** * Interfaces to be bound to the LA channel of a Citrix ADC or to the LA channel of a cluster configuration. - For an LA channel of a Citrix ADC, specify an interface in C/U notation (for example, 1/3). + For an LA channel of a Citrix ADC, specify an interface in C/U notation (for example, 1/3). For an LA channel of a cluster configuration, specify an interface in N/C/U notation (for example, 2/1/3). where C can take one of the following values: * 0 - Indicates a management interface. @@ -39,153 +39,152 @@ type Channel struct { Ifnum []string `json:"ifnum,omitempty"` /** * Enable or disable the LA channel. - */ + */ State string `json:"state,omitempty"` /** * The initital mode for the LA channel. - */ + */ Mode string `json:"mode,omitempty"` /** * The 'connection' distribution mode for the LA channel. - */ + */ Conndistr string `json:"conndistr,omitempty"` /** * The 'MAC' distribution mode for the LA channel. - */ + */ Macdistr string `json:"macdistr,omitempty"` /** - * Specifies a MAC address for the LA channels configured in Citrix ADC virtual appliances (VPX). This MAC address is persistent after each reboot. + * Specifies a MAC address for the LA channels configured in Citrix ADC virtual appliances (VPX). This MAC address is persistent after each reboot. If you don't specify this parameter, a MAC address is generated randomly for each LA channel. These MAC addresses change after each reboot. */ Lamac string `json:"lamac,omitempty"` /** * Ethernet speed of the channel, in Mbps. If the speed of any bound interface is greater than or equal to the value set for this parameter, the state of the interface is UP. Otherwise, the state is INACTIVE. Bound Interfaces whose state is INACTIVE do not process any traffic. - */ + */ Speed string `json:"speed,omitempty"` /** * Specifies the flow control type for this LA channel to manage the flow of frames. Flow control is a function as mentioned in clause 31 of the IEEE 802.3 standard. Flow control allows congested ports to pause traffic from the peer device. Flow control is achieved by sending PAUSE frames. - */ + */ Flowctl string `json:"flowctl,omitempty"` /** * In a High Availability (HA) configuration, monitor the LA channel for failure events. Failure of any LA channel that has HA MON enabled triggers HA failover. - */ + */ Hamonitor string `json:"hamonitor,omitempty"` /** * In a High Availability (HA) configuration, configure the LA channel for sending heartbeats. LA channel that has HA Heartbeat disabled should not send the heartbeats. - */ + */ Haheartbeat string `json:"haheartbeat,omitempty"` /** * Adds a four-byte 802.1q tag to every packet sent on this channel. The ON setting applies tags for all VLANs that are bound to this channel. OFF applies the tag for all VLANs other than the native VLAN. - */ + */ Tagall string `json:"tagall,omitempty"` /** * This is deprecated by tagall - */ + */ Trunk string `json:"trunk,omitempty"` /** * Alias name for the LA channel. Used only to enhance readability. To perform any operations, you have to specify the LA channel ID. - */ + */ Ifalias string `json:"ifalias,omitempty"` /** * Low threshold value for the throughput of the LA channel, in Mbps. In an high availability (HA) configuration, failover is triggered when the LA channel has HA MON enabled and the throughput is below the specified threshold. - */ + */ Throughput int `json:"throughput,omitempty"` /** * High threshold value for the bandwidth usage of the LA channel, in Mbps. The Citrix ADC generates an SNMP trap message when the bandwidth usage of the LA channel is greater than or equal to the specified high threshold value. - */ + */ Bandwidthhigh int `json:"bandwidthhigh,omitempty"` /** * Normal threshold value for the bandwidth usage of the LA channel, in Mbps. When the bandwidth usage of the LA channel returns to less than or equal to the specified normal threshold after exceeding the high threshold, the Citrix ADC generates an SNMP trap message to indicate that the bandwidth usage has returned to normal. - */ + */ Bandwidthnormal int `json:"bandwidthnormal,omitempty"` /** - * The Maximum Transmission Unit (MTU) is the largest packet size, measured in bytes excluding 14 bytes ethernet header and 4 bytes CRC, that can be transmitted and received by an interface. The default value of MTU is 1500 on all the interface of Citrix ADC, some Cloud Platforms will restrict Citrix ADC to use the lesser default value. Any MTU value more than 1500 is called Jumbo MTU and will make the interface as jumbo enabled. The Maximum Jumbo MTU in Citrix ADC is 9216, however, some Virtualized / Cloud Platforms will have lesser Maximum Jumbo MTU Value (9000). In the case of Cluster, the Backplane interface requires an MTU value of 78 bytes more than the Max MTU configured on any other Data-Plane Interface. When the Data plane interfaces are all at default 1500 MTU, Cluster Back Plane will be automatically set to 1578 (1500 + 78) MTU. If a Backplane interface is reset to Data Plane Interface, then the 1578 MTU will be automatically reset to the default MTU of 1500(or whatever lesser default value). If any data plane interface of a Cluster is configured with a Jumbo MTU ( > 1500), then all backplane interfaces require to be configured with a minimum MTU of 'Highest Data Plane MTU in the Cluster + 78'. That makes the maximum Jumbo MTU for any Data-Plane Interface in a Cluster System to be '9138 (9216 - 78)., where 9216 is the maximum Jumbo MTU. On certain Virtualized / Cloud Platforms, the maximum possible MTU is restricted to a lesser value, Similar calculation can be applied, Maximum Data Plane MTU in Cluster = (Maximum possible MTU - 78). - */ + * The Maximum Transmission Unit (MTU) is the largest packet size, measured in bytes excluding 14 bytes ethernet header and 4 bytes CRC, that can be transmitted and received by an interface. The default value of MTU is 1500 on all the interface of Citrix ADC, some Cloud Platforms will restrict Citrix ADC to use the lesser default value. Any MTU value more than 1500 is called Jumbo MTU and will make the interface as jumbo enabled. The Maximum Jumbo MTU in Citrix ADC is 9216, however, some Virtualized / Cloud Platforms will have lesser Maximum Jumbo MTU Value (9000). In the case of Cluster, the Backplane interface requires an MTU value of 78 bytes more than the Max MTU configured on any other Data-Plane Interface. When the Data plane interfaces are all at default 1500 MTU, Cluster Back Plane will be automatically set to 1578 (1500 + 78) MTU. If a Backplane interface is reset to Data Plane Interface, then the 1578 MTU will be automatically reset to the default MTU of 1500(or whatever lesser default value). If any data plane interface of a Cluster is configured with a Jumbo MTU ( > 1500), then all backplane interfaces require to be configured with a minimum MTU of 'Highest Data Plane MTU in the Cluster + 78'. That makes the maximum Jumbo MTU for any Data-Plane Interface in a Cluster System to be '9138 (9216 - 78)., where 9216 is the maximum Jumbo MTU. On certain Virtualized / Cloud Platforms, the maximum possible MTU is restricted to a lesser value, Similar calculation can be applied, Maximum Data Plane MTU in Cluster = (Maximum possible MTU - 78). + */ Mtu int `json:"mtu,omitempty"` /** * Specifies the minimum throughput threshold (in Mbps) to be met by the active subchannel. Setting this parameter automatically divides an LACP channel into logical subchannels, with one subchannel active and the others in standby mode. When the maximum supported throughput of the active channel falls below the lrMinThroughput value, link failover occurs and a standby subchannel becomes active. - */ + */ Lrminthroughput int `json:"lrminthroughput,omitempty"` /** * Link Redundancy for Cluster LAG. - */ + */ Linkredundancy string `json:"linkredundancy,omitempty"` //------- Read only Parameter ---------; - Devicename string `json:"devicename,omitempty"` - Unit string `json:"unit,omitempty"` - Description string `json:"description,omitempty"` - Flags string `json:"flags,omitempty"` - Actualmtu string `json:"actualmtu,omitempty"` - Vlan string `json:"vlan,omitempty"` - Mac string `json:"mac,omitempty"` - Uptime string `json:"uptime,omitempty"` - Downtime string `json:"downtime,omitempty"` - Reqmedia string `json:"reqmedia,omitempty"` - Reqspeed string `json:"reqspeed,omitempty"` - Reqduplex string `json:"reqduplex,omitempty"` - Reqflowcontrol string `json:"reqflowcontrol,omitempty"` - Media string `json:"media,omitempty"` - Actspeed string `json:"actspeed,omitempty"` - Duplex string `json:"duplex,omitempty"` - Actflowctl string `json:"actflowctl,omitempty"` - Lamode string `json:"lamode,omitempty"` - Autoneg string `json:"autoneg,omitempty"` - Autonegresult string `json:"autonegresult,omitempty"` - Tagged string `json:"tagged,omitempty"` - Taggedany string `json:"taggedany,omitempty"` - Taggedautolearn string `json:"taggedautolearn,omitempty"` - Hangdetect string `json:"hangdetect,omitempty"` - Hangreset string `json:"hangreset,omitempty"` - Linkstate string `json:"linkstate,omitempty"` - Intfstate string `json:"intfstate,omitempty"` - Rxpackets string `json:"rxpackets,omitempty"` - Rxbytes string `json:"rxbytes,omitempty"` - Rxerrors string `json:"rxerrors,omitempty"` - Rxdrops string `json:"rxdrops,omitempty"` - Txpackets string `json:"txpackets,omitempty"` - Txbytes string `json:"txbytes,omitempty"` - Txerrors string `json:"txerrors,omitempty"` - Txdrops string `json:"txdrops,omitempty"` - Indisc string `json:"indisc,omitempty"` - Outdisc string `json:"outdisc,omitempty"` - Fctls string `json:"fctls,omitempty"` - Hangs string `json:"hangs,omitempty"` - Stsstalls string `json:"stsstalls,omitempty"` - Txstalls string `json:"txstalls,omitempty"` - Rxstalls string `json:"rxstalls,omitempty"` - Bdgmuted string `json:"bdgmuted,omitempty"` - Vmac string `json:"vmac,omitempty"` - Vmac6 string `json:"vmac6,omitempty"` - Reqthroughput string `json:"reqthroughput,omitempty"` - Actthroughput string `json:"actthroughput,omitempty"` - Backplane string `json:"backplane,omitempty"` - Cleartime string `json:"cleartime,omitempty"` - Lacpmode string `json:"lacpmode,omitempty"` - Lacptimeout string `json:"lacptimeout,omitempty"` - Lacpactorpriority string `json:"lacpactorpriority,omitempty"` - Lacpactorportno string `json:"lacpactorportno,omitempty"` - Lacppartnerstate string `json:"lacppartnerstate,omitempty"` - Lacppartnertimeout string `json:"lacppartnertimeout,omitempty"` - Lacppartneraggregation string `json:"lacppartneraggregation,omitempty"` - Lacppartnerinsync string `json:"lacppartnerinsync,omitempty"` - Lacppartnercollecting string `json:"lacppartnercollecting,omitempty"` - Lacppartnerdistributing string `json:"lacppartnerdistributing,omitempty"` - Lacppartnerdefaulted string `json:"lacppartnerdefaulted,omitempty"` - Lacppartnerexpired string `json:"lacppartnerexpired,omitempty"` - Lacppartnerpriority string `json:"lacppartnerpriority,omitempty"` - Lacppartnersystemmac string `json:"lacppartnersystemmac,omitempty"` + Devicename string `json:"devicename,omitempty"` + Unit string `json:"unit,omitempty"` + Description string `json:"description,omitempty"` + Flags string `json:"flags,omitempty"` + Actualmtu string `json:"actualmtu,omitempty"` + Vlan string `json:"vlan,omitempty"` + Mac string `json:"mac,omitempty"` + Uptime string `json:"uptime,omitempty"` + Downtime string `json:"downtime,omitempty"` + Reqmedia string `json:"reqmedia,omitempty"` + Reqspeed string `json:"reqspeed,omitempty"` + Reqduplex string `json:"reqduplex,omitempty"` + Reqflowcontrol string `json:"reqflowcontrol,omitempty"` + Media string `json:"media,omitempty"` + Actspeed string `json:"actspeed,omitempty"` + Duplex string `json:"duplex,omitempty"` + Actflowctl string `json:"actflowctl,omitempty"` + Lamode string `json:"lamode,omitempty"` + Autoneg string `json:"autoneg,omitempty"` + Autonegresult string `json:"autonegresult,omitempty"` + Tagged string `json:"tagged,omitempty"` + Taggedany string `json:"taggedany,omitempty"` + Taggedautolearn string `json:"taggedautolearn,omitempty"` + Hangdetect string `json:"hangdetect,omitempty"` + Hangreset string `json:"hangreset,omitempty"` + Linkstate string `json:"linkstate,omitempty"` + Intfstate string `json:"intfstate,omitempty"` + Rxpackets string `json:"rxpackets,omitempty"` + Rxbytes string `json:"rxbytes,omitempty"` + Rxerrors string `json:"rxerrors,omitempty"` + Rxdrops string `json:"rxdrops,omitempty"` + Txpackets string `json:"txpackets,omitempty"` + Txbytes string `json:"txbytes,omitempty"` + Txerrors string `json:"txerrors,omitempty"` + Txdrops string `json:"txdrops,omitempty"` + Indisc string `json:"indisc,omitempty"` + Outdisc string `json:"outdisc,omitempty"` + Fctls string `json:"fctls,omitempty"` + Hangs string `json:"hangs,omitempty"` + Stsstalls string `json:"stsstalls,omitempty"` + Txstalls string `json:"txstalls,omitempty"` + Rxstalls string `json:"rxstalls,omitempty"` + Bdgmuted string `json:"bdgmuted,omitempty"` + Vmac string `json:"vmac,omitempty"` + Vmac6 string `json:"vmac6,omitempty"` + Reqthroughput string `json:"reqthroughput,omitempty"` + Actthroughput string `json:"actthroughput,omitempty"` + Backplane string `json:"backplane,omitempty"` + Cleartime string `json:"cleartime,omitempty"` + Lacpmode string `json:"lacpmode,omitempty"` + Lacptimeout string `json:"lacptimeout,omitempty"` + Lacpactorpriority string `json:"lacpactorpriority,omitempty"` + Lacpactorportno string `json:"lacpactorportno,omitempty"` + Lacppartnerstate string `json:"lacppartnerstate,omitempty"` + Lacppartnertimeout string `json:"lacppartnertimeout,omitempty"` + Lacppartneraggregation string `json:"lacppartneraggregation,omitempty"` + Lacppartnerinsync string `json:"lacppartnerinsync,omitempty"` + Lacppartnercollecting string `json:"lacppartnercollecting,omitempty"` + Lacppartnerdistributing string `json:"lacppartnerdistributing,omitempty"` + Lacppartnerdefaulted string `json:"lacppartnerdefaulted,omitempty"` + Lacppartnerexpired string `json:"lacppartnerexpired,omitempty"` + Lacppartnerpriority string `json:"lacppartnerpriority,omitempty"` + Lacppartnersystemmac string `json:"lacppartnersystemmac,omitempty"` Lacppartnersystempriority string `json:"lacppartnersystempriority,omitempty"` - Lacppartnerportno string `json:"lacppartnerportno,omitempty"` - Lacppartnerkey string `json:"lacppartnerkey,omitempty"` - Lacpactoraggregation string `json:"lacpactoraggregation,omitempty"` - Lacpactorinsync string `json:"lacpactorinsync,omitempty"` - Lacpactorcollecting string `json:"lacpactorcollecting,omitempty"` - Lacpactordistributing string `json:"lacpactordistributing,omitempty"` - Lacpportmuxstate string `json:"lacpportmuxstate,omitempty"` - Lacpportrxstat string `json:"lacpportrxstat,omitempty"` - Lacpportselectstate string `json:"lacpportselectstate,omitempty"` - Lldpmode string `json:"lldpmode,omitempty"` - + Lacppartnerportno string `json:"lacppartnerportno,omitempty"` + Lacppartnerkey string `json:"lacppartnerkey,omitempty"` + Lacpactoraggregation string `json:"lacpactoraggregation,omitempty"` + Lacpactorinsync string `json:"lacpactorinsync,omitempty"` + Lacpactorcollecting string `json:"lacpactorcollecting,omitempty"` + Lacpactordistributing string `json:"lacpactordistributing,omitempty"` + Lacpportmuxstate string `json:"lacpportmuxstate,omitempty"` + Lacpportrxstat string `json:"lacpportrxstat,omitempty"` + Lacpportselectstate string `json:"lacpportselectstate,omitempty"` + Lldpmode string `json:"lldpmode,omitempty"` } diff --git a/resource/config/network/channel_binding.go b/resource/config/channel_binding.go similarity index 97% rename from resource/config/network/channel_binding.go rename to resource/config/channel_binding.go index 2c57e65..93aefd1 100644 --- a/resource/config/network/channel_binding.go +++ b/resource/config/channel_binding.go @@ -12,19 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to channel_binding. -*/ +* Binding object which returns the resources bound to channel_binding. + */ type Channelbinding struct { /** * ID of an LA channel or LA channel in cluster configuration whose details you want the Citrix ADC to display. Specify an LA channel in LA/x notation, where x can range from 1 to 8 or a cluster LA channel in CLA/x notation or Link redundant channel in LR/x notation , where x can range from 1 to 4.
Minimum value = 1 */ Id string `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/channel_interface_binding.go b/resource/config/channel_interface_binding.go similarity index 93% rename from resource/config/network/channel_interface_binding.go rename to resource/config/channel_interface_binding.go index 512c077..2a94090 100644 --- a/resource/config/network/channel_interface_binding.go +++ b/resource/config/channel_interface_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the interface that can be bound to channel. -*/ + */ type Channelinterfacebinding struct { /** * Interfaces to be bound to the LA channel of a Citrix ADC or to the LA channel of a cluster configuration. - For an LA channel of a Citrix ADC, specify an interface in C/U notation (for example, 1/3). + For an LA channel of a Citrix ADC, specify an interface in C/U notation (for example, 1/3). For an LA channel of a cluster configuration, specify an interface in N/C/U notation (for example, 2/1/3). where C can take one of the following values: * 0 - Indicates a management interface. @@ -35,44 +35,42 @@ type Channelinterfacebinding struct { Ifnum []string `json:"ifnum,omitempty"` /** * The mode(AUTO/MANNUAL) for the LA channel. - */ + */ Lamode string `json:"lamode,omitempty"` /** * State of the member interfaces. - */ + */ Slavestate int `json:"slavestate,omitempty"` /** * Media type of the member interfaces. - */ + */ Slavemedia int `json:"slavemedia,omitempty"` /** * Speed of the member interfaces. - */ + */ Slavespeed int `json:"slavespeed,omitempty"` /** * Duplex of the member interfaces. - */ + */ Slaveduplex int `json:"slaveduplex,omitempty"` /** * Flowcontrol of the member interfaces. - */ + */ Slaveflowctl int `json:"slaveflowctl,omitempty"` /** * UP time of the member interfaces. - */ + */ Slavetime int `json:"slavetime,omitempty"` /** * LR set member interface state(active/inactive). - */ + */ Lractiveintf bool `json:"lractiveintf,omitempty"` /** - * New attribute added to identify the source of cmd, when SVM fires the nitro cmd, it will set the value of SVMCMD to be 1. - */ + * New attribute added to identify the source of cmd, when SVM fires the nitro cmd, it will set the value of SVMCMD to be 1. + */ Svmcmd int `json:"svmcmd,omitempty"` /** * ID of the LA channel or the cluster LA channel to which you want to bind interfaces. Specify an LA channel in LA/x notation, where x can range from 1 to 8 or a cluster LA channel in CLA/x notation or Link redundant channel in LR/x notation , where x can range from 1 to 4. - */ + */ Id string `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/ci.go b/resource/config/ci.go similarity index 97% rename from resource/config/network/ci.go rename to resource/config/ci.go index 2260aff..0b34983 100644 --- a/resource/config/network/ci.go +++ b/resource/config/ci.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for "CI" resource. -*/ + */ type Ci struct { //------- Read only Parameter ---------; Ifaces string `json:"ifaces,omitempty"` - } diff --git a/resource/config/cloud/cloudallowedngsticketprofile.go b/resource/config/cloudallowedngsticketprofile.go similarity index 96% rename from resource/config/cloud/cloudallowedngsticketprofile.go rename to resource/config/cloudallowedngsticketprofile.go index 51bb252..6a22016 100644 --- a/resource/config/cloud/cloudallowedngsticketprofile.go +++ b/resource/config/cloudallowedngsticketprofile.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for Allowed ticket profile for NGS resource. -*/ + */ type Cloudallowedngsticketprofile struct { /** * Profile name for allowed tickets - */ + */ Name string `json:"name,omitempty"` /** * Created name for allowed tickets - */ + */ Creator string `json:"creator,omitempty"` - } diff --git a/resource/config/cloud/cloudautoscalegroup.go b/resource/config/cloudautoscalegroup.go similarity index 88% rename from resource/config/cloud/cloudautoscalegroup.go rename to resource/config/cloudautoscalegroup.go index 496e90c..dae3d22 100644 --- a/resource/config/cloud/cloudautoscalegroup.go +++ b/resource/config/cloudautoscalegroup.go @@ -12,20 +12,19 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for Cloud autoscalegroup resource. -*/ + */ type Cloudautoscalegroup struct { Name string `json:"name,omitempty"` //------- Read only Parameter ---------; - Azcount string `json:"azcount,omitempty"` - Aznames string `json:"aznames,omitempty"` + Azcount string `json:"azcount,omitempty"` + Aznames string `json:"aznames,omitempty"` Graceful string `json:"graceful,omitempty"` - } diff --git a/resource/config/cloud/cloudcredential.go b/resource/config/cloudcredential.go similarity index 96% rename from resource/config/cloud/cloudcredential.go rename to resource/config/cloudcredential.go index 40ff549..a096603 100644 --- a/resource/config/cloud/cloudcredential.go +++ b/resource/config/cloudcredential.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for cloud credentials resource. -*/ + */ type Cloudcredential struct { /** * Tenant ID of the Credentials - */ + */ Tenantidentifier string `json:"tenantidentifier,omitempty"` /** * Application ID of the Credentials - */ + */ Applicationid string `json:"applicationid,omitempty"` /** * Application Secret of the Credentials. - */ + */ Applicationsecret string `json:"applicationsecret,omitempty"` //------- Read only Parameter ---------; Isset string `json:"isset,omitempty"` - } diff --git a/resource/config/cloud/cloudngsparameter.go b/resource/config/cloudngsparameter.go similarity index 96% rename from resource/config/cloud/cloudngsparameter.go rename to resource/config/cloudngsparameter.go index 8302a8a..93ec707 100644 --- a/resource/config/cloud/cloudngsparameter.go +++ b/resource/config/cloudngsparameter.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for cloud ngsparameter resource. -*/ + */ type Cloudngsparameter struct { /** * Enables blocking connections authenticated with a ticket createdby by an entity not whitelisted in allowedngstktprofile - */ + */ Blockonallowedngstktprof string `json:"blockonallowedngstktprof,omitempty"` /** * Enables the required UDT version to EDT connections in the CGS deployment - */ + */ Allowedudtversion string `json:"allowedudtversion,omitempty"` - } diff --git a/resource/config/cloud/cloudparameter.go b/resource/config/cloudparameter.go similarity index 96% rename from resource/config/cloud/cloudparameter.go rename to resource/config/cloudparameter.go index f41e503..32efc41 100644 --- a/resource/config/cloud/cloudparameter.go +++ b/resource/config/cloudparameter.go @@ -12,49 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for cloud parameter resource. -*/ + */ type Cloudparameter struct { /** * FQDN of the controller to which the Citrix ADC SDProxy Connects - */ + */ Controllerfqdn string `json:"controllerfqdn,omitempty"` /** * Port number of the controller to which the Citrix ADC SDProxy connects - */ + */ Controllerport int `json:"controllerport,omitempty"` /** * Instance ID of the customer provided by Trust - */ + */ Instanceid string `json:"instanceid,omitempty"` /** * Customer ID of the citrix cloud customer - */ + */ Customerid string `json:"customerid,omitempty"` /** * Resource Location of the customer provided by Trust - */ + */ Resourcelocation string `json:"resourcelocation,omitempty"` /** * Activation code for the NGS Connector instance - */ + */ Activationcode string `json:"activationcode,omitempty"` /** * Describes if the customer is a Staging/Production or Dev Citrix Cloud customer - */ + */ Deployment string `json:"deployment,omitempty"` /** * Identifies whether the connector is located Onprem, Aws or Azure - */ + */ Connectorresidence string `json:"connectorresidence,omitempty"` //------- Read only Parameter ---------; Controlconnectionstatus string `json:"controlconnectionstatus,omitempty"` - } diff --git a/resource/config/cloud/cloudparaminternal.go b/resource/config/cloudparaminternal.go similarity index 96% rename from resource/config/cloud/cloudparaminternal.go rename to resource/config/cloudparaminternal.go index 83862e8..d3df8f8 100644 --- a/resource/config/cloud/cloudparaminternal.go +++ b/resource/config/cloudparaminternal.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for cloud paramInternal resource. -*/ + */ type Cloudparaminternal struct { /** * Indicates if GUI in in FTU mode or not - */ + */ Nonftumode string `json:"nonftumode,omitempty"` //------- Read only Parameter ---------; Iamperm string `json:"iamperm,omitempty"` - } diff --git a/resource/config/cloud/cloudprofile.go b/resource/config/cloudprofile.go similarity index 96% rename from resource/config/cloud/cloudprofile.go rename to resource/config/cloudprofile.go index fa605cc..49f54a4 100644 --- a/resource/config/cloud/cloudprofile.go +++ b/resource/config/cloudprofile.go @@ -12,70 +12,69 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for cloud profile resource. -*/ + */ type Cloudprofile struct { /** * Name for the Cloud profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the profile is created. - */ + */ Name string `json:"name,omitempty"` /** * Type of cloud profile that you want to create, Vserver or based on Azure Tags - */ + */ Type string `json:"type,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Vservername string `json:"vservername,omitempty"` /** * Protocol used by the service (also called the service type). - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * IPv4 or IPv6 address to assign to the virtual server. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number for the virtual server. - */ + */ Port int `json:"port,omitempty"` /** * servicegroups bind to this server - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * The type of bound service - */ + */ Boundservicegroupsvctype string `json:"boundservicegroupsvctype,omitempty"` /** * The port number to be used for the bound service. - */ + */ Vsvrbindsvcport int `json:"vsvrbindsvcport,omitempty"` /** * Indicates graceful shutdown of the service. System will wait for all outstanding connections to this service to be closed before disabling the service. - */ + */ Graceful string `json:"graceful,omitempty"` /** * Time, in seconds, after which all the services configured on the server are disabled. - */ + */ Delay int `json:"delay,omitempty"` /** * Azure tag name - */ + */ Azuretagname string `json:"azuretagname,omitempty"` /** * Azure tag value - */ + */ Azuretagvalue string `json:"azuretagvalue,omitempty"` /** * Azure polling period (in seconds) - */ + */ Azurepollperiod int `json:"azurepollperiod,omitempty"` - } diff --git a/resource/config/cloud/cloudservice.go b/resource/config/cloudservice.go similarity index 97% rename from resource/config/cloud/cloudservice.go rename to resource/config/cloudservice.go index 83ed04d..a5f9113 100644 --- a/resource/config/cloud/cloudservice.go +++ b/resource/config/cloudservice.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for cloud service resource. -*/ + */ type Cloudservice struct { //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/cloud/cloudvserverip.go b/resource/config/cloudvserverip.go similarity index 97% rename from resource/config/cloud/cloudvserverip.go rename to resource/config/cloudvserverip.go index e836c52..838167b 100644 --- a/resource/config/cloud/cloudvserverip.go +++ b/resource/config/cloudvserverip.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cloud +package config /** * Configuration for Cloud virtual server IPs resource. -*/ + */ type Cloudvserverip struct { //------- Read only Parameter ---------; Ipaddress string `json:"ipaddress,omitempty"` - } diff --git a/resource/config/cluster/cluster.go b/resource/config/cluster.go similarity index 96% rename from resource/config/cluster/cluster.go rename to resource/config/cluster.go index 7b4ec7e..f3f34f8 100644 --- a/resource/config/cluster/cluster.go +++ b/resource/config/cluster.go @@ -12,19 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package cluster + */ +package config type Cluster struct { /** * Cluster IP address to which to add the node. - */ + */ Clip string `json:"clip,omitempty"` /** * Password for the nsroot account of the configuration coordinator (CCO). - */ + */ Password string `json:"password,omitempty"` - } diff --git a/resource/config/cluster/clusterfiles.go b/resource/config/clusterfiles.go similarity index 98% rename from resource/config/cluster/clusterfiles.go rename to resource/config/clusterfiles.go index 0709577..ab799b4 100644 --- a/resource/config/cluster/clusterfiles.go +++ b/resource/config/clusterfiles.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Configuration for files resource. -*/ + */ type Clusterfiles struct { /** * The directories and files to be synchronized. The available settings function as follows: @@ -62,5 +62,4 @@ type Clusterfiles struct { Default value: all */ Mode []string `json:"mode,omitempty"` - } diff --git a/resource/config/cluster/clusterinstance.go b/resource/config/clusterinstance.go similarity index 72% rename from resource/config/cluster/clusterinstance.go rename to resource/config/clusterinstance.go index 047b9bc..65d0840 100644 --- a/resource/config/cluster/clusterinstance.go +++ b/resource/config/clusterinstance.go @@ -12,76 +12,75 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Configuration for cluster instance resource. -*/ + */ type Clusterinstance struct { /** * Unique number that identifies the cluster. - */ + */ Clid int `json:"clid,omitempty"` /** * Amount of time, in seconds, after which nodes that do not respond to the heartbeats are assumed to be down.If the value is less than 3 sec, set the helloInterval parameter to 200 msec - */ + */ Deadinterval int `json:"deadinterval,omitempty"` /** * Interval, in milliseconds, at which heartbeats are sent to each cluster node to check the health status.Set the value to 200 msec, if the deadInterval parameter is less than 3 sec - */ + */ Hellointerval int `json:"hellointerval,omitempty"` /** * Preempt a cluster node that is configured as a SPARE if an ACTIVE node becomes available. - */ + */ Preemption string `json:"preemption,omitempty"` /** * Quorum Configuration Choices - "Majority" (recommended) requires majority of nodes to be online for the cluster to be UP. "None" relaxes this requirement. - */ + */ Quorumtype string `json:"quorumtype,omitempty"` /** * This option is required if the cluster nodes reside on different networks. - */ + */ Inc string `json:"inc,omitempty"` /** * By turning on this option packets destined to a service in a cluster will not under go any steering. - */ + */ Processlocal string `json:"processlocal,omitempty"` /** * This option enables you to retain existing connections on a node joining a Cluster system or when a node is being configured for passive timeout. By default, this option is disabled. - */ + */ Retainconnectionsoncluster string `json:"retainconnectionsoncluster,omitempty"` /** * View based on heartbeat only on bkplane interface - */ + */ Backplanebasedview string `json:"backplanebasedview,omitempty"` /** * strict mode for sync status of cluster. Depending on the the mode if there are any errors while applying config, sync status is displayed accordingly. By default the flag is disabled. - */ + */ Syncstatusstrictmode string `json:"syncstatusstrictmode,omitempty"` /** * The node group in a Cluster system used for transition from L2 to L3. - */ + */ Nodegroup string `json:"nodegroup,omitempty"` //------- Read only Parameter ---------; - Adminstate string `json:"adminstate,omitempty"` - Propstate string `json:"propstate,omitempty"` - Validmtu string `json:"validmtu,omitempty"` - Heterogeneousflag string `json:"heterogeneousflag,omitempty"` - Operationalstate string `json:"operationalstate,omitempty"` - Status string `json:"status,omitempty"` - Rsskeymismatch string `json:"rsskeymismatch,omitempty"` - Penummismatch string `json:"penummismatch,omitempty"` - Nodegroupstatewarning string `json:"nodegroupstatewarning,omitempty"` - Licensemismatch string `json:"licensemismatch,omitempty"` - Jumbonotsupported string `json:"jumbonotsupported,omitempty"` + Adminstate string `json:"adminstate,omitempty"` + Propstate string `json:"propstate,omitempty"` + Validmtu string `json:"validmtu,omitempty"` + Heterogeneousflag string `json:"heterogeneousflag,omitempty"` + Operationalstate string `json:"operationalstate,omitempty"` + Status string `json:"status,omitempty"` + Rsskeymismatch string `json:"rsskeymismatch,omitempty"` + Penummismatch string `json:"penummismatch,omitempty"` + Nodegroupstatewarning string `json:"nodegroupstatewarning,omitempty"` + Licensemismatch string `json:"licensemismatch,omitempty"` + Jumbonotsupported string `json:"jumbonotsupported,omitempty"` Clusternoheartbeatonnode string `json:"clusternoheartbeatonnode,omitempty"` - Clusternolinksetmbf string `json:"clusternolinksetmbf,omitempty"` - Clusternospottedip string `json:"clusternospottedip,omitempty"` - Nodepenummismatch string `json:"nodepenummismatch,omitempty"` - Operationalpropstate string `json:"operationalpropstate,omitempty"` - + Clusternolinksetmbf string `json:"clusternolinksetmbf,omitempty"` + Clusternospottedip string `json:"clusternospottedip,omitempty"` + Nodepenummismatch string `json:"nodepenummismatch,omitempty"` + Operationalpropstate string `json:"operationalpropstate,omitempty"` } diff --git a/resource/config/cluster/clusterinstance_binding.go b/resource/config/clusterinstance_binding.go similarity index 94% rename from resource/config/cluster/clusterinstance_binding.go rename to resource/config/clusterinstance_binding.go index 5735eef..d8d70c4 100644 --- a/resource/config/cluster/clusterinstance_binding.go +++ b/resource/config/clusterinstance_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** -* Binding object which returns the resources bound to clusterinstance_binding. -*/ +* Binding object which returns the resources bound to clusterinstance_binding. + */ type Clusterinstancebinding struct { /** * Unique number that identifies the cluster.
Minimum value = 1
Maximum value = 16 - */ + */ Clid int `json:"clid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusterinstance_clusternode_binding.go b/resource/config/clusterinstance_clusternode_binding.go similarity index 96% rename from resource/config/cluster/clusterinstance_clusternode_binding.go rename to resource/config/clusterinstance_clusternode_binding.go index 93fb003..5e381f3 100644 --- a/resource/config/cluster/clusterinstance_clusternode_binding.go +++ b/resource/config/clusterinstance_clusternode_binding.go @@ -12,66 +12,64 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the clusternode that can be bound to clusterinstance. -*/ + */ type Clusterinstanceclusternodebinding struct { /** * The unique number that identiies a cluster. - */ + */ Nodeid int `json:"nodeid,omitempty"` /** * The IP Address of the node. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Node Health state. - */ + */ Health string `json:"health,omitempty"` /** * Node clusterd state. - */ + */ Clusterhealth string `json:"clusterhealth,omitempty"` /** * Node effective health state. - */ + */ Effectivestate string `json:"effectivestate,omitempty"` /** * Master state. - */ + */ Masterstate string `json:"masterstate,omitempty"` /** * Active, Spare or Passive. An active node serves traffic. A spare node serves as a backup for active nodes. A passive node does not serve traffic. This may be useful during temporary maintenance activity where it is desirable that the node takes part in the consensus protocol, but not serve traffic. - */ + */ State string `json:"state,omitempty"` /** * This argument is used to determine whether the node is configuration coordinator (CCO). - */ + */ Isconfigurationcoordinator bool `json:"isconfigurationcoordinator,omitempty"` /** * This argument is used to determine whether it is local node. - */ + */ Islocalnode bool `json:"islocalnode,omitempty"` /** * This argument is used to determine if there is a RSS key mismatch at cluster node level. - */ + */ Nodersskeymismatch bool `json:"nodersskeymismatch,omitempty"` /** * This argument is used to determine if there is a License mismatch at cluster node level. - */ + */ Nodelicensemismatch bool `json:"nodelicensemismatch,omitempty"` /** * This argument is used to determine if Jumbo framework not supported at cluster node level. - */ + */ Nodejumbonotsupported bool `json:"nodejumbonotsupported,omitempty"` /** * Unique number that identifies the cluster. - */ + */ Clid int `json:"clid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusterinstance_node_binding.go b/resource/config/clusterinstance_node_binding.go similarity index 96% rename from resource/config/cluster/clusterinstance_node_binding.go rename to resource/config/clusterinstance_node_binding.go index 62f950f..50ed7d4 100644 --- a/resource/config/cluster/clusterinstance_node_binding.go +++ b/resource/config/clusterinstance_node_binding.go @@ -12,66 +12,64 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the node that can be bound to clusterinstance. -*/ + */ type Clusterinstancenodebinding struct { /** * The unique number that identiies a cluster. - */ + */ Nodeid uint32 `json:"nodeid,omitempty"` /** * The IP Address of the node. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Node Health state. - */ + */ Health string `json:"health,omitempty"` /** * Node clusterd state. - */ + */ Clusterhealth string `json:"clusterhealth,omitempty"` /** * Node effective health state. - */ + */ Effectivestate string `json:"effectivestate,omitempty"` /** * Master state. - */ + */ Masterstate string `json:"masterstate,omitempty"` /** * Active, Spare or Passive. An active node serves traffic. A spare node serves as a backup for active nodes. A passive node does not serve traffic. This may be useful during temporary maintenance activity where it is desirable that the node takes part in the consensus protocol, but not serve traffic. - */ + */ State string `json:"state,omitempty"` /** * This argument is used to determine whether the node is configuration coordinator (CCO). - */ + */ Isconfigurationcoordinator bool `json:"isconfigurationcoordinator,omitempty"` /** * This argument is used to determine whether it is local node. - */ + */ Islocalnode bool `json:"islocalnode,omitempty"` /** * This argument is used to determine if there is a RSS key mismatch at cluster node level. - */ + */ Nodersskeymismatch bool `json:"nodersskeymismatch,omitempty"` /** * This argument is used to determine if there is a License mismatch at cluster node level. - */ + */ Nodelicensemismatch bool `json:"nodelicensemismatch,omitempty"` /** * This argument is used to determine if Jumbo framework not supported at cluster node level. - */ + */ Nodejumbonotsupported bool `json:"nodejumbonotsupported,omitempty"` /** * Unique number that identifies the cluster. - */ + */ Clid uint32 `json:"clid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternode.go b/resource/config/clusternode.go similarity index 66% rename from resource/config/cluster/clusternode.go rename to resource/config/clusternode.go index fc5051b..9676117 100644 --- a/resource/config/cluster/clusternode.go +++ b/resource/config/clusternode.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Configuration for cluster node resource. -*/ + */ type Clusternode struct { /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid"` // Zero is a valid value /** * Citrix ADC IP (NSIP) address of the appliance to add to the cluster. Must be an IPv4 address. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Admin state of the cluster node. The available settings function as follows: @@ -37,7 +37,7 @@ type Clusternode struct { State string `json:"state,omitempty"` /** * Interface through which the node communicates with the other nodes in the cluster. Must be specified in the three-tuple form n/c/u, where n represents the node ID and c/u refers to the interface on the appliance. - */ + */ Backplane string `json:"backplane,omitempty"` /** * Preference for selecting a node as the configuration coordinator. The node with the lowest priority value is selected as the configuration coordinator. @@ -47,44 +47,43 @@ type Clusternode struct { Priority int `json:"priority"` // Zero is a valid value /** * The default node group in a Cluster system. - */ + */ Nodegroup string `json:"nodegroup,omitempty"` /** * Applicable for Passive node and node becomes passive after this timeout (in minutes) - */ + */ Delay int `json:"delay,omitempty"` /** * To set the tunnel mode - */ + */ Tunnelmode string `json:"tunnelmode,omitempty"` /** * Option to remove nodegroup config - */ + */ Clearnodegroupconfig string `json:"clearnodegroupconfig,omitempty"` //------- Read only Parameter ---------; - Clusterhealth string `json:"clusterhealth,omitempty"` - Effectivestate string `json:"effectivestate,omitempty"` - Operationalsyncstate string `json:"operationalsyncstate,omitempty"` - Syncfailurereason string `json:"syncfailurereason,omitempty"` - Masterstate string `json:"masterstate,omitempty"` - Health string `json:"health,omitempty"` - Syncstate string `json:"syncstate,omitempty"` + Clusterhealth string `json:"clusterhealth,omitempty"` + Effectivestate string `json:"effectivestate,omitempty"` + Operationalsyncstate string `json:"operationalsyncstate,omitempty"` + Syncfailurereason string `json:"syncfailurereason,omitempty"` + Masterstate string `json:"masterstate,omitempty"` + Health string `json:"health,omitempty"` + Syncstate string `json:"syncstate,omitempty"` Isconfigurationcoordinator string `json:"isconfigurationcoordinator,omitempty"` - Islocalnode string `json:"islocalnode,omitempty"` - Nodersskeymismatch string `json:"nodersskeymismatch,omitempty"` - Nodelicensemismatch string `json:"nodelicensemismatch,omitempty"` - Nodejumbonotsupported string `json:"nodejumbonotsupported,omitempty"` - Nodelist string `json:"nodelist,omitempty"` - Ifaceslist string `json:"ifaceslist,omitempty"` - Enabledifaces string `json:"enabledifaces,omitempty"` - Disabledifaces string `json:"disabledifaces,omitempty"` - Partialfailifaces string `json:"partialfailifaces,omitempty"` - Hamonifaces string `json:"hamonifaces,omitempty"` - Name string `json:"name,omitempty"` - Cfgflags string `json:"cfgflags,omitempty"` - Routemonitor string `json:"routemonitor,omitempty"` - Netmask string `json:"netmask,omitempty"` - + Islocalnode string `json:"islocalnode,omitempty"` + Nodersskeymismatch string `json:"nodersskeymismatch,omitempty"` + Nodelicensemismatch string `json:"nodelicensemismatch,omitempty"` + Nodejumbonotsupported string `json:"nodejumbonotsupported,omitempty"` + Nodelist string `json:"nodelist,omitempty"` + Ifaceslist string `json:"ifaceslist,omitempty"` + Enabledifaces string `json:"enabledifaces,omitempty"` + Disabledifaces string `json:"disabledifaces,omitempty"` + Partialfailifaces string `json:"partialfailifaces,omitempty"` + Hamonifaces string `json:"hamonifaces,omitempty"` + Name string `json:"name,omitempty"` + Cfgflags string `json:"cfgflags,omitempty"` + Routemonitor string `json:"routemonitor,omitempty"` + Netmask string `json:"netmask,omitempty"` } diff --git a/resource/config/cluster/clusternode_binding.go b/resource/config/clusternode_binding.go similarity index 95% rename from resource/config/cluster/clusternode_binding.go rename to resource/config/clusternode_binding.go index 0f8435e..644442b 100644 --- a/resource/config/cluster/clusternode_binding.go +++ b/resource/config/clusternode_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** -* Binding object which returns the resources bound to clusternode_binding. -*/ +* Binding object which returns the resources bound to clusternode_binding. + */ type Clusternodebinding struct { /** * ID of the cluster node for which to display information. If an ID is not provided, information about all nodes is shown.
Default value: 255
Minimum value = 0
Maximum value = 31 - */ + */ Nodeid int `json:"nodeid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternode_routemonitor_binding.go b/resource/config/clusternode_routemonitor_binding.go similarity index 91% rename from resource/config/cluster/clusternode_routemonitor_binding.go rename to resource/config/clusternode_routemonitor_binding.go index eeb0d00..c77f71d 100644 --- a/resource/config/cluster/clusternode_routemonitor_binding.go +++ b/resource/config/clusternode_routemonitor_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the routemonitor that can be bound to clusternode. -*/ + */ type Clusternoderoutemonitorbinding struct { /** * The IP address (IPv4 or IPv6). - */ + */ Routemonitor string `json:"routemonitor,omitempty"` /** * The netmask. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Current routemonstate - */ + */ Routemonstate int `json:"routemonstate,omitempty"` /** - * A number that uniquely identifies the cluster node. - */ + * A number that uniquely identifies the cluster node. + */ Nodeid int `json:"nodeid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup.go b/resource/config/clusternodegroup.go similarity index 89% rename from resource/config/cluster/clusternodegroup.go rename to resource/config/clusternodegroup.go index 785a41a..17b5962 100644 --- a/resource/config/cluster/clusternodegroup.go +++ b/resource/config/clusternodegroup.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Configuration for Node group object type resource. -*/ + */ type Clusternodegroup struct { /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` /** * Specifies whether cluster nodes, that are not part of the nodegroup, will be used as backup for the nodegroup. @@ -38,19 +38,18 @@ type Clusternodegroup struct { Sticky string `json:"sticky,omitempty"` /** * State of the nodegroup. All the nodes binding to this nodegroup must have the same state. ACTIVE/SPARE/PASSIVE - */ + */ State string `json:"state,omitempty"` /** * Priority of Nodegroup. This priority is used for all the nodes bound to the nodegroup for Nodegroup selection - */ + */ Priority int `json:"priority,omitempty"` //------- Read only Parameter ---------; - Currentnodemask string `json:"currentnodemask,omitempty"` - Backupnodemask string `json:"backupnodemask,omitempty"` + Currentnodemask string `json:"currentnodemask,omitempty"` + Backupnodemask string `json:"backupnodemask,omitempty"` Boundedentitiescntfrompe string `json:"boundedentitiescntfrompe,omitempty"` - Activelist string `json:"activelist,omitempty"` - Backuplist string `json:"backuplist,omitempty"` - + Activelist string `json:"activelist,omitempty"` + Backuplist string `json:"backuplist,omitempty"` } diff --git a/resource/config/cluster/clusternodegroup_authenticationvserver_binding.go b/resource/config/clusternodegroup_authenticationvserver_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_authenticationvserver_binding.go rename to resource/config/clusternodegroup_authenticationvserver_binding.go index 5354385..4c1af02 100644 --- a/resource/config/cluster/clusternodegroup_authenticationvserver_binding.go +++ b/resource/config/clusternodegroup_authenticationvserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the authenticationvserver that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupauthenticationvserverbinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_binding.go b/resource/config/clusternodegroup_binding.go similarity index 94% rename from resource/config/cluster/clusternodegroup_binding.go rename to resource/config/clusternodegroup_binding.go index 610d35e..29bd9b3 100644 --- a/resource/config/cluster/clusternodegroup_binding.go +++ b/resource/config/clusternodegroup_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** -* Binding object which returns the resources bound to clusternodegroup_binding. -*/ +* Binding object which returns the resources bound to clusternodegroup_binding. + */ type Clusternodegroupbinding struct { /** - * Name of the nodegroup to be displayed. If a name is not provided, information about all nodegroups is displayed.
Minimum value = - */ + * Name of the nodegroup to be displayed. If a name is not provided, information about all nodegroups is displayed.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_clusternode_binding.go b/resource/config/clusternodegroup_clusternode_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_clusternode_binding.go rename to resource/config/clusternodegroup_clusternode_binding.go index 44b50b9..07da773 100644 --- a/resource/config/cluster/clusternodegroup_clusternode_binding.go +++ b/resource/config/clusternodegroup_clusternode_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the clusternode that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupclusternodebinding struct { /** * Nodes in the nodegroup - */ + */ Node int `json:"node,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_crvserver_binding.go b/resource/config/clusternodegroup_crvserver_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_crvserver_binding.go rename to resource/config/clusternodegroup_crvserver_binding.go index f623dfe..6a58e3a 100644 --- a/resource/config/cluster/clusternodegroup_crvserver_binding.go +++ b/resource/config/clusternodegroup_crvserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the crvserver that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupcrvserverbinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_csvserver_binding.go b/resource/config/clusternodegroup_csvserver_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_csvserver_binding.go rename to resource/config/clusternodegroup_csvserver_binding.go index 11b8f4b..695a3fa 100644 --- a/resource/config/cluster/clusternodegroup_csvserver_binding.go +++ b/resource/config/clusternodegroup_csvserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the csvserver that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupcsvserverbinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_gslbsite_binding.go b/resource/config/clusternodegroup_gslbsite_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_gslbsite_binding.go rename to resource/config/clusternodegroup_gslbsite_binding.go index 4707a3f..89fc508 100644 --- a/resource/config/cluster/clusternodegroup_gslbsite_binding.go +++ b/resource/config/clusternodegroup_gslbsite_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the gslbsite that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupgslbsitebinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Gslbsite string `json:"gslbsite,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_gslbvserver_binding.go b/resource/config/clusternodegroup_gslbvserver_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_gslbvserver_binding.go rename to resource/config/clusternodegroup_gslbvserver_binding.go index b13144c..d1f40bf 100644 --- a/resource/config/cluster/clusternodegroup_gslbvserver_binding.go +++ b/resource/config/clusternodegroup_gslbvserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the gslbvserver that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupgslbvserverbinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_identifier_binding.go b/resource/config/clusternodegroup_identifier_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_identifier_binding.go rename to resource/config/clusternodegroup_identifier_binding.go index 1213817..738e5fe 100644 --- a/resource/config/cluster/clusternodegroup_identifier_binding.go +++ b/resource/config/clusternodegroup_identifier_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the identifier that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupidentifierbinding struct { /** * stream identifier and rate limit identifier that need to be bound to this nodegroup. - */ + */ Identifiername string `json:"identifiername,omitempty"` /** * Name of the nodegroup to which you want to bind a cluster node or an entity. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_lbvserver_binding.go b/resource/config/clusternodegroup_lbvserver_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_lbvserver_binding.go rename to resource/config/clusternodegroup_lbvserver_binding.go index 4da9ae9..6170478 100644 --- a/resource/config/cluster/clusternodegroup_lbvserver_binding.go +++ b/resource/config/clusternodegroup_lbvserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the lbvserver that can be bound to clusternodegroup. -*/ + */ type Clusternodegrouplbvserverbinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_limitidentifier_binding.go b/resource/config/clusternodegroup_limitidentifier_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_limitidentifier_binding.go rename to resource/config/clusternodegroup_limitidentifier_binding.go index 362bc42..abbf2a7 100644 --- a/resource/config/cluster/clusternodegroup_limitidentifier_binding.go +++ b/resource/config/clusternodegroup_limitidentifier_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the limitidentifier that can be bound to clusternodegroup. -*/ + */ type Clusternodegrouplimitidentifierbinding struct { /** * stream identifier and rate limit identifier that need to be bound to this nodegroup. - */ + */ Identifiername string `json:"identifiername,omitempty"` /** * Name of the nodegroup to which you want to bind a cluster node or an entity. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_node_binding.go b/resource/config/clusternodegroup_node_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_node_binding.go rename to resource/config/clusternodegroup_node_binding.go index 86a98af..3478a61 100644 --- a/resource/config/cluster/clusternodegroup_node_binding.go +++ b/resource/config/clusternodegroup_node_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the node that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupnodebinding struct { /** * Nodes in the nodegroup - */ + */ Node uint32 `json:"node,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_nslimitidentifier_binding.go b/resource/config/clusternodegroup_nslimitidentifier_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_nslimitidentifier_binding.go rename to resource/config/clusternodegroup_nslimitidentifier_binding.go index 6eb6292..29fe19d 100644 --- a/resource/config/cluster/clusternodegroup_nslimitidentifier_binding.go +++ b/resource/config/clusternodegroup_nslimitidentifier_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the nslimitidentifier that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupnslimitidentifierbinding struct { /** * stream identifier and rate limit identifier that need to be bound to this nodegroup. - */ + */ Identifiername string `json:"identifiername,omitempty"` /** * Name of the nodegroup to which you want to bind a cluster node or an entity. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_service_binding.go b/resource/config/clusternodegroup_service_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_service_binding.go rename to resource/config/clusternodegroup_service_binding.go index 8428d44..15508de 100644 --- a/resource/config/cluster/clusternodegroup_service_binding.go +++ b/resource/config/clusternodegroup_service_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the service that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupservicebinding struct { /** * name of the service bound to this nodegroup. - */ + */ Service string `json:"service,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_site_binding.go b/resource/config/clusternodegroup_site_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_site_binding.go rename to resource/config/clusternodegroup_site_binding.go index d7bd4b2..2686655 100644 --- a/resource/config/cluster/clusternodegroup_site_binding.go +++ b/resource/config/clusternodegroup_site_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the site that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupsitebinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Gslbsite string `json:"gslbsite,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_streamidentifier_binding.go b/resource/config/clusternodegroup_streamidentifier_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_streamidentifier_binding.go rename to resource/config/clusternodegroup_streamidentifier_binding.go index 8a790a1..23e00b3 100644 --- a/resource/config/cluster/clusternodegroup_streamidentifier_binding.go +++ b/resource/config/clusternodegroup_streamidentifier_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the streamidentifier that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupstreamidentifierbinding struct { /** * stream identifier and rate limit identifier that need to be bound to this nodegroup. - */ + */ Identifiername string `json:"identifiername,omitempty"` /** * Name of the nodegroup to which you want to bind a cluster node or an entity. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_vpnvserver_binding.go b/resource/config/clusternodegroup_vpnvserver_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_vpnvserver_binding.go rename to resource/config/clusternodegroup_vpnvserver_binding.go index c46435f..63bdf08 100644 --- a/resource/config/cluster/clusternodegroup_vpnvserver_binding.go +++ b/resource/config/clusternodegroup_vpnvserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the vpnvserver that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupvpnvserverbinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusternodegroup_vserver_binding.go b/resource/config/clusternodegroup_vserver_binding.go similarity index 96% rename from resource/config/cluster/clusternodegroup_vserver_binding.go rename to resource/config/clusternodegroup_vserver_binding.go index 56583c5..b066b08 100644 --- a/resource/config/cluster/clusternodegroup_vserver_binding.go +++ b/resource/config/clusternodegroup_vserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Binding class showing the vserver that can be bound to clusternodegroup. -*/ + */ type Clusternodegroupvserverbinding struct { /** * vserver that need to be bound to this nodegroup. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cluster/clusterpropstatus.go b/resource/config/clusterpropstatus.go similarity index 91% rename from resource/config/cluster/clusterpropstatus.go rename to resource/config/clusterpropstatus.go index f92ce45..09d419c 100644 --- a/resource/config/cluster/clusterpropstatus.go +++ b/resource/config/clusterpropstatus.go @@ -12,20 +12,18 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package cluster + */ +package config type Clusterpropstatus struct { /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Numpropcmdfailed string `json:"numpropcmdfailed,omitempty"` - Cmdstrs string `json:"cmdstrs,omitempty"` - + Cmdstrs string `json:"cmdstrs,omitempty"` } diff --git a/resource/config/cluster/clustersync.go b/resource/config/clustersync.go similarity index 96% rename from resource/config/cluster/clustersync.go rename to resource/config/clustersync.go index 3dfa04a..a5dc791 100644 --- a/resource/config/cluster/clustersync.go +++ b/resource/config/clustersync.go @@ -12,13 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cluster +package config /** * Configuration for sync resource. -*/ + */ type Clustersync struct { - } diff --git a/resource/config/cmp/cmpaction.go b/resource/config/cmpaction.go similarity index 89% rename from resource/config/cmp/cmpaction.go rename to resource/config/cmpaction.go index e905028..e93b7a2 100644 --- a/resource/config/cmp/cmpaction.go +++ b/resource/config/cmpaction.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Configuration for compression action resource. -*/ + */ type Cmpaction struct { /** - * Name of the compression action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the action is added. + * Name of the compression action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the action is added. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp action" or 'my cmp action'). */ Name string `json:"name,omitempty"` /** - * Type of compression performed by this action. - Available settings function as follows: + * Type of compression performed by this action. + Available settings function as follows: * COMPRESS - Apply GZIP or DEFLATE compression to the response, depending on the request header. Prefer GZIP. * GZIP - Apply GZIP compression. * DEFLATE - Apply DEFLATE compression. @@ -37,20 +37,20 @@ type Cmpaction struct { Cmptype string `json:"cmptype,omitempty"` /** * Control insertion of the Vary header in HTTP responses compressed by Citrix ADC. Intermediate caches store different versions of the response for different values of the headers present in the Vary response header. - */ + */ Addvaryheader string `json:"addvaryheader,omitempty"` /** * The value of the HTTP Vary header for compressed responses. - */ + */ Varyheadervalue string `json:"varyheadervalue,omitempty"` /** * The type of delta action (if delta type compression action is defined). - */ + */ Deltatype string `json:"deltatype,omitempty"` /** * New name for the compression action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at - (@), equals (=), and hyphen (-) characters. - Choose a name that can be correlated with the function that the action performs. + (@), equals (=), and hyphen (-) characters. + Choose a name that can be correlated with the function that the action performs. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp action" or 'my cmp action'). */ @@ -58,8 +58,7 @@ type Cmpaction struct { //------- Read only Parameter ---------; - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Isdefault string `json:"isdefault,omitempty"` - } diff --git a/resource/config/cmp/cmpglobal_binding.go b/resource/config/cmpglobal_binding.go similarity index 95% rename from resource/config/cmp/cmpglobal_binding.go rename to resource/config/cmpglobal_binding.go index 702387f..b253555 100644 --- a/resource/config/cmp/cmpglobal_binding.go +++ b/resource/config/cmpglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** -* Binding object which returns the resources bound to cmpglobal_binding. -*/ +* Binding object which returns the resources bound to cmpglobal_binding. + */ type Cmpglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmpglobal_cmppolicy_binding.go b/resource/config/cmpglobal_cmppolicy_binding.go similarity index 96% rename from resource/config/cmp/cmpglobal_cmppolicy_binding.go rename to resource/config/cmpglobal_cmppolicy_binding.go index 9c0ea12..48299c8 100644 --- a/resource/config/cmp/cmpglobal_cmppolicy_binding.go +++ b/resource/config/cmpglobal_cmppolicy_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the cmppolicy that can be bound to cmpglobal. -*/ + */ type Cmpglobalcmppolicybinding struct { /** * The name of the globally bound HTTP compression policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Positive integer specifying the priority of the policy. The lower the number, the higher the priority. By default, polices within a label are evaluated in the order of their priority numbers. @@ -31,20 +31,20 @@ type Cmpglobalcmppolicybinding struct { Priority int `json:"priority,omitempty"` /** * The current state of the policy binding. This attribute is relevant only for CLASSIC policies. - */ + */ State string `json:"state,omitempty"` /** * Bind point to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol int `json:"numpol,omitempty"` /** * Policy type (Classic/Advanced) to be bound.Used for display. - */ - Policytype string `json:"policytype,omitempty"` + */ + Policytype string `json:"policytype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` /** * Expression or other value specifying the priority of the next policy, within the policy label, to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -52,7 +52,7 @@ type Cmpglobalcmppolicybinding struct { * END - Stop evaluation. * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. * An expression that evaluates to a number. - If you specify an expression, it's evaluation result determines the next policy to evaluate, as follows: + If you specify an expression, it's evaluation result determines the next policy to evaluate, as follows: * If the expression evaluates to a higher numbered priority, that policy is evaluated next. * If the expression evaluates to the priority of the current policy, the policy with the next higher priority number is evaluated next. * If the expression evaluates to a priority number that is numerically higher than the highest priority number, policy evaluation ends. @@ -64,16 +64,14 @@ type Cmpglobalcmppolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. Applicable only for default-syntax policies. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. This argument is relevant only for advanced (default-syntax) policies. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. Applicable only to advanced (default-syntax) policies. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmpglobal_policy_binding.go b/resource/config/cmpglobal_policy_binding.go similarity index 96% rename from resource/config/cmp/cmpglobal_policy_binding.go rename to resource/config/cmpglobal_policy_binding.go index fb93d9f..03dcf72 100644 --- a/resource/config/cmp/cmpglobal_policy_binding.go +++ b/resource/config/cmpglobal_policy_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the policy that can be bound to cmpglobal. -*/ + */ type Cmpglobalpolicybinding struct { /** * The name of the globally bound HTTP compression policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Positive integer specifying the priority of the policy. The lower the number, the higher the priority. By default, polices within a label are evaluated in the order of their priority numbers. @@ -31,20 +31,20 @@ type Cmpglobalpolicybinding struct { Priority uint32 `json:"priority,omitempty"` /** * The current state of the policy binding. This attribute is relevant only for CLASSIC policies. - */ + */ State string `json:"state,omitempty"` /** * Bind point to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol uint32 `json:"numpol,omitempty"` /** * Policy type (Classic/Advanced) to be bound.Used for display. - */ - Policytype string `json:"policytype,omitempty"` + */ + Policytype string `json:"policytype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` /** * Expression or other value specifying the priority of the next policy, within the policy label, to evaluate if the current policy evaluates to TRUE. Specify one of the following values: @@ -52,7 +52,7 @@ type Cmpglobalpolicybinding struct { * END - Stop evaluation. * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. * An expression that evaluates to a number. - If you specify an expression, it's evaluation result determines the next policy to evaluate, as follows: + If you specify an expression, it's evaluation result determines the next policy to evaluate, as follows: * If the expression evaluates to a higher numbered priority, that policy is evaluated next. * If the expression evaluates to the priority of the current policy, the policy with the next higher priority number is evaluated next. * If the expression evaluates to a priority number that is numerically higher than the highest priority number, policy evaluation ends. @@ -64,16 +64,14 @@ type Cmpglobalpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. Applicable only for default-syntax policies. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. This argument is relevant only for advanced (default-syntax) policies. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. Applicable only to advanced (default-syntax) policies. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmpparameter.go b/resource/config/cmpparameter.go similarity index 98% rename from resource/config/cmp/cmpparameter.go rename to resource/config/cmpparameter.go index f6f8da8..50155b0 100644 --- a/resource/config/cmp/cmpparameter.go +++ b/resource/config/cmpparameter.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Configuration for CMP parameter resource. -*/ + */ type Cmpparameter struct { /** * Specify a compression level. Available settings function as follows: @@ -29,35 +29,35 @@ type Cmpparameter struct { Cmplevel string `json:"cmplevel,omitempty"` /** * Minimum quantum of data to be filled before compression begins. - */ + */ Quantumsize int `json:"quantumsize,omitempty"` /** * Allow the server to send compressed data to the Citrix ADC. With the default setting, the Citrix ADC appliance handles all compression. - */ + */ Servercmp string `json:"servercmp,omitempty"` /** * Heuristic basefile expiry. - */ + */ Heurexpiry string `json:"heurexpiry,omitempty"` /** * Threshold compression ratio for heuristic basefile expiry, multiplied by 100. For example, to set the threshold ratio to 1.25, specify 125. - */ + */ Heurexpirythres int `json:"heurexpirythres,omitempty"` /** * For heuristic basefile expiry, weightage to be given to historical delta compression ratio, specified as percentage. For example, to give 25% weightage to historical ratio (and therefore 75% weightage to the ratio for current delta compression transaction), specify 25. - */ + */ Heurexpiryhistwt int `json:"heurexpiryhistwt,omitempty"` /** * Smallest response size, in bytes, to be compressed. - */ + */ Minressize int `json:"minressize,omitempty"` /** * Citrix ADC CPU threshold after which compression is not performed. Range: 0 - 100 - */ + */ Cmpbypasspct int `json:"cmpbypasspct,omitempty"` /** * Citrix ADC does not wait for the quantum to be filled before starting to compress data. Upon receipt of a packet with a PUSH flag, the appliance immediately begins compression of the accumulated packets. - */ + */ Cmponpush string `json:"cmponpush,omitempty"` /** * Type of policy. Available settings function as follows: @@ -67,20 +67,19 @@ type Cmpparameter struct { Policytype string `json:"policytype,omitempty"` /** * Control insertion of the Vary header in HTTP responses compressed by Citrix ADC. Intermediate caches store different versions of the response for different values of the headers present in the Vary response header. - */ + */ Addvaryheader string `json:"addvaryheader,omitempty"` /** * The value of the HTTP Vary header for compressed responses. If this argument is not specified, a default value of "Accept-Encoding" will be used. - */ + */ Varyheadervalue string `json:"varyheadervalue,omitempty"` /** * Enable insertion of Cache-Control: private response directive to indicate response message is intended for a single user and must not be cached by a shared or proxy cache. - */ + */ Externalcache string `json:"externalcache,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/cmp/cmppolicy.go b/resource/config/cmppolicy.go similarity index 78% rename from resource/config/cmp/cmppolicy.go rename to resource/config/cmppolicy.go index c2d4fe9..48393a7 100644 --- a/resource/config/cmp/cmppolicy.go +++ b/resource/config/cmppolicy.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Configuration for compression policy resource. -*/ + */ type Cmppolicy struct { /** * Name of the HTTP compression policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - Can be changed after the policy is created. + Can be changed after the policy is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp policy" or 'my cmp policy'). */ @@ -31,17 +31,17 @@ type Cmppolicy struct { * Expression that determines which HTTP requests or responses match the compression policy. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** * The built-in or user-defined compression action to apply to the response when the policy matches a request or response. - */ + */ Resaction string `json:"resaction,omitempty"` /** * New name for the compression policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - Choose a name that reflects the function that the policy performs. + Choose a name that reflects the function that the policy performs. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp policy" or 'my cmp policy'). */ @@ -49,18 +49,17 @@ type Cmppolicy struct { //------- Read only Parameter ---------; - Expressiontype string `json:"expressiontype,omitempty"` - Reqaction string `json:"reqaction,omitempty"` - Hits string `json:"hits,omitempty"` - Txbytes string `json:"txbytes,omitempty"` - Rxbytes string `json:"rxbytes,omitempty"` - Clientttlb string `json:"clientttlb,omitempty"` + Expressiontype string `json:"expressiontype,omitempty"` + Reqaction string `json:"reqaction,omitempty"` + Hits string `json:"hits,omitempty"` + Txbytes string `json:"txbytes,omitempty"` + Rxbytes string `json:"rxbytes,omitempty"` + Clientttlb string `json:"clientttlb,omitempty"` Clienttransactions string `json:"clienttransactions,omitempty"` - Serverttlb string `json:"serverttlb,omitempty"` + Serverttlb string `json:"serverttlb,omitempty"` Servertransactions string `json:"servertransactions,omitempty"` - Description string `json:"description,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Isdefault string `json:"isdefault,omitempty"` - + Description string `json:"description,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Isdefault string `json:"isdefault,omitempty"` } diff --git a/resource/config/cmp/cmppolicy_binding.go b/resource/config/cmppolicy_binding.go similarity index 92% rename from resource/config/cmp/cmppolicy_binding.go rename to resource/config/cmppolicy_binding.go index dbf4272..04e4ac6 100644 --- a/resource/config/cmp/cmppolicy_binding.go +++ b/resource/config/cmppolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** -* Binding object which returns the resources bound to cmppolicy_binding. -*/ +* Binding object which returns the resources bound to cmppolicy_binding. + */ type Cmppolicybinding struct { /** - * Name of the HTTP compression policy for which to display details.
Minimum value = - */ + * Name of the HTTP compression policy for which to display details.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicy_cmpglobal_binding.go b/resource/config/cmppolicy_cmpglobal_binding.go similarity index 86% rename from resource/config/cmp/cmppolicy_cmpglobal_binding.go rename to resource/config/cmppolicy_cmpglobal_binding.go index d632bab..35529d6 100644 --- a/resource/config/cmp/cmppolicy_cmpglobal_binding.go +++ b/resource/config/cmppolicy_cmpglobal_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the cmpglobal that can be bound to cmppolicy. -*/ + */ type Cmppolicycmpglobalbinding struct { /** * The name of the entity to which the policy is bound. - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the HTTP compression policy for which to display details. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicy_cmppolicylabel_binding.go b/resource/config/cmppolicy_cmppolicylabel_binding.go similarity index 86% rename from resource/config/cmp/cmppolicy_cmppolicylabel_binding.go rename to resource/config/cmppolicy_cmppolicylabel_binding.go index df9bc3f..b24d997 100644 --- a/resource/config/cmp/cmppolicy_cmppolicylabel_binding.go +++ b/resource/config/cmppolicy_cmppolicylabel_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the cmppolicylabel that can be bound to cmppolicy. -*/ + */ type Cmppolicycmppolicylabelbinding struct { /** * The name of the entity to which the policy is bound. - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the HTTP compression policy for which to display details. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicy_crvserver_binding.go b/resource/config/cmppolicy_crvserver_binding.go similarity index 82% rename from resource/config/cmp/cmppolicy_crvserver_binding.go rename to resource/config/cmppolicy_crvserver_binding.go index 744aeea..2e988fb 100644 --- a/resource/config/cmp/cmppolicy_crvserver_binding.go +++ b/resource/config/cmppolicy_crvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the crvserver that can be bound to cmppolicy. -*/ + */ type Cmppolicycrvserverbinding struct { /** * The name of the entity to which the policy is bound. - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the HTTP compression policy for which to display details. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicy_csvserver_binding.go b/resource/config/cmppolicy_csvserver_binding.go similarity index 86% rename from resource/config/cmp/cmppolicy_csvserver_binding.go rename to resource/config/cmppolicy_csvserver_binding.go index e9fb92d..8e85b32 100644 --- a/resource/config/cmp/cmppolicy_csvserver_binding.go +++ b/resource/config/cmppolicy_csvserver_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the csvserver that can be bound to cmppolicy. -*/ + */ type Cmppolicycsvserverbinding struct { /** * The name of the entity to which the policy is bound. - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the HTTP compression policy for which to display details. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicy_global_binding.go b/resource/config/cmppolicy_global_binding.go similarity index 90% rename from resource/config/cmp/cmppolicy_global_binding.go rename to resource/config/cmppolicy_global_binding.go index 2fc1c5a..505e938 100644 --- a/resource/config/cmp/cmppolicy_global_binding.go +++ b/resource/config/cmppolicy_global_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the global that can be bound to cmppolicy. -*/ + */ type Cmppolicyglobalbinding struct { /** * The name of the entity to which the policy is bound. - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the HTTP compression policy for which to display details. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicy_lbvserver_binding.go b/resource/config/cmppolicy_lbvserver_binding.go similarity index 86% rename from resource/config/cmp/cmppolicy_lbvserver_binding.go rename to resource/config/cmppolicy_lbvserver_binding.go index 6d7e2b0..566e26b 100644 --- a/resource/config/cmp/cmppolicy_lbvserver_binding.go +++ b/resource/config/cmppolicy_lbvserver_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the lbvserver that can be bound to cmppolicy. -*/ + */ type Cmppolicylbvserverbinding struct { /** * The name of the entity to which the policy is bound. - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the HTTP compression policy for which to display details. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicy_policylabel_binding.go b/resource/config/cmppolicy_policylabel_binding.go similarity index 90% rename from resource/config/cmp/cmppolicy_policylabel_binding.go rename to resource/config/cmppolicy_policylabel_binding.go index df5d5f4..2a3ad4d 100644 --- a/resource/config/cmp/cmppolicy_policylabel_binding.go +++ b/resource/config/cmppolicy_policylabel_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the policylabel that can be bound to cmppolicy. -*/ + */ type Cmppolicypolicylabelbinding struct { /** * The name of the entity to which the policy is bound. - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the HTTP compression policy for which to display details. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicy_vserver_binding.go b/resource/config/cmppolicy_vserver_binding.go similarity index 90% rename from resource/config/cmp/cmppolicy_vserver_binding.go rename to resource/config/cmppolicy_vserver_binding.go index e93a59a..d65f331 100644 --- a/resource/config/cmp/cmppolicy_vserver_binding.go +++ b/resource/config/cmppolicy_vserver_binding.go @@ -12,36 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the vserver that can be bound to cmppolicy. -*/ + */ type Cmppolicyvserverbinding struct { /** * The name of the entity to which the policy is bound. - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the HTTP compression policy for which to display details. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicylabel.go b/resource/config/cmppolicylabel.go similarity index 82% rename from resource/config/cmp/cmppolicylabel.go rename to resource/config/cmppolicylabel.go index c0e8cba..696961b 100644 --- a/resource/config/cmp/cmppolicylabel.go +++ b/resource/config/cmppolicylabel.go @@ -12,23 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Configuration for compression policy label resource. -*/ + */ type Cmppolicylabel struct { /** - * Name of the HTTP compression policy label. Must begin with a letter, number, or the underscore character (_). Additional characters allowed, after the first character, are the hyphen (-), period (.) pound sign (#), space ( ), at sign (@), equals (=), and colon (:). The name must be unique within the list of policy labels for compression policies. Can be renamed after the policy label is created. + * Name of the HTTP compression policy label. Must begin with a letter, number, or the underscore character (_). Additional characters allowed, after the first character, are the hyphen (-), period (.) pound sign (#), space ( ), at sign (@), equals (=), and colon (:). The name must be unique within the list of policy labels for compression policies. Can be renamed after the policy label is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp policylabel" or 'my cmp policylabel'). */ Labelname string `json:"labelname,omitempty"` /** * Type of packets (request packets or response) against which to match the policies bound to this policy label. - */ + */ Type string `json:"type,omitempty"` /** * New name for the compression policy label. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -39,13 +39,12 @@ type Cmppolicylabel struct { //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Priority string `json:"priority,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Flowtype string `json:"flowtype,omitempty"` - Description string `json:"description,omitempty"` - + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` } diff --git a/resource/config/cmp/cmppolicylabel_binding.go b/resource/config/cmppolicylabel_binding.go similarity index 91% rename from resource/config/cmp/cmppolicylabel_binding.go rename to resource/config/cmppolicylabel_binding.go index 0b9b3ea..e9eeff8 100644 --- a/resource/config/cmp/cmppolicylabel_binding.go +++ b/resource/config/cmppolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** -* Binding object which returns the resources bound to cmppolicylabel_binding. -*/ +* Binding object which returns the resources bound to cmppolicylabel_binding. + */ type Cmppolicylabelbinding struct { /** - * Name of the HTTP compression policy label for which to display details.
Minimum value = - */ + * Name of the HTTP compression policy label for which to display details.
Minimum value = + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicylabel_cmppolicy_binding.go b/resource/config/cmppolicylabel_cmppolicy_binding.go similarity index 96% rename from resource/config/cmp/cmppolicylabel_cmppolicy_binding.go rename to resource/config/cmppolicylabel_cmppolicy_binding.go index 20bcbfa..009452d 100644 --- a/resource/config/cmp/cmppolicylabel_cmppolicy_binding.go +++ b/resource/config/cmppolicylabel_cmppolicy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the cmppolicy that can be bound to cmppolicylabel. -*/ + */ type Cmppolicylabelcmppolicybinding struct { /** * The compression policy name. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next higher priority number in the original label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the HTTP compression policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicylabel_policy_binding.go b/resource/config/cmppolicylabel_policy_binding.go similarity index 96% rename from resource/config/cmp/cmppolicylabel_policy_binding.go rename to resource/config/cmppolicylabel_policy_binding.go index 592835c..696a059 100644 --- a/resource/config/cmp/cmppolicylabel_policy_binding.go +++ b/resource/config/cmppolicylabel_policy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the policy that can be bound to cmppolicylabel. -*/ + */ type Cmppolicylabelpolicybinding struct { /** * The compression policy name. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next higher priority number in the original label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the HTTP compression policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cmp/cmppolicylabel_policybinding_binding.go b/resource/config/cmppolicylabel_policybinding_binding.go similarity index 96% rename from resource/config/cmp/cmppolicylabel_policybinding_binding.go rename to resource/config/cmppolicylabel_policybinding_binding.go index cf0c1c1..d48d548 100644 --- a/resource/config/cmp/cmppolicylabel_policybinding_binding.go +++ b/resource/config/cmppolicylabel_policybinding_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cmp +package config /** * Binding class showing the policybinding that can be bound to cmppolicylabel. -*/ + */ type Cmppolicylabelpolicybindingbinding struct { /** * The compression policy name. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next higher priority number in the original label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the HTTP compression policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionaction.go b/resource/config/contentinspectionaction.go similarity index 87% rename from resource/config/contentinspection/contentinspectionaction.go rename to resource/config/contentinspectionaction.go index 34362f6..82d8c7a 100644 --- a/resource/config/contentinspection/contentinspectionaction.go +++ b/resource/config/contentinspectionaction.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Configuration for Content Inspection action resource. -*/ + */ type Contentinspectionaction struct { /** * Name of the remote service action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Name string `json:"name,omitempty"` /** * Type of operation this action is going to perform. following actions are available to configure: @@ -35,19 +35,19 @@ type Contentinspectionaction struct { Type string `json:"type,omitempty"` /** * Name of the LB vserver or service - */ + */ Servername string `json:"servername,omitempty"` /** * IP address of remoteService - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port of remoteService - */ + */ Serverport int `json:"serverport,omitempty"` /** * Name of the ICAP profile to be attached to the contentInspection action. - */ + */ Icapprofilename string `json:"icapprofilename,omitempty"` /** * Name of the action to perform if the Vserver representing the remote service is not UP. This is not supported for NOINSPECTION Type. The Supported actions are: @@ -59,12 +59,11 @@ type Contentinspectionaction struct { //------- Read only Parameter ---------; - Reqtimeout string `json:"reqtimeout,omitempty"` + Reqtimeout string `json:"reqtimeout,omitempty"` Reqtimeoutaction string `json:"reqtimeoutaction,omitempty"` - Hits string `json:"hits,omitempty"` - Referencecount string `json:"referencecount,omitempty"` - Undefhits string `json:"undefhits,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Hits string `json:"hits,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/contentinspection/contentinspectioncallout.go b/resource/config/contentinspectioncallout.go similarity index 95% rename from resource/config/contentinspection/contentinspectioncallout.go rename to resource/config/contentinspectioncallout.go index 923c2a9..e9f590e 100644 --- a/resource/config/contentinspection/contentinspectioncallout.go +++ b/resource/config/contentinspectioncallout.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Configuration for Content Inspection callout resource. -*/ + */ type Contentinspectioncallout struct { /** * Name for the Content Inspection callout. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as an expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, stringmap, or callout. - */ + */ Name string `json:"name,omitempty"` /** * Type of the Content Inspection callout. It must be one of the following: @@ -31,19 +31,19 @@ type Contentinspectioncallout struct { Type string `json:"type,omitempty"` /** * Name of the Content Inspection profile. The type of the configured profile must match the type specified using -type argument. - */ + */ Profilename string `json:"profilename,omitempty"` /** * Name of the load balancing or content switching virtual server or service to which the Content Inspection request is issued. Mutually exclusive with server IP address and port parameters. The service type must be TCP or SSL_TCP. If there are vservers and services with the same name, then vserver is selected. - */ + */ Servername string `json:"servername,omitempty"` /** * IP address of Content Inspection server. Mutually exclusive with the server name parameter. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Port of the Content Inspection server. - */ + */ Serverport int `json:"serverport,omitempty"` /** * Type of data that the target callout agent returns in response to the callout. @@ -56,17 +56,16 @@ type Contentinspectioncallout struct { Returntype string `json:"returntype,omitempty"` /** * Expression that extracts the callout results from the response sent by the CI callout agent. Must be a response based expression, that is, it must begin with ICAP.RES. The operations in this expression must match the return type. For example, if you configure a return type of TEXT, the result expression must be a text based expression, as in the following example: icap.res.header("ISTag") - */ + */ Resultexpr string `json:"resultexpr,omitempty"` /** * Any comments to preserve information about this Content Inspection callout. - */ + */ Comment string `json:"comment,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Undefhits string `json:"undefhits,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` Undefreason string `json:"undefreason,omitempty"` - } diff --git a/resource/config/contentinspection/contentinspectionglobal_binding.go b/resource/config/contentinspectionglobal_binding.go similarity index 92% rename from resource/config/contentinspection/contentinspectionglobal_binding.go rename to resource/config/contentinspectionglobal_binding.go index d39868a..f87c0fe 100644 --- a/resource/config/contentinspection/contentinspectionglobal_binding.go +++ b/resource/config/contentinspectionglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** -* Binding object which returns the resources bound to contentinspectionglobal_binding. -*/ +* Binding object which returns the resources bound to contentinspectionglobal_binding. + */ type Contentinspectionglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionglobal_contentinspectionpolicy_binding.go b/resource/config/contentinspectionglobal_contentinspectionpolicy_binding.go similarity index 95% rename from resource/config/contentinspection/contentinspectionglobal_contentinspectionpolicy_binding.go rename to resource/config/contentinspectionglobal_contentinspectionpolicy_binding.go index a2243a8..198dfc3 100644 --- a/resource/config/contentinspection/contentinspectionglobal_contentinspectionpolicy_binding.go +++ b/resource/config/contentinspectionglobal_contentinspectionpolicy_binding.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the contentinspectionpolicy that can be bound to contentinspectionglobal. -*/ + */ type Contentinspectionglobalcontentinspectionpolicybinding struct { /** * Name of the contentInspection policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The bindpoint to which to policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of invocation. Available settings function as follows: @@ -54,13 +54,11 @@ type Contentinspectionglobalcontentinspectionpolicybinding struct { Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol int `json:"numpol,omitempty"` /** * flowtype of the bound contentInspection policy. - */ - Flowtype int `json:"flowtype,omitempty"` + */ + Flowtype int `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionglobal_policy_binding.go b/resource/config/contentinspectionglobal_policy_binding.go similarity index 95% rename from resource/config/contentinspection/contentinspectionglobal_policy_binding.go rename to resource/config/contentinspectionglobal_policy_binding.go index 6667736..cd652ae 100644 --- a/resource/config/contentinspection/contentinspectionglobal_policy_binding.go +++ b/resource/config/contentinspectionglobal_policy_binding.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the policy that can be bound to contentinspectionglobal. -*/ + */ type Contentinspectionglobalpolicybinding struct { /** * Name of the contentInspection policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The bindpoint to which to policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of invocation. Available settings function as follows: @@ -54,13 +54,11 @@ type Contentinspectionglobalpolicybinding struct { Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol uint32 `json:"numpol,omitempty"` /** * flowtype of the bound contentInspection policy. - */ - Flowtype uint32 `json:"flowtype,omitempty"` + */ + Flowtype uint32 `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionparameter.go b/resource/config/contentinspectionparameter.go similarity index 97% rename from resource/config/contentinspection/contentinspectionparameter.go rename to resource/config/contentinspectionparameter.go index 25a0907..11ca206 100644 --- a/resource/config/contentinspection/contentinspectionparameter.go +++ b/resource/config/contentinspectionparameter.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Configuration for Contentinspection parameter resource. -*/ + */ type Contentinspectionparameter struct { /** * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an error condition in evaluating the expression. @@ -28,5 +28,4 @@ type Contentinspectionparameter struct { * DROP - Drop the message without sending a response to the user. */ Undefaction string `json:"undefaction,omitempty"` - } diff --git a/resource/config/contentinspection/contentinspectionpolicy.go b/resource/config/contentinspectionpolicy.go similarity index 94% rename from resource/config/contentinspection/contentinspectionpolicy.go rename to resource/config/contentinspectionpolicy.go index 030a0e7..76322d0 100644 --- a/resource/config/contentinspection/contentinspectionpolicy.go +++ b/resource/config/contentinspectionpolicy.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Configuration for ContentInspection policy resource. -*/ + */ type Contentinspectionpolicy struct { /** * Name for the contentInspection policy. @@ -29,7 +29,7 @@ type Contentinspectionpolicy struct { Name string `json:"name,omitempty"` /** * Expression that the policy uses to determine whether to execute the specified action. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the contentInspection action to perform if the request matches this contentInspection policy. @@ -41,15 +41,15 @@ type Contentinspectionpolicy struct { Action string `json:"action,omitempty"` /** * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition. Only the above built-in actions can be used. - */ + */ Undefaction string `json:"undefaction,omitempty"` /** * Any type of information about this contentInspection policy. - */ + */ Comment string `json:"comment,omitempty"` /** * Name of the messagelog action to use for requests that match this policy. - */ + */ Logaction string `json:"logaction,omitempty"` /** * New name for the contentInspection policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. @@ -60,9 +60,8 @@ type Contentinspectionpolicy struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Undefhits string `json:"undefhits,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/contentinspection/contentinspectionpolicy_binding.go b/resource/config/contentinspectionpolicy_binding.go similarity index 92% rename from resource/config/contentinspection/contentinspectionpolicy_binding.go rename to resource/config/contentinspectionpolicy_binding.go index 82dd720..2f7a727 100644 --- a/resource/config/contentinspection/contentinspectionpolicy_binding.go +++ b/resource/config/contentinspectionpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** -* Binding object which returns the resources bound to contentinspectionpolicy_binding. -*/ +* Binding object which returns the resources bound to contentinspectionpolicy_binding. + */ type Contentinspectionpolicybinding struct { /** * Name of the contentInspection policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicy_contentinspectionglobal_binding.go b/resource/config/contentinspectionpolicy_contentinspectionglobal_binding.go similarity index 96% rename from resource/config/contentinspection/contentinspectionpolicy_contentinspectionglobal_binding.go rename to resource/config/contentinspectionpolicy_contentinspectionglobal_binding.go index d384dfc..aab362b 100644 --- a/resource/config/contentinspection/contentinspectionpolicy_contentinspectionglobal_binding.go +++ b/resource/config/contentinspectionpolicy_contentinspectionglobal_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the contentinspectionglobal that can be bound to contentinspectionpolicy. -*/ + */ type Contentinspectionpolicycontentinspectionglobalbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the contentInspection policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicy_contentinspectionpolicylabel_binding.go b/resource/config/contentinspectionpolicy_contentinspectionpolicylabel_binding.go similarity index 96% rename from resource/config/contentinspection/contentinspectionpolicy_contentinspectionpolicylabel_binding.go rename to resource/config/contentinspectionpolicy_contentinspectionpolicylabel_binding.go index 7f88f98..dc80b09 100644 --- a/resource/config/contentinspection/contentinspectionpolicy_contentinspectionpolicylabel_binding.go +++ b/resource/config/contentinspectionpolicy_contentinspectionpolicylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the contentinspectionpolicylabel that can be bound to contentinspectionpolicy. -*/ + */ type Contentinspectionpolicycontentinspectionpolicylabelbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the contentInspection policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicy_csvserver_binding.go b/resource/config/contentinspectionpolicy_csvserver_binding.go similarity index 96% rename from resource/config/contentinspection/contentinspectionpolicy_csvserver_binding.go rename to resource/config/contentinspectionpolicy_csvserver_binding.go index 11a1e0b..3941704 100644 --- a/resource/config/contentinspection/contentinspectionpolicy_csvserver_binding.go +++ b/resource/config/contentinspectionpolicy_csvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the csvserver that can be bound to contentinspectionpolicy. -*/ + */ type Contentinspectionpolicycsvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the contentInspection policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicy_global_binding.go b/resource/config/contentinspectionpolicy_global_binding.go similarity index 96% rename from resource/config/contentinspection/contentinspectionpolicy_global_binding.go rename to resource/config/contentinspectionpolicy_global_binding.go index 37088f9..cdc8e31 100644 --- a/resource/config/contentinspection/contentinspectionpolicy_global_binding.go +++ b/resource/config/contentinspectionpolicy_global_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the global that can be bound to contentinspectionpolicy. -*/ + */ type Contentinspectionpolicyglobalbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the contentInspection policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicy_lbvserver_binding.go b/resource/config/contentinspectionpolicy_lbvserver_binding.go similarity index 96% rename from resource/config/contentinspection/contentinspectionpolicy_lbvserver_binding.go rename to resource/config/contentinspectionpolicy_lbvserver_binding.go index 2e92e6e..f2d5484 100644 --- a/resource/config/contentinspection/contentinspectionpolicy_lbvserver_binding.go +++ b/resource/config/contentinspectionpolicy_lbvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the lbvserver that can be bound to contentinspectionpolicy. -*/ + */ type Contentinspectionpolicylbvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the contentInspection policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicy_policylabel_binding.go b/resource/config/contentinspectionpolicy_policylabel_binding.go similarity index 96% rename from resource/config/contentinspection/contentinspectionpolicy_policylabel_binding.go rename to resource/config/contentinspectionpolicy_policylabel_binding.go index cd832eb..7a13e45 100644 --- a/resource/config/contentinspection/contentinspectionpolicy_policylabel_binding.go +++ b/resource/config/contentinspectionpolicy_policylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the policylabel that can be bound to contentinspectionpolicy. -*/ + */ type Contentinspectionpolicypolicylabelbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the contentInspection policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicy_vserver_binding.go b/resource/config/contentinspectionpolicy_vserver_binding.go similarity index 96% rename from resource/config/contentinspection/contentinspectionpolicy_vserver_binding.go rename to resource/config/contentinspectionpolicy_vserver_binding.go index fb28964..e37cdd0 100644 --- a/resource/config/contentinspection/contentinspectionpolicy_vserver_binding.go +++ b/resource/config/contentinspectionpolicy_vserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the vserver that can be bound to contentinspectionpolicy. -*/ + */ type Contentinspectionpolicyvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the contentInspection policy for which to display settings. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicylabel.go b/resource/config/contentinspectionpolicylabel.go similarity index 83% rename from resource/config/contentinspection/contentinspectionpolicylabel.go rename to resource/config/contentinspectionpolicylabel.go index d39e95a..e05816f 100644 --- a/resource/config/contentinspection/contentinspectionpolicylabel.go +++ b/resource/config/contentinspectionpolicylabel.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Configuration for ContentInspection policy label resource. -*/ + */ type Contentinspectionpolicylabel struct { /** * Name for the contentInspection policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the contentInspection policy label is added. @@ -28,11 +28,11 @@ type Contentinspectionpolicylabel struct { Labelname string `json:"labelname,omitempty"` /** * Type of packets (request or response packets) against which to match the policies bound to this policy label. - */ + */ Type string `json:"type,omitempty"` /** * Any comments to preserve information about this contentInspection policy label. - */ + */ Comment string `json:"comment,omitempty"` /** * New name for the contentInspection policy label. @@ -44,13 +44,12 @@ type Contentinspectionpolicylabel struct { //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Priority string `json:"priority,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Flowtype string `json:"flowtype,omitempty"` - Isdefault string `json:"isdefault,omitempty"` - + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Isdefault string `json:"isdefault,omitempty"` } diff --git a/resource/config/contentinspection/contentinspectionpolicylabel_binding.go b/resource/config/contentinspectionpolicylabel_binding.go similarity index 92% rename from resource/config/contentinspection/contentinspectionpolicylabel_binding.go rename to resource/config/contentinspectionpolicylabel_binding.go index 76016a4..e709366 100644 --- a/resource/config/contentinspection/contentinspectionpolicylabel_binding.go +++ b/resource/config/contentinspectionpolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** -* Binding object which returns the resources bound to contentinspectionpolicylabel_binding. -*/ +* Binding object which returns the resources bound to contentinspectionpolicylabel_binding. + */ type Contentinspectionpolicylabelbinding struct { /** * Name of the contentInspection policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicylabel_contentinspectionpolicy_binding.go b/resource/config/contentinspectionpolicylabel_contentinspectionpolicy_binding.go similarity index 97% rename from resource/config/contentinspection/contentinspectionpolicylabel_contentinspectionpolicy_binding.go rename to resource/config/contentinspectionpolicylabel_contentinspectionpolicy_binding.go index 0924d3c..0030f9b 100644 --- a/resource/config/contentinspection/contentinspectionpolicylabel_contentinspectionpolicy_binding.go +++ b/resource/config/contentinspectionpolicylabel_contentinspectionpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the contentinspectionpolicy that can be bound to contentinspectionpolicylabel. -*/ + */ type Contentinspectionpolicylabelcontentinspectionpolicybinding struct { /** * Name of the contentInspection policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Suspend evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of invocation. Available settings function as follows: @@ -50,8 +50,6 @@ type Contentinspectionpolicylabelcontentinspectionpolicybinding struct { Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the contentInspection policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicylabel_policy_binding.go b/resource/config/contentinspectionpolicylabel_policy_binding.go similarity index 97% rename from resource/config/contentinspection/contentinspectionpolicylabel_policy_binding.go rename to resource/config/contentinspectionpolicylabel_policy_binding.go index a620db8..014ab33 100644 --- a/resource/config/contentinspection/contentinspectionpolicylabel_policy_binding.go +++ b/resource/config/contentinspectionpolicylabel_policy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the policy that can be bound to contentinspectionpolicylabel. -*/ + */ type Contentinspectionpolicylabelpolicybinding struct { /** * Name of the contentInspection policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Suspend evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of invocation. Available settings function as follows: @@ -50,8 +50,6 @@ type Contentinspectionpolicylabelpolicybinding struct { Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the contentInspection policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionpolicylabel_policybinding_binding.go b/resource/config/contentinspectionpolicylabel_policybinding_binding.go similarity index 97% rename from resource/config/contentinspection/contentinspectionpolicylabel_policybinding_binding.go rename to resource/config/contentinspectionpolicylabel_policybinding_binding.go index 42a6b59..4bc81f9 100644 --- a/resource/config/contentinspection/contentinspectionpolicylabel_policybinding_binding.go +++ b/resource/config/contentinspectionpolicylabel_policybinding_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Binding class showing the policybinding that can be bound to contentinspectionpolicylabel. -*/ + */ type Contentinspectionpolicylabelpolicybindingbinding struct { /** * Name of the contentInspection policy to bind to the policy label. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Suspend evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of invocation. Available settings function as follows: @@ -50,8 +50,6 @@ type Contentinspectionpolicylabelpolicybindingbinding struct { Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the contentInspection policy label to which to bind the policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/contentinspection/contentinspectionprofile.go b/resource/config/contentinspectionprofile.go similarity index 97% rename from resource/config/contentinspection/contentinspectionprofile.go rename to resource/config/contentinspectionprofile.go index 2703f0c..8519405 100644 --- a/resource/config/contentinspection/contentinspectionprofile.go +++ b/resource/config/contentinspectionprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package contentinspection +package config /** * Configuration for ContentInspection profile resource. -*/ + */ type Contentinspectionprofile struct { /** * Name of a ContentInspection profile. Must begin with a letter, number, or the underscore \(_\) character. Other characters allowed, after the first character, are the hyphen \(-\), period \(.\), hash \(\#\), space \( \), at \(@\), colon \(:\), and equal \(=\) characters. The name of a IPS profile cannot be changed after it is created. @@ -33,23 +33,22 @@ type Contentinspectionprofile struct { Type string `json:"type,omitempty"` /** * Ingress interface for CI profile.It is a mandatory argument while creating an ContentInspection profile of IPS type. - */ + */ Ingressinterface string `json:"ingressinterface,omitempty"` /** * Ingress Vlan for CI - */ + */ Ingressvlan int `json:"ingressvlan,omitempty"` /** * Egress interface for CI profile.It is a mandatory argument while creating an ContentInspection profile of type INLINEINSPECTION or MIRROR. - */ + */ Egressinterface string `json:"egressinterface,omitempty"` /** * IP Tunnel for CI profile. It is used while creating a ContentInspection profile of type MIRROR when the IDS device is in a different network - */ + */ Iptunnel string `json:"iptunnel,omitempty"` /** * Egress Vlan for CI - */ + */ Egressvlan int `json:"egressvlan,omitempty"` - } diff --git a/resource/config/cr/craction.go b/resource/config/craction.go similarity index 70% rename from resource/config/cr/craction.go rename to resource/config/craction.go index cc204ff..61fc37a 100644 --- a/resource/config/cr/craction.go +++ b/resource/config/craction.go @@ -12,28 +12,27 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Configuration for cache redirection action resource. -*/ + */ type Craction struct { /** * Name of the action for which to display detailed information. - */ + */ Name string `json:"name,omitempty"` //------- Read only Parameter ---------; - Crtype string `json:"crtype,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Isdefault string `json:"isdefault,omitempty"` - Hits string `json:"hits,omitempty"` + Crtype string `json:"crtype,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + Hits string `json:"hits,omitempty"` Referencecount string `json:"referencecount,omitempty"` - Undefhits string `json:"undefhits,omitempty"` - Comment string `json:"comment,omitempty"` - + Undefhits string `json:"undefhits,omitempty"` + Comment string `json:"comment,omitempty"` } diff --git a/resource/config/cr/crpolicy.go b/resource/config/crpolicy.go similarity index 77% rename from resource/config/cr/crpolicy.go rename to resource/config/crpolicy.go index 8352442..1a69bdc 100644 --- a/resource/config/cr/crpolicy.go +++ b/resource/config/crpolicy.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Configuration for cache redirection policy resource. -*/ + */ type Crpolicy struct { /** * Name for the cache redirection policy. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after the policy is created. - The following requirement applies only to the Citrix ADC CLI: + The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policy" or 'my policy'). */ Policyname string `json:"policyname,omitempty"` @@ -30,36 +30,35 @@ type Crpolicy struct { * Expression, or name of a named expression, against which traffic is evaluated. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** * Name of the built-in cache redirection action: CACHE/ORIGIN. - */ + */ Action string `json:"action,omitempty"` /** * The log action associated with the cache redirection policy - */ + */ Logaction string `json:"logaction,omitempty"` /** * The new name of the content switching policy. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Domain string `json:"domain,omitempty"` - Vstype string `json:"vstype,omitempty"` - Hits string `json:"hits,omitempty"` - Bindhits string `json:"bindhits,omitempty"` - Priority string `json:"priority,omitempty"` + Domain string `json:"domain,omitempty"` + Vstype string `json:"vstype,omitempty"` + Hits string `json:"hits,omitempty"` + Bindhits string `json:"bindhits,omitempty"` + Priority string `json:"priority,omitempty"` Activepolicy string `json:"activepolicy,omitempty"` Cspolicytype string `json:"cspolicytype,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Isdefault string `json:"isdefault,omitempty"` - + Labelname string `json:"labelname,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Isdefault string `json:"isdefault,omitempty"` } diff --git a/resource/config/cr/crpolicy_binding.go b/resource/config/crpolicy_binding.go similarity index 94% rename from resource/config/cr/crpolicy_binding.go rename to resource/config/crpolicy_binding.go index c083311..c5344da 100644 --- a/resource/config/cr/crpolicy_binding.go +++ b/resource/config/crpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** -* Binding object which returns the resources bound to crpolicy_binding. -*/ +* Binding object which returns the resources bound to crpolicy_binding. + */ type Crpolicybinding struct { /** - * Name of the cache redirection policy to display. If this parameter is omitted, details of all the policies are displayed.
Minimum value = - */ + * Name of the cache redirection policy to display. If this parameter is omitted, details of all the policies are displayed.
Minimum value = + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crpolicy_crvserver_binding.go b/resource/config/crpolicy_crvserver_binding.go similarity index 95% rename from resource/config/cr/crpolicy_crvserver_binding.go rename to resource/config/crpolicy_crvserver_binding.go index 96891f7..dbae680 100644 --- a/resource/config/cr/crpolicy_crvserver_binding.go +++ b/resource/config/crpolicy_crvserver_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the crvserver that can be bound to crpolicy. -*/ + */ type Crpolicycrvserverbinding struct { /** * Domain name. - */ + */ Domain string `json:"domain,omitempty"` /** * priority of bound policy - */ + */ Priority int `json:"priority,omitempty"` /** * Total number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Total number of hits. - */ + */ Pihits int `json:"pihits,omitempty"` /** * bind hits for PI CR Policy. - */ + */ Pipolicyhits int `json:"pipolicyhits,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the cache redirection policy to display. If this parameter is omitted, details of all the policies are displayed. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crpolicy_vserver_binding.go b/resource/config/crpolicy_vserver_binding.go similarity index 95% rename from resource/config/cr/crpolicy_vserver_binding.go rename to resource/config/crpolicy_vserver_binding.go index 2da5e40..56c0857 100644 --- a/resource/config/cr/crpolicy_vserver_binding.go +++ b/resource/config/crpolicy_vserver_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the vserver that can be bound to crpolicy. -*/ + */ type Crpolicyvserverbinding struct { /** * Domain name. - */ + */ Domain string `json:"domain,omitempty"` /** * priority of bound policy - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Total number of hits. - */ + */ Hits uint32 `json:"hits,omitempty"` /** * Total number of hits. - */ + */ Pihits uint32 `json:"pihits,omitempty"` /** * bind hits for PI CR Policy. - */ + */ Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the cache redirection policy to display. If this parameter is omitted, details of all the policies are displayed. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver.go b/resource/config/crvserver.go similarity index 87% rename from resource/config/cr/crvserver.go rename to resource/config/crvserver.go index 4656ea6..a9fb61b 100644 --- a/resource/config/cr/crvserver.go +++ b/resource/config/crvserver.go @@ -12,27 +12,27 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Configuration for CR virtual server resource. -*/ + */ type Crvserver struct { /** * Name for the cache redirection virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the cache redirection virtual server is created. - The following requirement applies only to the Citrix ADC CLI: + The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my server" or 'my server'). */ Name string `json:"name,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Protocol (type of service) handled by the virtual server. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * IPv4 or IPv6 address of the cache redirection virtual server. Usually a public IP address. Clients send connection requests to this IP address. @@ -41,15 +41,15 @@ type Crvserver struct { Ipv46 string `json:"ipv46,omitempty"` /** * Port number of the virtual server. - */ + */ Port int `json:"port,omitempty"` /** * The list of IPv4/IPv6 addresses bound to ipset would form a part of listening service on the current cr vserver - */ + */ Ipset string `json:"ipset,omitempty"` /** * Number of consecutive IP addresses, starting with the address specified by the IPAddress parameter, to include in a range of addresses assigned to this virtual server. - */ + */ Range int `json:"range,omitempty"` /** * Mode of operation for the cache redirection virtual server. Available settings function as follows: @@ -73,11 +73,11 @@ type Crvserver struct { Onpolicymatch string `json:"onpolicymatch,omitempty"` /** * URL of the server to which to redirect traffic if the cache redirection virtual server configured on the Citrix ADC becomes unavailable. - */ + */ Redirecturl string `json:"redirecturl,omitempty"` /** * Time-out value, in seconds, after which to terminate an idle client connection. - */ + */ Clttimeout int `json:"clttimeout,omitempty"` /** * Type of policy (URL or RULE) that takes precedence on the cache redirection virtual server. Applies only to cache redirection virtual servers that have both URL and RULE based policies. If you specify URL, URL based policies are applied first, in the following order: @@ -96,21 +96,21 @@ type Crvserver struct { Precedence string `json:"precedence,omitempty"` /** * Use ARP to determine the destination MAC address. - */ - Arp string `json:"arp,omitempty"` + */ + Arp string `json:"arp,omitempty"` Ghost string `json:"ghost,omitempty"` /** * Obsolete. - */ - Map string `json:"map,omitempty"` + */ + Map string `json:"map,omitempty"` Format string `json:"format,omitempty"` /** * Insert a via header in each HTTP request. In the case of a cache miss, the request is redirected from the cache server to the origin server. This header indicates whether the request is being sent from a cache server. - */ + */ Via string `json:"via,omitempty"` /** * Name of the default cache virtual server to which to redirect requests (the default target of the cache redirection virtual server). - */ + */ Cachevserver string `json:"cachevserver,omitempty"` /** * Name of the DNS virtual server that resolves domain names arriving at the forward proxy virtual server. @@ -119,96 +119,96 @@ type Crvserver struct { Dnsvservername string `json:"dnsvservername,omitempty"` /** * Destination virtual server for a transparent or forward proxy cache redirection virtual server. - */ + */ Destinationvserver string `json:"destinationvserver,omitempty"` /** * Default domain for reverse proxies. Domains are configured to direct an incoming request from a specified source domain to a specified target domain. There can be several configured pairs of source and target domains. You can select one pair to be the default. If the host header or URL of an incoming request does not include a source domain, this option sends the request to the specified target domain. - */ + */ Domain string `json:"domain,omitempty"` /** * Time-out, in minutes, for spillover persistence. - */ + */ Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` /** * For CONNECTION (or) DYNAMICCONNECTION spillover, the number of connections above which the virtual server enters spillover mode. For BANDWIDTH spillover, the amount of incoming and outgoing traffic (in Kbps) before spillover. For HEALTH spillover, the percentage of active services (by weight) below which spillover occurs. - */ + */ Sothreshold int `json:"sothreshold,omitempty"` /** * Reuse TCP connections to the origin server across client connections. Do not set this parameter unless the Service Type parameter is set to HTTP. If you set this parameter to OFF, the possible settings of the Redirect parameter function as follows: * CACHE - TCP connections to the cache servers are not reused. - * ORIGIN - TCP connections to the origin servers are not reused. + * ORIGIN - TCP connections to the origin servers are not reused. * POLICY - TCP connections to the origin servers are not reused. If you set the Reuse parameter to ON, connections to origin servers and connections to cache servers are reused. */ Reuse string `json:"reuse,omitempty"` /** * Initial state of the cache redirection virtual server. - */ + */ State string `json:"state,omitempty"` /** * Perform delayed cleanup of connections to this virtual server. - */ + */ Downstateflush string `json:"downstateflush,omitempty"` /** * Name of the backup virtual server to which traffic is forwarded if the active server becomes unavailable. - */ + */ Backupvserver string `json:"backupvserver,omitempty"` /** * Continue sending traffic to a backup virtual server even after the primary virtual server comes UP from the DOWN state. - */ + */ Disableprimaryondown string `json:"disableprimaryondown,omitempty"` /** * Use L2 parameters, such as MAC, VLAN, and channel to identify a connection. - */ + */ L2conn string `json:"l2conn,omitempty"` /** * Decides whether the backend connection made by Citrix ADC to the origin server will be HTTP or SSL. Applicable only for SSL type CR Forward proxy vserver. - */ + */ Backendssl string `json:"backendssl,omitempty"` /** * String specifying the listen policy for the cache redirection virtual server. Can be either an in-line expression or the name of a named expression. - */ + */ Listenpolicy string `json:"listenpolicy,omitempty"` /** * Priority of the listen policy specified by the Listen Policy parameter. The lower the number, higher the priority. - */ + */ Listenpriority int `json:"listenpriority,omitempty"` /** * Name of the profile containing TCP configuration information for the cache redirection virtual server. - */ + */ Tcpprofilename string `json:"tcpprofilename,omitempty"` /** * Name of the profile containing HTTP configuration information for cache redirection virtual server. - */ + */ Httpprofilename string `json:"httpprofilename,omitempty"` /** * Comments associated with this virtual server. - */ + */ Comment string `json:"comment,omitempty"` /** * Expression used to extract the source IP addresses from the requests originating from the cache. Can be either an in-line expression or the name of a named expression. - */ + */ Srcipexpr string `json:"srcipexpr,omitempty"` /** - * Use the client's IP address as the source IP address in requests sent to the origin server. + * Use the client's IP address as the source IP address in requests sent to the origin server. Note: You can enable this parameter to implement fully transparent CR deployment. */ Originusip string `json:"originusip,omitempty"` /** * Use a port number from the port range (set by using the set ns param command, or in the Create Virtual Server (Cache Redirection) dialog box) as the source port in the requests sent to the origin server. - */ + */ Useportrange string `json:"useportrange,omitempty"` /** * Enable logging of AppFlow information. - */ + */ Appflowlog string `json:"appflowlog,omitempty"` /** * Name of the network profile containing network configurations for the cache redirection virtual server. - */ + */ Netprofile string `json:"netprofile,omitempty"` /** * Criterion for responding to PING requests sent to this virtual server. If ACTIVE, respond only if the virtual server is available. If PASSIVE, respond even if the virtual server is not available. - */ + */ Icmpvsrresponse string `json:"icmpvsrresponse,omitempty"` /** * A host route is injected according to the setting on the virtual servers @@ -219,55 +219,54 @@ type Crvserver struct { Rhistate string `json:"rhistate,omitempty"` /** * Use origin ip/port while forwarding request to the cache. Change the destination IP, destination port of the request came to CR vserver to Origin IP and Origin Port and forward it to Cache - */ + */ Useoriginipportforcache string `json:"useoriginipportforcache,omitempty"` /** * Port number for external TCP probe. NetScaler provides support for external TCP health check of the vserver status over the selected port. This option is only supported for vservers assigned with an IPAddress or ipset. - */ + */ Tcpprobeport int `json:"tcpprobeport,omitempty"` /** * Citrix ADC provides support for external health check of the vserver status. Select HTTP or TCP probes for healthcheck - */ + */ Probeprotocol string `json:"probeprotocol,omitempty"` /** * HTTP code to return in SUCCESS case. - */ + */ Probesuccessresponsecode string `json:"probesuccessresponsecode,omitempty"` /** * Citrix ADC provides support for external health check of the vserver status. Select port for HTTP/TCP monitring - */ + */ Probeport int `json:"probeport,omitempty"` /** * New name for the cache redirection virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my name" or 'my name'). - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Ip string `json:"ip,omitempty"` - Value string `json:"value,omitempty"` - Ngname string `json:"ngname,omitempty"` - Type string `json:"type,omitempty"` - Curstate string `json:"curstate,omitempty"` - Status string `json:"status,omitempty"` - Sc string `json:"sc,omitempty"` - Authentication string `json:"authentication,omitempty"` - Homepage string `json:"homepage,omitempty"` - Rule string `json:"rule,omitempty"` - Policyname string `json:"policyname,omitempty"` - Pipolicyhits string `json:"pipolicyhits,omitempty"` - Servicename string `json:"servicename,omitempty"` - Weight string `json:"weight,omitempty"` - Targetvserver string `json:"targetvserver,omitempty"` - Priority string `json:"priority,omitempty"` - Somethod string `json:"somethod,omitempty"` - Sopersistence string `json:"sopersistence,omitempty"` - Lbvserver string `json:"lbvserver,omitempty"` - Bindpoint string `json:"bindpoint,omitempty"` - Invoke string `json:"invoke,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Labelname string `json:"labelname,omitempty"` + Ip string `json:"ip,omitempty"` + Value string `json:"value,omitempty"` + Ngname string `json:"ngname,omitempty"` + Type string `json:"type,omitempty"` + Curstate string `json:"curstate,omitempty"` + Status string `json:"status,omitempty"` + Sc string `json:"sc,omitempty"` + Authentication string `json:"authentication,omitempty"` + Homepage string `json:"homepage,omitempty"` + Rule string `json:"rule,omitempty"` + Policyname string `json:"policyname,omitempty"` + Pipolicyhits string `json:"pipolicyhits,omitempty"` + Servicename string `json:"servicename,omitempty"` + Weight string `json:"weight,omitempty"` + Targetvserver string `json:"targetvserver,omitempty"` + Priority string `json:"priority,omitempty"` + Somethod string `json:"somethod,omitempty"` + Sopersistence string `json:"sopersistence,omitempty"` + Lbvserver string `json:"lbvserver,omitempty"` + Bindpoint string `json:"bindpoint,omitempty"` + Invoke string `json:"invoke,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Labelname string `json:"labelname,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` } diff --git a/resource/config/cr/crvserver_analyticsprofile_binding.go b/resource/config/crvserver_analyticsprofile_binding.go similarity index 96% rename from resource/config/cr/crvserver_analyticsprofile_binding.go rename to resource/config/crvserver_analyticsprofile_binding.go index 7ab2377..e458b0f 100644 --- a/resource/config/cr/crvserver_analyticsprofile_binding.go +++ b/resource/config/crvserver_analyticsprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the analyticsprofile that can be bound to crvserver. -*/ + */ type Crvserveranalyticsprofilebinding struct { /** * Name of the analytics profile bound to the CR vserver. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_appflowpolicy_binding.go b/resource/config/crvserver_appflowpolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_appflowpolicy_binding.go rename to resource/config/crvserver_appflowpolicy_binding.go index 2844300..3cfe9d3 100644 --- a/resource/config/cr/crvserver_appflowpolicy_binding.go +++ b/resource/config/crvserver_appflowpolicy_binding.go @@ -12,51 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the appflowpolicy that can be bound to crvserver. -*/ + */ type Crvserverappflowpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * For a rewrite policy, the bind point to which to bind the policy. Note: This parameter applies only to rewrite policies, because content switching policies are evaluated only at request time. */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_appfwpolicy_binding.go b/resource/config/crvserver_appfwpolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_appfwpolicy_binding.go rename to resource/config/crvserver_appfwpolicy_binding.go index 8e484ee..ecc22f2 100644 --- a/resource/config/cr/crvserver_appfwpolicy_binding.go +++ b/resource/config/crvserver_appfwpolicy_binding.go @@ -12,54 +12,52 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the appfwpolicy that can be bound to crvserver. -*/ + */ type Crvserverappfwpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_appqoepolicy_binding.go b/resource/config/crvserver_appqoepolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_appqoepolicy_binding.go rename to resource/config/crvserver_appqoepolicy_binding.go index eab1ae5..136b1a3 100644 --- a/resource/config/cr/crvserver_appqoepolicy_binding.go +++ b/resource/config/crvserver_appqoepolicy_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the appqoepolicy that can be bound to crvserver. -*/ + */ type Crvserverappqoepolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_binding.go b/resource/config/crvserver_binding.go similarity index 90% rename from resource/config/cr/crvserver_binding.go rename to resource/config/crvserver_binding.go index 28dd02d..b2e8057 100644 --- a/resource/config/cr/crvserver_binding.go +++ b/resource/config/crvserver_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** -* Binding object which returns the resources bound to crvserver_binding. -*/ +* Binding object which returns the resources bound to crvserver_binding. + */ type Crvserverbinding struct { /** - * Name of a cache redirection virtual server about which to display detailed information.
Minimum value = - */ + * Name of a cache redirection virtual server about which to display detailed information.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_cachepolicy_binding.go b/resource/config/crvserver_cachepolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_cachepolicy_binding.go rename to resource/config/crvserver_cachepolicy_binding.go index 26f611b..11d06b3 100644 --- a/resource/config/cr/crvserver_cachepolicy_binding.go +++ b/resource/config/crvserver_cachepolicy_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the cachepolicy that can be bound to crvserver. -*/ + */ type Crvservercachepolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_cmppolicy_binding.go b/resource/config/crvserver_cmppolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_cmppolicy_binding.go rename to resource/config/crvserver_cmppolicy_binding.go index c6239ec..cd23f6f 100644 --- a/resource/config/cr/crvserver_cmppolicy_binding.go +++ b/resource/config/crvserver_cmppolicy_binding.go @@ -12,58 +12,56 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the cmppolicy that can be bound to crvserver. -*/ + */ type Crvservercmppolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * On State describes that policy bound is inherited from global binding. - */ + */ Inherited string `json:"inherited,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_crpolicy_binding.go b/resource/config/crvserver_crpolicy_binding.go similarity index 95% rename from resource/config/cr/crvserver_crpolicy_binding.go rename to resource/config/crvserver_crpolicy_binding.go index 25fc0a5..b6d73b9 100644 --- a/resource/config/cr/crvserver_crpolicy_binding.go +++ b/resource/config/crvserver_crpolicy_binding.go @@ -12,58 +12,56 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the crpolicy that can be bound to crvserver. -*/ + */ type Crvservercrpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Number of hits. - */ + */ Pipolicyhits int `json:"pipolicyhits,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_cspolicy_binding.go b/resource/config/crvserver_cspolicy_binding.go similarity index 95% rename from resource/config/cr/crvserver_cspolicy_binding.go rename to resource/config/crvserver_cspolicy_binding.go index a288f27..5415c2b 100644 --- a/resource/config/cr/crvserver_cspolicy_binding.go +++ b/resource/config/crvserver_cspolicy_binding.go @@ -12,58 +12,56 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the cspolicy that can be bound to crvserver. -*/ + */ type Crvservercspolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The CSW target server names. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Number of hits. - */ + */ Pipolicyhits int `json:"pipolicyhits,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_feopolicy_binding.go b/resource/config/crvserver_feopolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_feopolicy_binding.go rename to resource/config/crvserver_feopolicy_binding.go index 8f6946b..6b87c8f 100644 --- a/resource/config/cr/crvserver_feopolicy_binding.go +++ b/resource/config/crvserver_feopolicy_binding.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the feopolicy that can be bound to crvserver. -*/ + */ type Crvserverfeopolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as @@ -51,12 +51,10 @@ type Crvserverfeopolicybinding struct { Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_filterpolicy_binding.go b/resource/config/crvserver_filterpolicy_binding.go similarity index 98% rename from resource/config/cr/crvserver_filterpolicy_binding.go rename to resource/config/crvserver_filterpolicy_binding.go index 1f4f2c2..a60840d 100644 --- a/resource/config/cr/crvserver_filterpolicy_binding.go +++ b/resource/config/crvserver_filterpolicy_binding.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the filterpolicy that can be bound to crvserver. -*/ + */ type Crvserverfilterpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * On State describes that policy bound is inherited from global binding. - */ + */ Inherited string `json:"inherited,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -70,12 +70,10 @@ type Crvserverfilterpolicybinding struct { Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_icapolicy_binding.go b/resource/config/crvserver_icapolicy_binding.go similarity index 97% rename from resource/config/cr/crvserver_icapolicy_binding.go rename to resource/config/crvserver_icapolicy_binding.go index b874d47..ad9360a 100644 --- a/resource/config/cr/crvserver_icapolicy_binding.go +++ b/resource/config/crvserver_icapolicy_binding.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the icapolicy that can be bound to crvserver. -*/ + */ type Crvservericapolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * For a rewrite policy, the bind point to which to bind the policy. Note: This parameter applies only to rewrite @@ -52,12 +52,10 @@ type Crvservericapolicybinding struct { Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_lbvserver_binding.go b/resource/config/crvserver_lbvserver_binding.go similarity index 96% rename from resource/config/cr/crvserver_lbvserver_binding.go rename to resource/config/crvserver_lbvserver_binding.go index 4f4c591..55c5ce9 100644 --- a/resource/config/cr/crvserver_lbvserver_binding.go +++ b/resource/config/crvserver_lbvserver_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the lbvserver that can be bound to crvserver. -*/ + */ type Crvserverlbvserverbinding struct { /** * The Default target server name. - */ + */ Lbvserver string `json:"lbvserver,omitempty"` /** * Number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_map_binding.go b/resource/config/crvserver_map_binding.go similarity index 98% rename from resource/config/cr/crvserver_map_binding.go rename to resource/config/crvserver_map_binding.go index b5c2d2a..8bf2f0b 100644 --- a/resource/config/cr/crvserver_map_binding.go +++ b/resource/config/crvserver_map_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the map that can be bound to crvserver. -*/ + */ type Crvservermapbinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The CSW target server names. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * An unsigned integer that determines the priority of the policy relative to other policies bound to this cache redirection virtual server. The lower the value, higher the priority. Note: This option is available only when binding content switching, filtering, and compression policies to a cache redirection virtual server. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -66,12 +66,10 @@ type Crvservermapbinding struct { Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_policy_binding.go b/resource/config/crvserver_policy_binding.go similarity index 95% rename from resource/config/cr/crvserver_policy_binding.go rename to resource/config/crvserver_policy_binding.go index f3a36c6..1c868cc 100644 --- a/resource/config/cr/crvserver_policy_binding.go +++ b/resource/config/crvserver_policy_binding.go @@ -12,66 +12,64 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the policy that can be bound to crvserver. -*/ + */ type Crvserverpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The CSW target server names. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * The priority for the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Number of hits. - */ + */ Hits uint32 `json:"hits,omitempty"` /** * Number of hits. - */ + */ Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * On State describes that policy bound is inherited from global binding. - */ + */ Inherited string `json:"inherited,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_policymap_binding.go b/resource/config/crvserver_policymap_binding.go similarity index 98% rename from resource/config/cr/crvserver_policymap_binding.go rename to resource/config/crvserver_policymap_binding.go index 1e1dc41..8f2f27f 100644 --- a/resource/config/cr/crvserver_policymap_binding.go +++ b/resource/config/crvserver_policymap_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the policymap that can be bound to crvserver. -*/ + */ type Crvserverpolicymapbinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The CSW target server names. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * An unsigned integer that determines the priority of the policy relative to other policies bound to this cache redirection virtual server. The lower the value, higher the priority. Note: This option is available only when binding content switching, filtering, and compression policies to a cache redirection virtual server. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -66,12 +66,10 @@ type Crvserverpolicymapbinding struct { Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_profile_binding.go b/resource/config/crvserver_profile_binding.go similarity index 96% rename from resource/config/cr/crvserver_profile_binding.go rename to resource/config/crvserver_profile_binding.go index 3939c2b..ecfc471 100644 --- a/resource/config/cr/crvserver_profile_binding.go +++ b/resource/config/crvserver_profile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the profile that can be bound to crvserver. -*/ + */ type Crvserverprofilebinding struct { /** * Name of the analytics profile bound to the CR vserver. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_responderpolicy_binding.go b/resource/config/crvserver_responderpolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_responderpolicy_binding.go rename to resource/config/crvserver_responderpolicy_binding.go index c15b407..4187aa1 100644 --- a/resource/config/cr/crvserver_responderpolicy_binding.go +++ b/resource/config/crvserver_responderpolicy_binding.go @@ -12,51 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the responderpolicy that can be bound to crvserver. -*/ + */ type Crvserverresponderpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * For a rewrite policy, the bind point to which to bind the policy. Note: This parameter applies only to rewrite policies, because content switching policies are evaluated only at request time. */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_rewritepolicy_binding.go b/resource/config/crvserver_rewritepolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_rewritepolicy_binding.go rename to resource/config/crvserver_rewritepolicy_binding.go index 062ff57..74cdcd1 100644 --- a/resource/config/cr/crvserver_rewritepolicy_binding.go +++ b/resource/config/crvserver_rewritepolicy_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the rewritepolicy that can be bound to crvserver. -*/ + */ type Crvserverrewritepolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_spilloverpolicy_binding.go b/resource/config/crvserver_spilloverpolicy_binding.go similarity index 96% rename from resource/config/cr/crvserver_spilloverpolicy_binding.go rename to resource/config/crvserver_spilloverpolicy_binding.go index 144aee5..bc97b11 100644 --- a/resource/config/cr/crvserver_spilloverpolicy_binding.go +++ b/resource/config/crvserver_spilloverpolicy_binding.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the spilloverpolicy that can be bound to crvserver. -*/ + */ type Crvserverspilloverpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * The priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` /** * Name of the virtual server to which content is forwarded. Applicable only if the policy is a map policy and the cache redirection virtual server is of type REVERSE. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as @@ -51,12 +51,10 @@ type Crvserverspilloverpolicybinding struct { Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cr/crvserver_vserver_binding.go b/resource/config/crvserver_vserver_binding.go similarity index 96% rename from resource/config/cr/crvserver_vserver_binding.go rename to resource/config/crvserver_vserver_binding.go index 2d3b269..11eeea8 100644 --- a/resource/config/cr/crvserver_vserver_binding.go +++ b/resource/config/crvserver_vserver_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cr +package config /** * Binding class showing the vserver that can be bound to crvserver. -*/ + */ type Crvservervserverbinding struct { /** * The Default target server name. - */ + */ Lbvserver string `json:"lbvserver,omitempty"` /** * Number of hits. - */ + */ Hits uint32 `json:"hits,omitempty"` /** * Name of the cache redirection virtual server to which to bind the cache redirection policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csaction.go b/resource/config/csaction.go similarity index 90% rename from resource/config/cs/csaction.go rename to resource/config/csaction.go index 36a7f3a..d5b4559 100644 --- a/resource/config/cs/csaction.go +++ b/resource/config/csaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Configuration for Content Switching action resource. -*/ + */ type Csaction struct { /** * Name for the content switching action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the content switching action is created. @@ -28,22 +28,22 @@ type Csaction struct { Name string `json:"name,omitempty"` /** * Name of the load balancing virtual server to which the content is switched. - */ + */ Targetlbvserver string `json:"targetlbvserver,omitempty"` /** * Name of the VPN, GSLB or Authentication virtual server to which the content is switched. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * Information about this content switching action. - */ + */ Targetvserverexpr string `json:"targetvserverexpr,omitempty"` /** * Comments associated with this cs action. - */ + */ Comment string `json:"comment,omitempty"` /** - * New name for the content switching action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. + * New name for the content switching action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my name" or 'my name'). */ @@ -51,10 +51,9 @@ type Csaction struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Referencecount string `json:"referencecount,omitempty"` - Undefhits string `json:"undefhits,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Undefhits string `json:"undefhits,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/cs/csparameter.go b/resource/config/csparameter.go similarity index 97% rename from resource/config/cs/csparameter.go rename to resource/config/csparameter.go index f9c1a19..c99c0b8 100644 --- a/resource/config/cs/csparameter.go +++ b/resource/config/csparameter.go @@ -12,22 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Configuration for CS parameter resource. -*/ + */ type Csparameter struct { /** * Specifies whether the virtual server checks the attached load balancing server for state information. - */ + */ Stateupdate string `json:"stateupdate,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/cs/cspolicy.go b/resource/config/cspolicy.go similarity index 87% rename from resource/config/cs/cspolicy.go rename to resource/config/cspolicy.go index 0a553df..9726583 100644 --- a/resource/config/cs/cspolicy.go +++ b/resource/config/cspolicy.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Configuration for content-switching policy resource. -*/ + */ type Cspolicy struct { /** * Name for the content switching policy. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after a policy is created. @@ -28,42 +28,41 @@ type Cspolicy struct { Policyname string `json:"policyname,omitempty"` /** * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. - */ + */ Url string `json:"url,omitempty"` /** * Expression, or name of a named expression, against which traffic is evaluated. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the character. + * If the expression itself includes double quotation marks, escape the quotations by using the character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** * The domain name. The string value can range to 63 characters. - */ + */ Domain string `json:"domain,omitempty"` /** * Content switching action that names the target load balancing virtual server to which the traffic is switched. - */ + */ Action string `json:"action,omitempty"` /** * The log action associated with the content switching policy - */ + */ Logaction string `json:"logaction,omitempty"` /** * The new name of the content switching policy. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Vstype string `json:"vstype,omitempty"` - Hits string `json:"hits,omitempty"` - Bindhits string `json:"bindhits,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Priority string `json:"priority,omitempty"` + Vstype string `json:"vstype,omitempty"` + Hits string `json:"hits,omitempty"` + Bindhits string `json:"bindhits,omitempty"` + Labelname string `json:"labelname,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Priority string `json:"priority,omitempty"` Activepolicy string `json:"activepolicy,omitempty"` Cspolicytype string `json:"cspolicytype,omitempty"` - } diff --git a/resource/config/cs/cspolicy_binding.go b/resource/config/cspolicy_binding.go similarity index 94% rename from resource/config/cs/cspolicy_binding.go rename to resource/config/cspolicy_binding.go index 18115e8..a81c299 100644 --- a/resource/config/cs/cspolicy_binding.go +++ b/resource/config/cspolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** -* Binding object which returns the resources bound to cspolicy_binding. -*/ +* Binding object which returns the resources bound to cspolicy_binding. + */ type Cspolicybinding struct { /** - * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed.
Minimum value = - */ + * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed.
Minimum value = + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/cspolicy_crvserver_binding.go b/resource/config/cspolicy_crvserver_binding.go similarity index 96% rename from resource/config/cs/cspolicy_crvserver_binding.go rename to resource/config/cspolicy_crvserver_binding.go index b414dd9..4cae790 100644 --- a/resource/config/cs/cspolicy_crvserver_binding.go +++ b/resource/config/cspolicy_crvserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the crvserver that can be bound to cspolicy. -*/ + */ type Cspolicycrvserverbinding struct { /** * The domain name. The string value can range to 63 characters. - */ + */ Domain string `json:"domain,omitempty"` /** * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. - */ + */ Url string `json:"url,omitempty"` /** * priority of bound policy - */ + */ Priority int `json:"priority,omitempty"` /** * Total number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/cspolicy_cspolicylabel_binding.go b/resource/config/cspolicy_cspolicylabel_binding.go similarity index 96% rename from resource/config/cs/cspolicy_cspolicylabel_binding.go rename to resource/config/cspolicy_cspolicylabel_binding.go index 91a6bc6..8bd2793 100644 --- a/resource/config/cs/cspolicy_cspolicylabel_binding.go +++ b/resource/config/cspolicy_cspolicylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the cspolicylabel that can be bound to cspolicy. -*/ + */ type Cspolicycspolicylabelbinding struct { /** * The domain name. The string value can range to 63 characters. - */ + */ Domain string `json:"domain,omitempty"` /** * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. - */ + */ Url string `json:"url,omitempty"` /** * priority of bound policy - */ + */ Priority int `json:"priority,omitempty"` /** * Total number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/cspolicy_csvserver_binding.go b/resource/config/cspolicy_csvserver_binding.go similarity index 96% rename from resource/config/cs/cspolicy_csvserver_binding.go rename to resource/config/cspolicy_csvserver_binding.go index 34135aa..512deca 100644 --- a/resource/config/cs/cspolicy_csvserver_binding.go +++ b/resource/config/cspolicy_csvserver_binding.go @@ -12,54 +12,52 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the csvserver that can be bound to cspolicy. -*/ + */ type Cspolicycsvserverbinding struct { /** * The domain name. The string value can range to 63 characters. - */ + */ Domain string `json:"domain,omitempty"` /** * Content switching action that names the target load balancing virtual server to which the traffic is switched. - */ + */ Action string `json:"action,omitempty"` /** * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. - */ + */ Url string `json:"url,omitempty"` /** * priority of bound policy - */ + */ Priority int `json:"priority,omitempty"` /** * Total number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Total number of hits. - */ + */ Pihits int `json:"pihits,omitempty"` /** * bind hits for PI CS Policy. - */ + */ Pipolicyhits int `json:"pipolicyhits,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/cspolicy_policylabel_binding.go b/resource/config/cspolicy_policylabel_binding.go similarity index 96% rename from resource/config/cs/cspolicy_policylabel_binding.go rename to resource/config/cspolicy_policylabel_binding.go index c8938dd..07b32e8 100644 --- a/resource/config/cs/cspolicy_policylabel_binding.go +++ b/resource/config/cspolicy_policylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the policylabel that can be bound to cspolicy. -*/ + */ type Cspolicypolicylabelbinding struct { /** * The domain name. The string value can range to 63 characters. - */ + */ Domain string `json:"domain,omitempty"` /** * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. - */ + */ Url string `json:"url,omitempty"` /** * priority of bound policy - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Total number of hits. - */ + */ Hits uint32 `json:"hits,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/cspolicy_vserver_binding.go b/resource/config/cspolicy_vserver_binding.go similarity index 96% rename from resource/config/cs/cspolicy_vserver_binding.go rename to resource/config/cspolicy_vserver_binding.go index c3af18c..5d366e6 100644 --- a/resource/config/cs/cspolicy_vserver_binding.go +++ b/resource/config/cspolicy_vserver_binding.go @@ -12,54 +12,52 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the vserver that can be bound to cspolicy. -*/ + */ type Cspolicyvserverbinding struct { /** * The domain name. The string value can range to 63 characters. - */ + */ Domain string `json:"domain,omitempty"` /** * Content switching action that names the target load balancing virtual server to which the traffic is switched. - */ + */ Action string `json:"action,omitempty"` /** * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. - */ + */ Url string `json:"url,omitempty"` /** * priority of bound policy - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Total number of hits. - */ + */ Hits uint32 `json:"hits,omitempty"` /** * Total number of hits. - */ + */ Pihits uint32 `json:"pihits,omitempty"` /** * bind hits for PI CS Policy. - */ + */ Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. - */ + */ Policyname string `json:"policyname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/cspolicylabel.go b/resource/config/cspolicylabel.go similarity index 85% rename from resource/config/cs/cspolicylabel.go rename to resource/config/cspolicylabel.go index 529adb7..ab7b4d6 100644 --- a/resource/config/cs/cspolicylabel.go +++ b/resource/config/cspolicylabel.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Configuration for CS policy label resource. -*/ + */ type Cspolicylabel struct { /** - * Name for the policy label. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. + * Name for the policy label. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. The label name must be unique within the list of policy labels for content switching. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policylabel" or 'my policylabel'). @@ -35,7 +35,7 @@ type Cspolicylabel struct { * SSL_TCP - Supports policies that process SSL-encrypted TCP traffic, including SSL. * UDP - Supports policies that process any type of UDP-based traffic, including DNS. * DNS - Supports policies that process DNS traffic. - * ANY - Supports all types of policies except HTTP, SSL, and TCP. + * ANY - Supports all types of policies except HTTP, SSL, and TCP. * SIP_UDP - Supports policies that process UDP based Session Initiation Protocol (SIP) traffic. SIP initiates, manages, and terminates multimedia communications sessions, and has emerged as the standard for Internet telephony (VoIP). * RTSP - Supports policies that process Real Time Streaming Protocol (RTSP) traffic. RTSP provides delivery of multimedia and other streaming data, such as audio, video, and other types of streamed media. * RADIUS - Supports policies that process Remote Authentication Dial In User Service (RADIUS) traffic. RADIUS supports combined authentication, authorization, and auditing services for network management. @@ -45,18 +45,17 @@ type Cspolicylabel struct { Cspolicylabeltype string `json:"cspolicylabeltype,omitempty"` /** * The new name of the content switching policylabel. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority string `json:"priority,omitempty"` - Targetvserver string `json:"targetvserver,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority string `json:"priority,omitempty"` + Targetvserver string `json:"targetvserver,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` } diff --git a/resource/config/cs/cspolicylabel_binding.go b/resource/config/cspolicylabel_binding.go similarity index 95% rename from resource/config/cs/cspolicylabel_binding.go rename to resource/config/cspolicylabel_binding.go index bc51134..eeb99cf 100644 --- a/resource/config/cs/cspolicylabel_binding.go +++ b/resource/config/cspolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** -* Binding object which returns the resources bound to cspolicylabel_binding. -*/ +* Binding object which returns the resources bound to cspolicylabel_binding. + */ type Cspolicylabelbinding struct { /** * Name of the content switching policy label to display. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/cspolicylabel_cspolicy_binding.go b/resource/config/cspolicylabel_cspolicy_binding.go similarity index 93% rename from resource/config/cs/cspolicylabel_cspolicy_binding.go rename to resource/config/cspolicylabel_cspolicy_binding.go index a6b6bd0..ad75459 100644 --- a/resource/config/cs/cspolicylabel_cspolicy_binding.go +++ b/resource/config/cspolicylabel_cspolicy_binding.go @@ -12,43 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the cspolicy that can be bound to cspolicylabel. -*/ + */ type Cspolicylabelcspolicybinding struct { /** * Name of the content switching policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Name of the virtual server to which to forward requests that match the policy. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` + Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the policy label to which to bind a content switching policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/cspolicylabel_policy_binding.go b/resource/config/cspolicylabel_policy_binding.go similarity index 93% rename from resource/config/cs/cspolicylabel_policy_binding.go rename to resource/config/cspolicylabel_policy_binding.go index eae251b..aa52799 100644 --- a/resource/config/cs/cspolicylabel_policy_binding.go +++ b/resource/config/cspolicylabel_policy_binding.go @@ -12,43 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the policy that can be bound to cspolicylabel. -*/ + */ type Cspolicylabelpolicybinding struct { /** * Name of the content switching policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Name of the virtual server to which to forward requests that match the policy. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` + Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the policy label to which to bind a content switching policy. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver.go b/resource/config/csvserver.go similarity index 87% rename from resource/config/cs/csvserver.go rename to resource/config/csvserver.go index 9439938..13a7eab 100644 --- a/resource/config/cs/csvserver.go +++ b/resource/config/csvserver.go @@ -12,16 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Configuration for CS virtual server resource. -*/ + */ type Csvserver struct { /** - * Name for the content switching virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. + * Name for the content switching virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after the CS virtual server is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, my server or my server). @@ -29,47 +29,47 @@ type Csvserver struct { Name string `json:"name,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Protocol used by the virtual server. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * IP address of the content switching virtual server. - */ + */ Ipv46 string `json:"ipv46,omitempty"` /** * Virtual server target type. - */ - Targettype string `json:"targettype,omitempty"` + */ + Targettype string `json:"targettype,omitempty"` Dnsrecordtype string `json:"dnsrecordtype,omitempty"` - Persistenceid int `json:"persistenceid,omitempty"` + Persistenceid int `json:"persistenceid,omitempty"` /** - * IP address pattern, in dotted decimal notation, for identifying packets to be accepted by the virtual server. The IP Mask parameter specifies which part of the destination IP address is matched against the pattern. Mutually exclusive with the IP Address parameter. + * IP address pattern, in dotted decimal notation, for identifying packets to be accepted by the virtual server. The IP Mask parameter specifies which part of the destination IP address is matched against the pattern. Mutually exclusive with the IP Address parameter. For example, if the IP pattern assigned to the virtual server is 198.51.100.0 and the IP mask is 255.255.240.0 (a forward mask), the first 20 bits in the destination IP addresses are matched with the first 20 bits in the pattern. The virtual server accepts requests with IP addresses that range from 198.51.96.1 to 198.51.111.254. You can also use a pattern such as 0.0.2.2 and a mask such as 0.0.255.255 (a reverse mask). If a destination IP address matches more than one IP pattern, the pattern with the longest match is selected, and the associated virtual server processes the request. For example, if the virtual servers, vs1 and vs2, have the same IP pattern, 0.0.100.128, but different IP masks of 0.0.255.255 and 0.0.224.255, a destination IP address of 198.51.100.128 has the longest match with the IP pattern of vs1. If a destination IP address matches two or more virtual servers to the same extent, the request is processed by the virtual server whose port number matches the port number in the request. */ Ippattern string `json:"ippattern,omitempty"` /** * IP mask, in dotted decimal notation, for the IP Pattern parameter. Can have leading or trailing non-zero octets (for example, 255.255.240.0 or 0.0.255.255). Accordingly, the mask specifies whether the first n bits or the last n bits of the destination IP address in a client request are to be matched with the corresponding bits in the IP pattern. The former is called a forward mask. The latter is called a reverse mask. - */ + */ Ipmask string `json:"ipmask,omitempty"` /** * Number of consecutive IP addresses, starting with the address specified by the IP Address parameter, to include in a range of addresses assigned to this virtual server. - */ + */ Range int `json:"range,omitempty"` /** * Port number for content switching virtual server. - */ + */ Port int `json:"port,omitempty"` /** * The list of IPv4/IPv6 addresses bound to ipset would form a part of listening service on the current cs vserver - */ + */ Ipset string `json:"ipset,omitempty"` /** * Initial state of the load balancing virtual server. - */ + */ State string `json:"state,omitempty"` /** * Enable state updates for a specific content switching virtual server. By default, the Content Switching virtual server is always UP, regardless of the state of the Load Balancing virtual servers bound to it. This parameter interacts with the global setting as follows: @@ -83,7 +83,7 @@ type Csvserver struct { Stateupdate string `json:"stateupdate,omitempty"` /** * Use this option to specify whether a virtual server, used for load balancing or content switching, routes requests to the cache redirection virtual server before sending it to the configured servers. - */ + */ Cacheable string `json:"cacheable,omitempty"` /** * URL to which traffic is redirected if the virtual server becomes unavailable. The service type of the virtual server should be either HTTP or SSL. @@ -100,39 +100,39 @@ type Csvserver struct { Clttimeout int `json:"clttimeout,omitempty"` /** * Type of precedence to use for both RULE-based and URL-based policies on the content switching virtual server. With the default (RULE) setting, incoming requests are evaluated against the rule-based content switching policies. If none of the rules match, the URL in the request is evaluated against the URL-based content switching policies. - */ + */ Precedence string `json:"precedence,omitempty"` /** * Consider case in URLs (for policies that use URLs instead of RULES). For example, with the ON setting, the URLs /a/1.html and /A/1.HTML are treated differently and can have different targets (set by content switching policies). With the OFF setting, /a/1.html and /A/1.HTML are switched to the same target. - */ + */ Casesensitive string `json:"casesensitive,omitempty"` /** * Type of spillover used to divert traffic to the backup virtual server when the primary virtual server reaches the spillover threshold. Connection spillover is based on the number of connections. Bandwidth spillover is based on the total Kbps of incoming and outgoing traffic. - */ + */ Somethod string `json:"somethod,omitempty"` /** * Maintain source-IP based persistence on primary and backup virtual servers. - */ + */ Sopersistence string `json:"sopersistence,omitempty"` /** * Time-out value, in minutes, for spillover persistence. - */ + */ Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` /** * Depending on the spillover method, the maximum number of connections or the maximum total bandwidth (Kbps) that a virtual server can handle before spillover occurs. - */ + */ Sothreshold int `json:"sothreshold,omitempty"` /** * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists - */ + */ Sobackupaction string `json:"sobackupaction,omitempty"` /** * State of port rewrite while performing HTTP redirect. - */ + */ Redirectportrewrite string `json:"redirectportrewrite,omitempty"` /** * Flush all active transactions associated with a virtual server whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. - */ + */ Downstateflush string `json:"downstateflush,omitempty"` /** * Name of the backup virtual server that you are configuring. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the backup virtual server is created. You can assign a different backup virtual server or rename the existing virtual server. @@ -142,7 +142,7 @@ type Csvserver struct { Backupvserver string `json:"backupvserver,omitempty"` /** * Continue forwarding the traffic to backup virtual server even after the primary server comes UP from the DOWN state. - */ + */ Disableprimaryondown string `json:"disableprimaryondown,omitempty"` /** * Insert the virtual server's VIP address and port number in the request header. Available values function as follows: @@ -153,107 +153,107 @@ type Csvserver struct { Insertvserveripport string `json:"insertvserveripport,omitempty"` /** * Name of virtual server IP and port header, for use with the VServer IP Port Insertion parameter. - */ + */ Vipheader string `json:"vipheader,omitempty"` /** * Enable network address translation (NAT) for real-time streaming protocol (RTSP) connections. - */ + */ Rtspnat string `json:"rtspnat,omitempty"` /** * FQDN of the authentication virtual server. The service type of the virtual server should be either HTTP or SSL. - */ + */ Authenticationhost string `json:"authenticationhost,omitempty"` /** * Authenticate users who request a connection to the content switching virtual server. - */ + */ Authentication string `json:"authentication,omitempty"` /** * String specifying the listen policy for the content switching virtual server. Can be either the name of an existing expression or an in-line expression. - */ + */ Listenpolicy string `json:"listenpolicy,omitempty"` /** * Integer specifying the priority of the listen policy. A higher number specifies a lower priority. If a request matches the listen policies of more than one virtual server the virtual server whose listen policy has the highest priority (the lowest priority number) accepts the request. - */ + */ Listenpriority int `json:"listenpriority,omitempty"` /** * Enable HTTP 401-response based authentication. - */ + */ Authn401 string `json:"authn401,omitempty"` /** - * Name of authentication virtual server that authenticates the incoming user requests to this content switching virtual server. - */ + * Name of authentication virtual server that authenticates the incoming user requests to this content switching virtual server. + */ Authnvsname string `json:"authnvsname,omitempty"` /** * Process traffic with the push virtual server that is bound to this content switching virtual server (specified by the Push VServer parameter). The service type of the push virtual server should be either HTTP or SSL. - */ + */ Push string `json:"push,omitempty"` /** * Name of the load balancing virtual server, of type PUSH or SSL_PUSH, to which the server pushes updates received on the client-facing load balancing virtual server. - */ + */ Pushvserver string `json:"pushvserver,omitempty"` /** * Expression for extracting the label from the response received from server. This string can be either an existing rule name or an inline expression. The service type of the virtual server should be either HTTP or SSL. - */ + */ Pushlabel string `json:"pushlabel,omitempty"` /** * Allow multiple Web 2.0 connections from the same client to connect to the virtual server and expect updates. - */ + */ Pushmulticlients string `json:"pushmulticlients,omitempty"` /** * Name of the TCP profile containing TCP configuration settings for the virtual server. - */ + */ Tcpprofilename string `json:"tcpprofilename,omitempty"` /** * Name of the HTTP profile containing HTTP configuration settings for the virtual server. The service type of the virtual server should be either HTTP or SSL. - */ + */ Httpprofilename string `json:"httpprofilename,omitempty"` /** * Name of the DB profile. - */ + */ Dbprofilename string `json:"dbprofilename,omitempty"` /** * Oracle server version - */ + */ Oracleserverversion string `json:"oracleserverversion,omitempty"` /** * Information about this virtual server. - */ + */ Comment string `json:"comment,omitempty"` /** * The version of the MSSQL server - */ + */ Mssqlserverversion string `json:"mssqlserverversion,omitempty"` /** * Use L2 Parameters to identify a connection - */ + */ L2conn string `json:"l2conn,omitempty"` /** * The protocol version returned by the mysql vserver. - */ + */ Mysqlprotocolversion int `json:"mysqlprotocolversion,omitempty"` /** * The server version string returned by the mysql vserver. - */ + */ Mysqlserverversion string `json:"mysqlserverversion,omitempty"` /** * The character set returned by the mysql vserver. - */ + */ Mysqlcharacterset int `json:"mysqlcharacterset,omitempty"` /** * The server capabilities returned by the mysql vserver. - */ + */ Mysqlservercapabilities int `json:"mysqlservercapabilities,omitempty"` /** * Enable logging appflow flow information - */ + */ Appflowlog string `json:"appflowlog,omitempty"` /** * The name of the network profile. - */ + */ Netprofile string `json:"netprofile,omitempty"` /** * Can be active or passive - */ + */ Icmpvsrresponse string `json:"icmpvsrresponse,omitempty"` /** * A host route is injected according to the setting on the virtual servers @@ -264,15 +264,15 @@ type Csvserver struct { Rhistate string `json:"rhistate,omitempty"` /** * Name of the authentication profile to be used when authentication is turned on. - */ + */ Authnprofile string `json:"authnprofile,omitempty"` /** * Name of the DNS profile to be associated with the VServer. DNS profile properties will applied to the transactions processed by a VServer. This parameter is valid only for DNS and DNS-TCP VServers. - */ + */ Dnsprofilename string `json:"dnsprofilename,omitempty"` /** * This option starts/stops the dtls service on the vserver - */ + */ Dtls string `json:"dtls,omitempty"` /** * Type of persistence for the virtual server. Available settings function as follows: @@ -283,59 +283,59 @@ type Csvserver struct { Persistencetype string `json:"persistencetype,omitempty"` /** * Persistence mask for IP based persistence types, for IPv4 virtual servers. - */ + */ Persistmask string `json:"persistmask,omitempty"` /** * Persistence mask for IP based persistence types, for IPv6 virtual servers. - */ + */ V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Time period for which a persistence session is in effect. - */ + */ Timeout int `json:"timeout,omitempty"` /** * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. - */ + */ Cookiename string `json:"cookiename,omitempty"` /** * Backup persistence type for the virtual server. Becomes operational if the primary persistence mechanism fails. - */ + */ Persistencebackup string `json:"persistencebackup,omitempty"` /** * Time period for which backup persistence is in effect. - */ + */ Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` /** * Port number for external TCP probe. NetScaler provides support for external TCP health check of the vserver status over the selected port. This option is only supported for vservers assigned with an IPAddress or ipset. - */ + */ Tcpprobeport int `json:"tcpprobeport,omitempty"` /** * Citrix ADC provides support for external health check of the vserver status. Select HTTP or TCP probes for healthcheck - */ + */ Probeprotocol string `json:"probeprotocol,omitempty"` /** * HTTP code to return in SUCCESS case. - */ + */ Probesuccessresponsecode string `json:"probesuccessresponsecode,omitempty"` /** * Citrix ADC provides support for external health check of the vserver status. Select port for HTTP/TCP monitring - */ + */ Probeport int `json:"probeport,omitempty"` /** * Name of QUIC profile which will be attached to the Content Switching VServer. - */ + */ Quicprofilename string `json:"quicprofilename,omitempty"` /** * Domain name for which to change the time to live (TTL) and/or backup service IP address. - */ - Domainname string `json:"domainname,omitempty"` - Ttl int `json:"ttl,omitempty"` - Backupip string `json:"backupip,omitempty"` - Cookiedomain string `json:"cookiedomain,omitempty"` - Cookietimeout int `json:"cookietimeout,omitempty"` - Sitedomainttl int `json:"sitedomainttl,omitempty"` - /** - * New name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. + */ + Domainname string `json:"domainname,omitempty"` + Ttl int `json:"ttl,omitempty"` + Backupip string `json:"backupip,omitempty"` + Cookiedomain string `json:"cookiedomain,omitempty"` + Cookietimeout int `json:"cookietimeout,omitempty"` + Sitedomainttl int `json:"sitedomainttl,omitempty"` + /** + * New name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my name" or 'my name'). */ @@ -343,32 +343,31 @@ type Csvserver struct { //------- Read only Parameter ---------; - Ip string `json:"ip,omitempty"` - Value string `json:"value,omitempty"` - Ngname string `json:"ngname,omitempty"` - Type string `json:"type,omitempty"` - Curstate string `json:"curstate,omitempty"` - Sc string `json:"sc,omitempty"` - Status string `json:"status,omitempty"` - Cachetype string `json:"cachetype,omitempty"` - Redirect string `json:"redirect,omitempty"` - Homepage string `json:"homepage,omitempty"` - Dnsvservername string `json:"dnsvservername,omitempty"` - Domain string `json:"domain,omitempty"` - Servicename string `json:"servicename,omitempty"` - Weight string `json:"weight,omitempty"` - Cachevserver string `json:"cachevserver,omitempty"` - Targetvserver string `json:"targetvserver,omitempty"` - Url string `json:"url,omitempty"` - Bindpoint string `json:"bindpoint,omitempty"` - Gt2gb string `json:"gt2gb,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Ip string `json:"ip,omitempty"` + Value string `json:"value,omitempty"` + Ngname string `json:"ngname,omitempty"` + Type string `json:"type,omitempty"` + Curstate string `json:"curstate,omitempty"` + Sc string `json:"sc,omitempty"` + Status string `json:"status,omitempty"` + Cachetype string `json:"cachetype,omitempty"` + Redirect string `json:"redirect,omitempty"` + Homepage string `json:"homepage,omitempty"` + Dnsvservername string `json:"dnsvservername,omitempty"` + Domain string `json:"domain,omitempty"` + Servicename string `json:"servicename,omitempty"` + Weight string `json:"weight,omitempty"` + Cachevserver string `json:"cachevserver,omitempty"` + Targetvserver string `json:"targetvserver,omitempty"` + Url string `json:"url,omitempty"` + Bindpoint string `json:"bindpoint,omitempty"` + Gt2gb string `json:"gt2gb,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` - Ruletype string `json:"ruletype,omitempty"` - Lbvserver string `json:"lbvserver,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - Version string `json:"version,omitempty"` - + Ruletype string `json:"ruletype,omitempty"` + Lbvserver string `json:"lbvserver,omitempty"` + Targetlbvserver string `json:"targetlbvserver,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` + Version string `json:"version,omitempty"` } diff --git a/resource/config/cs/csvserver_analyticsprofile_binding.go b/resource/config/csvserver_analyticsprofile_binding.go similarity index 96% rename from resource/config/cs/csvserver_analyticsprofile_binding.go rename to resource/config/csvserver_analyticsprofile_binding.go index 2ab22d2..b7323d6 100644 --- a/resource/config/cs/csvserver_analyticsprofile_binding.go +++ b/resource/config/csvserver_analyticsprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the analyticsprofile that can be bound to csvserver. -*/ + */ type Csvserveranalyticsprofilebinding struct { /** * Name of the analytics profile bound to the LB vserver. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_appflowpolicy_binding.go b/resource/config/csvserver_appflowpolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_appflowpolicy_binding.go rename to resource/config/csvserver_appflowpolicy_binding.go index 1ac8542..2da8e0c 100644 --- a/resource/config/cs/csvserver_appflowpolicy_binding.go +++ b/resource/config/csvserver_appflowpolicy_binding.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the appflowpolicy that can be bound to csvserver. -*/ + */ type Csvserverappflowpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -56,8 +56,6 @@ type Csvserverappflowpolicybinding struct { Targetlbvserver string `json:"targetlbvserver,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_appfwpolicy_binding.go b/resource/config/csvserver_appfwpolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_appfwpolicy_binding.go rename to resource/config/csvserver_appfwpolicy_binding.go index 9139705..0bf0bc8 100644 --- a/resource/config/cs/csvserver_appfwpolicy_binding.go +++ b/resource/config/csvserver_appfwpolicy_binding.go @@ -12,49 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the appfwpolicy that can be bound to csvserver. -*/ + */ type Csvserverappfwpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -62,6 +62,4 @@ type Csvserverappfwpolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_appqoepolicy_binding.go b/resource/config/csvserver_appqoepolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_appqoepolicy_binding.go rename to resource/config/csvserver_appqoepolicy_binding.go index c198997..8f8d5d0 100644 --- a/resource/config/cs/csvserver_appqoepolicy_binding.go +++ b/resource/config/csvserver_appqoepolicy_binding.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the appqoepolicy that can be bound to csvserver. -*/ + */ type Csvserverappqoepolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -58,6 +58,4 @@ type Csvserverappqoepolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_auditnslogpolicy_binding.go b/resource/config/csvserver_auditnslogpolicy_binding.go similarity index 98% rename from resource/config/cs/csvserver_auditnslogpolicy_binding.go rename to resource/config/csvserver_auditnslogpolicy_binding.go index 1f9141b..7d06de3 100644 --- a/resource/config/cs/csvserver_auditnslogpolicy_binding.go +++ b/resource/config/csvserver_auditnslogpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the auditnslogpolicy that can be bound to csvserver. -*/ + */ type Csvserverauditnslogpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -60,20 +60,18 @@ type Csvserverauditnslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_auditsyslogpolicy_binding.go b/resource/config/csvserver_auditsyslogpolicy_binding.go similarity index 98% rename from resource/config/cs/csvserver_auditsyslogpolicy_binding.go rename to resource/config/csvserver_auditsyslogpolicy_binding.go index 6506d43..1708c18 100644 --- a/resource/config/cs/csvserver_auditsyslogpolicy_binding.go +++ b/resource/config/csvserver_auditsyslogpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the auditsyslogpolicy that can be bound to csvserver. -*/ + */ type Csvserverauditsyslogpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -60,20 +60,18 @@ type Csvserverauditsyslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_authorizationpolicy_binding.go b/resource/config/csvserver_authorizationpolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_authorizationpolicy_binding.go rename to resource/config/csvserver_authorizationpolicy_binding.go index af81f8a..ed46955 100644 --- a/resource/config/cs/csvserver_authorizationpolicy_binding.go +++ b/resource/config/csvserver_authorizationpolicy_binding.go @@ -12,49 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the authorizationpolicy that can be bound to csvserver. -*/ + */ type Csvserverauthorizationpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -62,6 +62,4 @@ type Csvserverauthorizationpolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_binding.go b/resource/config/csvserver_binding.go similarity index 95% rename from resource/config/cs/csvserver_binding.go rename to resource/config/csvserver_binding.go index d779581..2c463b5 100644 --- a/resource/config/cs/csvserver_binding.go +++ b/resource/config/csvserver_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** -* Binding object which returns the resources bound to csvserver_binding. -*/ +* Binding object which returns the resources bound to csvserver_binding. + */ type Csvserverbinding struct { /** - * Name of a content switching virtual server for which to display information, including the policies bound to the virtual server. To display a list of all configured Content Switching virtual servers, do not specify a value for this parameter.
Minimum value = - */ + * Name of a content switching virtual server for which to display information, including the policies bound to the virtual server. To display a list of all configured Content Switching virtual servers, do not specify a value for this parameter.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_botpolicy_binding.go b/resource/config/csvserver_botpolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_botpolicy_binding.go rename to resource/config/csvserver_botpolicy_binding.go index 15f4ccc..e31cb3a 100644 --- a/resource/config/cs/csvserver_botpolicy_binding.go +++ b/resource/config/csvserver_botpolicy_binding.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the botpolicy that can be bound to csvserver. -*/ + */ type Csvserverbotpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -56,8 +56,6 @@ type Csvserverbotpolicybinding struct { Targetlbvserver string `json:"targetlbvserver,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_cachepolicy_binding.go b/resource/config/csvserver_cachepolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_cachepolicy_binding.go rename to resource/config/csvserver_cachepolicy_binding.go index 3a759d7..8d6373a 100644 --- a/resource/config/cs/csvserver_cachepolicy_binding.go +++ b/resource/config/csvserver_cachepolicy_binding.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the cachepolicy that can be bound to csvserver. -*/ + */ type Csvservercachepolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -58,6 +58,4 @@ type Csvservercachepolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_cmppolicy_binding.go b/resource/config/csvserver_cmppolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_cmppolicy_binding.go rename to resource/config/csvserver_cmppolicy_binding.go index 98b21c2..70ebd3a 100644 --- a/resource/config/cs/csvserver_cmppolicy_binding.go +++ b/resource/config/csvserver_cmppolicy_binding.go @@ -12,49 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the cmppolicy that can be bound to csvserver. -*/ + */ type Csvservercmppolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -62,6 +62,4 @@ type Csvservercmppolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_contentinspectionpolicy_binding.go b/resource/config/csvserver_contentinspectionpolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_contentinspectionpolicy_binding.go rename to resource/config/csvserver_contentinspectionpolicy_binding.go index 02a334b..2fbf128 100644 --- a/resource/config/cs/csvserver_contentinspectionpolicy_binding.go +++ b/resource/config/csvserver_contentinspectionpolicy_binding.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the contentinspectionpolicy that can be bound to csvserver. -*/ + */ type Csvservercontentinspectionpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -58,6 +58,4 @@ type Csvservercontentinspectionpolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_cspolicy_binding.go b/resource/config/csvserver_cspolicy_binding.go similarity index 95% rename from resource/config/cs/csvserver_cspolicy_binding.go rename to resource/config/csvserver_cspolicy_binding.go index d0ea843..0895741 100644 --- a/resource/config/cs/csvserver_cspolicy_binding.go +++ b/resource/config/csvserver_cspolicy_binding.go @@ -12,70 +12,68 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the cspolicy that can be bound to csvserver. -*/ + */ type Csvservercspolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * target vserver name. - */ + */ Targetlbvserver string `json:"targetlbvserver,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Number of hits. - */ + */ Pipolicyhits int `json:"pipolicyhits,omitempty"` /** * Rule. - */ + */ Rule string `json:"rule,omitempty"` /** * Vserver Id of vserver - */ + */ Vserverid string `json:"vserverid,omitempty"` /** * Vserver id of the lb vserver that is inserted into the set-cookie HTTP header - */ + */ Cookieipport string `json:"cookieipport,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_domain_binding.go b/resource/config/csvserver_domain_binding.go similarity index 74% rename from resource/config/cs/csvserver_domain_binding.go rename to resource/config/csvserver_domain_binding.go index e89f84b..d237911 100644 --- a/resource/config/cs/csvserver_domain_binding.go +++ b/resource/config/csvserver_domain_binding.go @@ -12,31 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the domain that can be bound to csvserver. -*/ + */ type Csvserverdomainbinding struct { /** * Domain name for which to change the time to live (TTL) and/or backup service IP address. - */ - Domainname string `json:"domainname,omitempty"` - Ttl int `json:"ttl,omitempty"` - Backupip string `json:"backupip,omitempty"` - Cookiedomain string `json:"cookiedomain,omitempty"` - Cookietimeout int `json:"cookietimeout,omitempty"` - Sitedomainttl int `json:"sitedomainttl,omitempty"` + */ + Domainname string `json:"domainname,omitempty"` + Ttl int `json:"ttl,omitempty"` + Backupip string `json:"backupip,omitempty"` + Cookiedomain string `json:"cookiedomain,omitempty"` + Cookietimeout int `json:"cookietimeout,omitempty"` + Sitedomainttl int `json:"sitedomainttl,omitempty"` /** * Enable logging appflow flow information - */ + */ Appflowlog string `json:"appflowlog,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_feopolicy_binding.go b/resource/config/csvserver_feopolicy_binding.go similarity index 97% rename from resource/config/cs/csvserver_feopolicy_binding.go rename to resource/config/csvserver_feopolicy_binding.go index 1af8e5a..76c7f4c 100644 --- a/resource/config/cs/csvserver_feopolicy_binding.go +++ b/resource/config/csvserver_feopolicy_binding.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the feopolicy that can be bound to csvserver. -*/ + */ type Csvserverfeopolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -48,16 +48,14 @@ type Csvserverfeopolicybinding struct { Targetlbvserver string `json:"targetlbvserver,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_filterpolicy_binding.go b/resource/config/csvserver_filterpolicy_binding.go similarity index 98% rename from resource/config/cs/csvserver_filterpolicy_binding.go rename to resource/config/csvserver_filterpolicy_binding.go index b302c86..37de152 100644 --- a/resource/config/cs/csvserver_filterpolicy_binding.go +++ b/resource/config/csvserver_filterpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the filterpolicy that can be bound to csvserver. -*/ + */ type Csvserverfilterpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -60,20 +60,18 @@ type Csvserverfilterpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_gslbvserver_binding.go b/resource/config/csvserver_gslbvserver_binding.go similarity index 96% rename from resource/config/cs/csvserver_gslbvserver_binding.go rename to resource/config/csvserver_gslbvserver_binding.go index 80986ae..f5fe9b7 100644 --- a/resource/config/cs/csvserver_gslbvserver_binding.go +++ b/resource/config/csvserver_gslbvserver_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the gslbvserver that can be bound to csvserver. -*/ + */ type Csvservergslbvserverbinding struct { /** * Name of the default gslb or vpn vserver bound to CS vserver of type GSLB/VPN. For Example: bind cs vserver cs1 -vserver gslb1 or bind cs vserver cs1 -vserver vpn1 - */ + */ Vserver string `json:"vserver,omitempty"` /** * Number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_lbvserver_binding.go b/resource/config/csvserver_lbvserver_binding.go similarity index 96% rename from resource/config/cs/csvserver_lbvserver_binding.go rename to resource/config/csvserver_lbvserver_binding.go index e20fa3f..30fa88d 100644 --- a/resource/config/cs/csvserver_lbvserver_binding.go +++ b/resource/config/csvserver_lbvserver_binding.go @@ -12,38 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the lbvserver that can be bound to csvserver. -*/ + */ type Csvserverlbvserverbinding struct { /** * Name of the default lb vserver bound. Use this param for Default binding only. For Example: bind cs vserver cs1 -lbvserver lb1 - */ + */ Lbvserver string `json:"lbvserver,omitempty"` /** * Number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Vserver Id of vserver - */ + */ Vserverid string `json:"vserverid,omitempty"` /** * Vserver id of the lb vserver that is inserted into the set-cookie HTTP header - */ + */ Cookieipport string `json:"cookieipport,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * The virtual server name (created with the add lb vserver command) to which content will be switched. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_nslogpolicy_binding.go b/resource/config/csvserver_nslogpolicy_binding.go similarity index 98% rename from resource/config/cs/csvserver_nslogpolicy_binding.go rename to resource/config/csvserver_nslogpolicy_binding.go index 3907727..9f43904 100644 --- a/resource/config/cs/csvserver_nslogpolicy_binding.go +++ b/resource/config/csvserver_nslogpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the nslogpolicy that can be bound to csvserver. -*/ + */ type Csvservernslogpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -60,20 +60,18 @@ type Csvservernslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_policy_binding.go b/resource/config/csvserver_policy_binding.go similarity index 95% rename from resource/config/cs/csvserver_policy_binding.go rename to resource/config/csvserver_policy_binding.go index a612641..357968f 100644 --- a/resource/config/cs/csvserver_policy_binding.go +++ b/resource/config/csvserver_policy_binding.go @@ -12,74 +12,72 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the policy that can be bound to csvserver. -*/ + */ type Csvserverpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * target vserver name. - */ + */ Targetlbvserver string `json:"targetlbvserver,omitempty"` /** * Number of hits. - */ + */ Hits uint32 `json:"hits,omitempty"` /** * Number of hits. - */ + */ Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` /** * Rule. - */ + */ Rule string `json:"rule,omitempty"` /** * Vserver Id of vserver - */ + */ Vserverid string `json:"vserverid,omitempty"` /** * Vserver id of the lb vserver that is inserted into the set-cookie HTTP header - */ + */ Cookieipport string `json:"cookieipport,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_profile_binding.go b/resource/config/csvserver_profile_binding.go similarity index 96% rename from resource/config/cs/csvserver_profile_binding.go rename to resource/config/csvserver_profile_binding.go index 23edeab..a1e61d7 100644 --- a/resource/config/cs/csvserver_profile_binding.go +++ b/resource/config/csvserver_profile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the profile that can be bound to csvserver. -*/ + */ type Csvserverprofilebinding struct { /** * Name of the analytics profile bound to the LB vserver. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_responderpolicy_binding.go b/resource/config/csvserver_responderpolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_responderpolicy_binding.go rename to resource/config/csvserver_responderpolicy_binding.go index ff75e3d..0f1963a 100644 --- a/resource/config/cs/csvserver_responderpolicy_binding.go +++ b/resource/config/csvserver_responderpolicy_binding.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the responderpolicy that can be bound to csvserver. -*/ + */ type Csvserverresponderpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -58,6 +58,4 @@ type Csvserverresponderpolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_rewritepolicy_binding.go b/resource/config/csvserver_rewritepolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_rewritepolicy_binding.go rename to resource/config/csvserver_rewritepolicy_binding.go index 58168b4..dbe68f5 100644 --- a/resource/config/cs/csvserver_rewritepolicy_binding.go +++ b/resource/config/csvserver_rewritepolicy_binding.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the rewritepolicy that can be bound to csvserver. -*/ + */ type Csvserverrewritepolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -58,6 +58,4 @@ type Csvserverrewritepolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_spilloverpolicy_binding.go b/resource/config/csvserver_spilloverpolicy_binding.go similarity index 97% rename from resource/config/cs/csvserver_spilloverpolicy_binding.go rename to resource/config/csvserver_spilloverpolicy_binding.go index 255d309..fec4fa9 100644 --- a/resource/config/cs/csvserver_spilloverpolicy_binding.go +++ b/resource/config/csvserver_spilloverpolicy_binding.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the spilloverpolicy that can be bound to csvserver. -*/ + */ type Csvserverspilloverpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -48,16 +48,14 @@ type Csvserverspilloverpolicybinding struct { Targetlbvserver string `json:"targetlbvserver,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_syslogpolicy_binding.go b/resource/config/csvserver_syslogpolicy_binding.go similarity index 98% rename from resource/config/cs/csvserver_syslogpolicy_binding.go rename to resource/config/csvserver_syslogpolicy_binding.go index 4ea7bd1..20c8b6f 100644 --- a/resource/config/cs/csvserver_syslogpolicy_binding.go +++ b/resource/config/csvserver_syslogpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the syslogpolicy that can be bound to csvserver. -*/ + */ type Csvserversyslogpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * The state of SureConnect the specified virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -60,20 +60,18 @@ type Csvserversyslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_tmtrafficpolicy_binding.go b/resource/config/csvserver_tmtrafficpolicy_binding.go similarity index 98% rename from resource/config/cs/csvserver_tmtrafficpolicy_binding.go rename to resource/config/csvserver_tmtrafficpolicy_binding.go index 200b0dc..37e5eb6 100644 --- a/resource/config/cs/csvserver_tmtrafficpolicy_binding.go +++ b/resource/config/csvserver_tmtrafficpolicy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the tmtrafficpolicy that can be bound to csvserver. -*/ + */ type Csvservertmtrafficpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -56,20 +56,18 @@ type Csvservertmtrafficpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_trafficpolicy_binding.go b/resource/config/csvserver_trafficpolicy_binding.go similarity index 98% rename from resource/config/cs/csvserver_trafficpolicy_binding.go rename to resource/config/csvserver_trafficpolicy_binding.go index d2c724b..7762b44 100644 --- a/resource/config/cs/csvserver_trafficpolicy_binding.go +++ b/resource/config/csvserver_trafficpolicy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the trafficpolicy that can be bound to csvserver. -*/ + */ type Csvservertrafficpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -56,20 +56,18 @@ type Csvservertrafficpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of label to be invoked. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to be invoked. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_transformpolicy_binding.go b/resource/config/csvserver_transformpolicy_binding.go similarity index 96% rename from resource/config/cs/csvserver_transformpolicy_binding.go rename to resource/config/csvserver_transformpolicy_binding.go index 6e16637..124efa2 100644 --- a/resource/config/cs/csvserver_transformpolicy_binding.go +++ b/resource/config/csvserver_transformpolicy_binding.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the transformpolicy that can be bound to csvserver. -*/ + */ type Csvservertransformpolicybinding struct { /** * Policies bound to this vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority for the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. @@ -58,6 +58,4 @@ type Csvservertransformpolicybinding struct { Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver */ Targetlbvserver string `json:"targetlbvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_vpnvserver_binding.go b/resource/config/csvserver_vpnvserver_binding.go similarity index 96% rename from resource/config/cs/csvserver_vpnvserver_binding.go rename to resource/config/csvserver_vpnvserver_binding.go index 9f034d4..aa6a54e 100644 --- a/resource/config/cs/csvserver_vpnvserver_binding.go +++ b/resource/config/csvserver_vpnvserver_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the vpnvserver that can be bound to csvserver. -*/ + */ type Csvservervpnvserverbinding struct { /** * Name of the default gslb or vpn vserver bound to CS vserver of type GSLB/VPN. For Example: bind cs vserver cs1 -vserver gslb1 or bind cs vserver cs1 -vserver vpn1 - */ + */ Vserver string `json:"vserver,omitempty"` /** * Number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/cs/csvserver_vserver_binding.go b/resource/config/csvserver_vserver_binding.go similarity index 96% rename from resource/config/cs/csvserver_vserver_binding.go rename to resource/config/csvserver_vserver_binding.go index 8208338..d76a066 100644 --- a/resource/config/cs/csvserver_vserver_binding.go +++ b/resource/config/csvserver_vserver_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package cs +package config /** * Binding class showing the vserver that can be bound to csvserver. -*/ + */ type Csvservervserverbinding struct { /** * Name of the default gslb or vpn vserver bound to CS vserver of type GSLB/VPN. For Example: bind cs vserver cs1 -vserver gslb1 or bind cs vserver cs1 -vserver vpn1 - */ + */ Vserver string `json:"vserver,omitempty"` /** * Name of the default lb vserver bound. Use this param for Default binding only. For Example: bind cs vserver cs1 -lbvserver lb1 - */ + */ Lbvserver string `json:"lbvserver,omitempty"` /** * Number of hits. - */ + */ Hits uint32 `json:"hits,omitempty"` /** * Vserver Id of vserver - */ + */ Vserverid string `json:"vserverid,omitempty"` /** * Vserver id of the lb vserver that is inserted into the set-cookie HTTP header - */ + */ Cookieipport string `json:"cookieipport,omitempty"` /** * Name of the content switching virtual server to which the content switching policy applies. - */ + */ Name string `json:"name,omitempty"` /** * The virtual server name (created with the add lb vserver command) to which content will be switched. - */ + */ Targetvserver string `json:"targetvserver,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/db/dbdbprofile.go b/resource/config/dbdbprofile.go similarity index 96% rename from resource/config/db/dbdbprofile.go rename to resource/config/dbdbprofile.go index aa82692..8f71d26 100644 --- a/resource/config/db/dbdbprofile.go +++ b/resource/config/dbdbprofile.go @@ -12,42 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package db +package config /** * Configuration for DB profile resource. -*/ + */ type Dbdbprofile struct { /** * Name for the database profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after the profile is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). */ Name string `json:"name,omitempty"` /** * If ENABLED, inspect the query and update the connection information, if required. If DISABLED, forward the query to the server. - */ + */ Interpretquery string `json:"interpretquery,omitempty"` /** * If the queries are related to each other, forward to the same backend server. - */ + */ Stickiness string `json:"stickiness,omitempty"` /** * Name of the KCD account that is used for Windows authentication. - */ + */ Kcdaccount string `json:"kcdaccount,omitempty"` /** * Use the same server-side connection for multiple client-side requests. Default is enabled. - */ + */ Conmultiplex string `json:"conmultiplex,omitempty"` /** * Enable caching when connection multiplexing is OFF. - */ + */ Enablecachingconmuxoff string `json:"enablecachingconmuxoff,omitempty"` //------- Read only Parameter ---------; Refcnt string `json:"refcnt,omitempty"` - } diff --git a/resource/config/basic/dbsmonitors.go b/resource/config/dbsmonitors.go similarity index 96% rename from resource/config/basic/dbsmonitors.go rename to resource/config/dbsmonitors.go index f14b1b5..be6b3be 100644 --- a/resource/config/basic/dbsmonitors.go +++ b/resource/config/dbsmonitors.go @@ -12,13 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for DB monitors resource. -*/ + */ type Dbsmonitors struct { - } diff --git a/resource/config/db/dbuser.go b/resource/config/dbuser.go similarity index 96% rename from resource/config/db/dbuser.go rename to resource/config/dbuser.go index b079b8f..25bcc0b 100644 --- a/resource/config/db/dbuser.go +++ b/resource/config/dbuser.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package db +package config /** * Configuration for DB user resource. -*/ + */ type Dbuser struct { /** * Name of the database user. Must be the same as the user name specified in the database. - */ + */ Username string `json:"username,omitempty"` /** * Password for logging on to the database. Must be the same as the password specified in the database. - */ + */ Password string `json:"password,omitempty"` /** * Display the names of all database users currently logged on to the Citrix ADC. - */ + */ Loggedin bool `json:"loggedin,omitempty"` - } diff --git a/resource/config/dns/dnsaaaarec.go b/resource/config/dnsaaaarec.go similarity index 95% rename from resource/config/dns/dnsaaaarec.go rename to resource/config/dnsaaaarec.go index 1747a1e..00bc7ec 100644 --- a/resource/config/dns/dnsaaaarec.go +++ b/resource/config/dnsaaaarec.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for IPv6 address type record resource. -*/ + */ type Dnsaaaarec struct { /** * Domain name. - */ + */ Hostname string `json:"hostname,omitempty"` /** * One or more IPv6 addresses to assign to the domain name. - */ + */ Ipv6address string `json:"ipv6address,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached records need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -45,12 +45,11 @@ type Dnsaaaarec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Vservername string `json:"vservername,omitempty"` - Authtype string `json:"authtype,omitempty"` - + Authtype string `json:"authtype,omitempty"` } diff --git a/resource/config/dns/dnsaction.go b/resource/config/dnsaction.go similarity index 90% rename from resource/config/dns/dnsaction.go rename to resource/config/dnsaction.go index 4b61001..53c253b 100644 --- a/resource/config/dns/dnsaction.go +++ b/resource/config/dnsaction.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for DNS action resource. -*/ + */ type Dnsaction struct { /** * Name of the dns action. - */ + */ Actionname string `json:"actionname,omitempty"` /** * The type of DNS action that is being configured. - */ + */ Actiontype string `json:"actiontype,omitempty"` /** * List of IP address to be returned in case of rewrite_response actiontype. They can be of IPV4 or IPV6 type. @@ -35,26 +35,25 @@ type Dnsaction struct { Ipaddress []string `json:"ipaddress,omitempty"` /** * Time to live, in seconds. - */ + */ Ttl int `json:"ttl,omitempty"` /** * The view name that must be used for the given action. - */ + */ Viewname string `json:"viewname,omitempty"` /** * The location list in priority order used for the given action. - */ + */ Preferredloclist []string `json:"preferredloclist,omitempty"` /** * Name of the DNS profile to be associated with the transaction for which the action is chosen - */ + */ Dnsprofilename string `json:"dnsprofilename,omitempty"` //------- Read only Parameter ---------; - Drop string `json:"drop,omitempty"` + Drop string `json:"drop,omitempty"` Cachebypass string `json:"cachebypass,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/dns/dnsaction64.go b/resource/config/dnsaction64.go similarity index 93% rename from resource/config/dns/dnsaction64.go rename to resource/config/dnsaction64.go index a1e4985..14b412d 100644 --- a/resource/config/dns/dnsaction64.go +++ b/resource/config/dnsaction64.go @@ -12,36 +12,35 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for dns64 action resource. -*/ + */ type Dnsaction64 struct { /** * Name of the dns64 action. - */ + */ Actionname string `json:"actionname,omitempty"` /** * The dns64 prefix to be used if the after evaluating the rules - */ + */ Prefix string `json:"prefix,omitempty"` /** * The expression to select the criteria for ipv4 addresses to be used for synthesis. - Only if the mappedrule is evaluated to true the corresponding ipv4 address is used for synthesis using respective prefix, + Only if the mappedrule is evaluated to true the corresponding ipv4 address is used for synthesis using respective prefix, otherwise the A RR is discarded */ Mappedrule string `json:"mappedrule,omitempty"` /** * The expression to select the criteria for eliminating the corresponding ipv6 addresses from the response. - */ + */ Excluderule string `json:"excluderule,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/dns/dnsaddrec.go b/resource/config/dnsaddrec.go similarity index 95% rename from resource/config/dns/dnsaddrec.go rename to resource/config/dnsaddrec.go index 9d84fc9..5d1500f 100644 --- a/resource/config/dns/dnsaddrec.go +++ b/resource/config/dnsaddrec.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for address type record resource. -*/ + */ type Dnsaddrec struct { /** * Domain name. - */ + */ Hostname string `json:"hostname,omitempty"` /** * One or more IPv4 addresses to assign to the domain name. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached address records need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * The address record type. The type can take 3 values: @@ -45,12 +45,11 @@ type Dnsaddrec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Vservername string `json:"vservername,omitempty"` - Authtype string `json:"authtype,omitempty"` - + Authtype string `json:"authtype,omitempty"` } diff --git a/resource/config/dns/dnscnamerec.go b/resource/config/dnscnamerec.go similarity index 95% rename from resource/config/dns/dnscnamerec.go rename to resource/config/dnscnamerec.go index a5905a9..2e8970d 100644 --- a/resource/config/dns/dnscnamerec.go +++ b/resource/config/dnscnamerec.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for CNAME record resource. -*/ + */ type Dnscnamerec struct { /** * Alias for the canonical domain name. - */ + */ Aliasname string `json:"aliasname,omitempty"` /** * Canonical domain name. - */ + */ Canonicalname string `json:"canonicalname,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached CNAME record need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -45,12 +45,11 @@ type Dnscnamerec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Vservername string `json:"vservername,omitempty"` - Authtype string `json:"authtype,omitempty"` - + Authtype string `json:"authtype,omitempty"` } diff --git a/resource/config/dns/dnsglobal_binding.go b/resource/config/dnsglobal_binding.go similarity index 95% rename from resource/config/dns/dnsglobal_binding.go rename to resource/config/dnsglobal_binding.go index 85f7e66..849d556 100644 --- a/resource/config/dns/dnsglobal_binding.go +++ b/resource/config/dnsglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** -* Binding object which returns the resources bound to dnsglobal_binding. -*/ +* Binding object which returns the resources bound to dnsglobal_binding. + */ type Dnsglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnsglobal_dnspolicy_binding.go b/resource/config/dnsglobal_dnspolicy_binding.go similarity index 96% rename from resource/config/dns/dnsglobal_dnspolicy_binding.go rename to resource/config/dnsglobal_dnspolicy_binding.go index 4ce6d81..8757628 100644 --- a/resource/config/dns/dnsglobal_dnspolicy_binding.go +++ b/resource/config/dnsglobal_dnspolicy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the dnspolicy that can be bound to dnsglobal. -*/ + */ type Dnsglobaldnspolicybinding struct { /** * Name of the dns policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Type of global bind point for which to show bound policies. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy with which it is bound. Maximum allowed priority should be less than 65535 - */ + */ Priority int `json:"priority,omitempty"` /** * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -50,25 +50,23 @@ type Dnsglobaldnspolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol int `json:"numpol,omitempty"` /** * flowtype of the bound rewrite policy. - */ - Flowtype int `json:"flowtype,omitempty"` + */ + Flowtype int `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnsglobal_policy_binding.go b/resource/config/dnsglobal_policy_binding.go similarity index 96% rename from resource/config/dns/dnsglobal_policy_binding.go rename to resource/config/dnsglobal_policy_binding.go index 32d8d1e..aeb0ccc 100644 --- a/resource/config/dns/dnsglobal_policy_binding.go +++ b/resource/config/dnsglobal_policy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the policy that can be bound to dnsglobal. -*/ + */ type Dnsglobalpolicybinding struct { /** * Name of the dns policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Type of global bind point for which to show bound policies. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy with which it is bound. Maximum allowed priority should be less than 65535 - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -50,25 +50,23 @@ type Dnsglobalpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol uint32 `json:"numpol,omitempty"` /** * flowtype of the bound rewrite policy. - */ - Flowtype uint32 `json:"flowtype,omitempty"` + */ + Flowtype uint32 `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnskey.go b/resource/config/dnskey.go similarity index 96% rename from resource/config/dns/dnskey.go rename to resource/config/dnskey.go index 51b6421..d910854 100644 --- a/resource/config/dns/dnskey.go +++ b/resource/config/dnskey.go @@ -12,73 +12,72 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for dns key resource. -*/ + */ type Dnskey struct { /** * Name of the public-private key pair to publish in the zone. - */ + */ Keyname string `json:"keyname,omitempty"` /** * File name of the public key. - */ + */ Publickey string `json:"publickey,omitempty"` /** * File name of the private key. - */ + */ Privatekey string `json:"privatekey,omitempty"` /** * Time period for which to consider the key valid, after the key is used to sign a zone. - */ + */ Expires int `json:"expires,omitempty"` /** * Units for the expiry period. - */ + */ Units1 string `json:"units1,omitempty"` /** * Time at which to generate notification of key expiration, specified as number of days, hours, or minutes before expiry. Must be less than the expiry period. The notification is an SNMP trap sent to an SNMP manager. To enable the appliance to send the trap, enable the DNSKEY-EXPIRY SNMP alarm. - */ + */ Notificationperiod int `json:"notificationperiod,omitempty"` /** * Units for the notification period. - */ + */ Units2 string `json:"units2,omitempty"` /** * Time to Live (TTL), in seconds, for the DNSKEY resource record created in the zone. TTL is the time for which the record must be cached by the DNS proxies. If the TTL is not specified, either the DNS zone's minimum TTL or the default value of 3600 is used. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Passphrase for reading the encrypted public/private DNS keys - */ + */ Password string `json:"password,omitempty"` /** * Name of the zone for which to create a key. - */ + */ Zonename string `json:"zonename,omitempty"` /** * Type of key to create. - */ + */ Keytype string `json:"keytype,omitempty"` /** * Algorithm to generate for zone signing. - */ + */ Algorithm string `json:"algorithm,omitempty"` /** * Size of the key, in bits. - */ + */ Keysize int `json:"keysize,omitempty"` /** * Common prefix for the names of the generated public and private key files and the Delegation Signer (DS) resource record. During key generation, the .key, .private, and .ds suffixes are appended automatically to the file name prefix to produce the names of the public key, the private key, and the DS record, respectively. - */ + */ Filenameprefix string `json:"filenameprefix,omitempty"` /** * URL (protocol, host, path, and file name) from where the DNS key file will be imported. NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. This is a mandatory argument - */ + */ Src string `json:"src,omitempty"` - } diff --git a/resource/config/dns/dnsmxrec.go b/resource/config/dnsmxrec.go similarity index 97% rename from resource/config/dns/dnsmxrec.go rename to resource/config/dnsmxrec.go index b5f951c..88ec274 100644 --- a/resource/config/dns/dnsmxrec.go +++ b/resource/config/dnsmxrec.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for MX record resource. -*/ + */ type Dnsmxrec struct { /** * Domain name for which to add the MX record. - */ + */ Domain string `json:"domain,omitempty"` /** * Host name of the mail exchange server. - */ + */ Mx string `json:"mx,omitempty"` /** * Priority number to assign to the mail exchange server. A domain name can have multiple mail servers, with a priority number assigned to each server. The lower the priority number, the higher the mail server's priority. When other mail servers have to deliver mail to the specified domain, they begin with the mail server with the lowest priority number, and use other configured mail servers, in priority order, as backups. - */ + */ Pref int `json:"pref,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached MX record need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -49,11 +49,10 @@ type Dnsmxrec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Authtype string `json:"authtype,omitempty"` - } diff --git a/resource/config/dns/dnsnameserver.go b/resource/config/dnsnameserver.go similarity index 87% rename from resource/config/dns/dnsnameserver.go rename to resource/config/dnsnameserver.go index eeddf7a..e0005a6 100644 --- a/resource/config/dns/dnsnameserver.go +++ b/resource/config/dnsnameserver.go @@ -12,46 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for name server resource. -*/ + */ type Dnsnameserver struct { /** * IP address of an external name server or, if the Local parameter is set, IP address of a local DNS server (LDNS). - */ + */ Ip string `json:"ip,omitempty"` /** * Name of a DNS virtual server. Overrides any IP address-based name servers configured on the Citrix ADC. - */ + */ Dnsvservername string `json:"dnsvservername,omitempty"` /** - * Mark the IP address as one that belongs to a local recursive DNS server on the Citrix ADC. The appliance recursively resolves queries received on an IP address that is marked as being local. For recursive resolution to work, the global DNS parameter, Recursion, must also be set. + * Mark the IP address as one that belongs to a local recursive DNS server on the Citrix ADC. The appliance recursively resolves queries received on an IP address that is marked as being local. For recursive resolution to work, the global DNS parameter, Recursion, must also be set. If no name server is marked as being local, the appliance functions as a stub resolver and load balances the name servers. */ Local bool `json:"local,omitempty"` /** * Administrative state of the name server. - */ + */ State string `json:"state,omitempty"` /** * Protocol used by the name server. UDP_TCP is not valid if the name server is a DNS virtual server configured on the appliance. - */ + */ Type string `json:"type,omitempty"` /** * Name of the DNS profile to be associated with the name server - */ + */ Dnsprofilename string `json:"dnsprofilename,omitempty"` //------- Read only Parameter ---------; - Servicename string `json:"servicename,omitempty"` - Port string `json:"port,omitempty"` + Servicename string `json:"servicename,omitempty"` + Port string `json:"port,omitempty"` Nameserverstate string `json:"nameserverstate,omitempty"` - Clmonowner string `json:"clmonowner,omitempty"` - Clmonview string `json:"clmonview,omitempty"` - + Clmonowner string `json:"clmonowner,omitempty"` + Clmonview string `json:"clmonview,omitempty"` } diff --git a/resource/config/dns/dnsnaptrrec.go b/resource/config/dnsnaptrrec.go similarity index 96% rename from resource/config/dns/dnsnaptrrec.go rename to resource/config/dnsnaptrrec.go index f8bf955..9252235 100644 --- a/resource/config/dns/dnsnaptrrec.go +++ b/resource/config/dnsnaptrrec.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for NAPTR record resource. -*/ + */ type Dnsnaptrrec struct { /** * Name of the domain for the NAPTR record. - */ + */ Domain string `json:"domain,omitempty"` /** * An integer specifying the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules. The ordering is from lowest to highest - */ + */ Order int `json:"order,omitempty"` /** * An integer specifying the preference of this NAPTR among NAPTR records having same order. lower the number, higher the preference. - */ + */ Preference int `json:"preference,omitempty"` /** * flags for this NAPTR. - */ + */ Flags string `json:"flags,omitempty"` /** * Service Parameters applicable to this delegation path. - */ + */ Services string `json:"services,omitempty"` /** * The regular expression, that specifies the substitution expression for this NAPTR - */ + */ Regexp string `json:"regexp,omitempty"` /** * The replacement domain name for this NAPTR. - */ + */ Replacement string `json:"replacement,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Unique, internally generated record ID. View the details of the naptr record to obtain its record ID. Records can be removed by either specifying the domain name and record id OR by specifying @@ -59,7 +59,7 @@ type Dnsnaptrrec struct { Recordid int `json:"recordid,omitempty"` /** * Subnet for which the cached NAPTR record need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -70,12 +70,11 @@ type Dnsnaptrrec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - Authtype string `json:"authtype,omitempty"` + Authtype string `json:"authtype,omitempty"` Vservername string `json:"vservername,omitempty"` - } diff --git a/resource/config/dns/dnsnsecrec.go b/resource/config/dnsnsecrec.go similarity index 87% rename from resource/config/dns/dnsnsecrec.go rename to resource/config/dnsnsecrec.go index 55b23ff..07115b0 100644 --- a/resource/config/dns/dnsnsecrec.go +++ b/resource/config/dnsnsecrec.go @@ -12,15 +12,14 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package dns + */ +package config type Dnsnsecrec struct { /** * Name of the domain. - */ + */ Hostname string `json:"hostname,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -32,9 +31,8 @@ type Dnsnsecrec struct { //------- Read only Parameter ---------; - Nextnsec string `json:"nextnsec,omitempty"` - Nextrecs string `json:"nextrecs,omitempty"` - Ttl string `json:"ttl,omitempty"` + Nextnsec string `json:"nextnsec,omitempty"` + Nextrecs string `json:"nextrecs,omitempty"` + Ttl string `json:"ttl,omitempty"` Ecssubnet string `json:"ecssubnet,omitempty"` - } diff --git a/resource/config/dns/dnsnsrec.go b/resource/config/dnsnsrec.go similarity index 97% rename from resource/config/dns/dnsnsrec.go rename to resource/config/dnsnsrec.go index a1e444e..8b2c13c 100644 --- a/resource/config/dns/dnsnsrec.go +++ b/resource/config/dnsnsrec.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for name server record resource. -*/ + */ type Dnsnsrec struct { /** * Domain name. - */ + */ Domain string `json:"domain,omitempty"` /** * Host name of the name server to add to the domain. - */ + */ Nameserver string `json:"nameserver,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached name server record need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -45,11 +45,10 @@ type Dnsnsrec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Authtype string `json:"authtype,omitempty"` - } diff --git a/resource/config/dns/dnsparameter.go b/resource/config/dnsparameter.go similarity index 97% rename from resource/config/dns/dnsparameter.go rename to resource/config/dnsparameter.go index 56c4b71..6a1c1e0 100644 --- a/resource/config/dns/dnsparameter.go +++ b/resource/config/dnsparameter.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for DNS parameter resource. -*/ + */ type Dnsparameter struct { /** * Maximum number of retry attempts when no response is received for a query sent to a name server. Applies to end resolver and forwarder configurations. - */ + */ Retries int `json:"retries,omitempty"` /** * Minimum permissible time to live (TTL) for all records cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is lower than the value configured for minTTL, the TTL of the record is set to the value of minTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. - */ + */ Minttl int `json:"minttl"` // Zero is a valid value /** * Maximum time to live (TTL) for all records cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is higher than the value configured for maxTTL, the TTL of the record is set to the value of maxTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. - */ + */ Maxttl int `json:"maxttl,omitempty"` /** * Cache resource records in the DNS cache. Applies to resource records obtained through proxy configurations only. End resolver and forwarder configurations always cache records in the DNS cache, and you cannot disable this behavior. When you disable record caching, the appliance stops caching server responses. However, cached records are not flushed. The appliance does not serve requests from the cache until record caching is enabled again. - */ + */ Cacherecords string `json:"cacherecords,omitempty"` /** * Type of lookup (DNS or WINS) to attempt first. If the first-priority lookup fails, the second-priority lookup is attempted. Used only by the SSL VPN feature. - */ + */ Namelookuppriority string `json:"namelookuppriority,omitempty"` /** * Function as an end resolver and recursively resolve queries for domains that are not hosted on the Citrix ADC. Also resolve queries recursively when the external name servers configured on the appliance (for a forwarder configuration) are unavailable. When external name servers are unavailable, the appliance queries a root server and resolves the request recursively, as it does for an end resolver configuration. - */ + */ Recursion string `json:"recursion,omitempty"` /** * Type of DNS queries (A, AAAA, or both) to generate during the routine functioning of certain Citrix ADC features, such as SSL VPN, cache redirection, and the integrated cache. The queries are sent to the external name servers that are configured for the forwarder function. If you specify both query types, you can also specify the order. Available settings function as follows: - * OnlyAQuery. Send queries for IPv4 address records (A records) only. + * OnlyAQuery. Send queries for IPv4 address records (A records) only. * OnlyAAAAQuery. Send queries for IPv6 address records (AAAA records) instead of queries for IPv4 address records (A records). * AThenAAAAQuery. Send a query for an A record, and then send a query for an AAAA record if the query for the A record results in a NODATA response from the name server. * AAAAThenAQuery. Send a query for an AAAA record, and then send a query for an A record if the query for the AAAA record results in a NODATA response from the name server. @@ -54,65 +54,64 @@ type Dnsparameter struct { Resolutionorder string `json:"resolutionorder,omitempty"` /** * Enable or disable the Domain Name System Security Extensions (DNSSEC) feature on the appliance. Note: Even when the DNSSEC feature is enabled, forwarder configurations (used by internal Citrix ADC features such as SSL VPN and Cache Redirection for name resolution) do not support the DNSSEC OK (DO) bit in the EDNS0 OPT header. - */ + */ Dnssec string `json:"dnssec,omitempty"` /** * Maximum number of concurrent DNS requests to allow on a single client connection, which is identified by the - tuple. A value of 0 (zero) applies no limit to the number of concurrent DNS requests allowed on a single client connection. - */ + */ Maxpipeline int `json:"maxpipeline,omitempty"` /** * Send a root referral if a client queries a domain name that is unrelated to the domains configured/cached on the Citrix ADC. If the setting is disabled, the appliance sends a blank response instead of a root referral. Applicable to domains for which the appliance is authoritative. Disable the parameter when the appliance is under attack from a client that is sending a flood of queries for unrelated domains. - */ + */ Dnsrootreferral string `json:"dnsrootreferral,omitempty"` /** * While doing DNS64 resolution, this parameter specifies the time to wait before sending an A query if no response is received from backend DNS server for AAAA query. - */ + */ Dns64timeout int `json:"dns64timeout"` // Zero is a valid value /** * Maximum number of subnets that can be cached corresponding to a single domain. Subnet caching will occur for responses with EDNS Client Subnet (ECS) option. Caching of such responses can be disabled using DNS profile settings. A value of zero indicates that the number of subnets cached is limited only by existing memory constraints. The default value is zero. - */ + */ Ecsmaxsubnets int `json:"ecsmaxsubnets"` // Zero is a valid value /** * Maximum time to live (TTL) for all negative records ( NXDONAIN and NODATA ) cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is higher than the value configured for maxnegcacheTTL, the TTL of the record is set to the value of maxnegcacheTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. - */ + */ Maxnegcachettl int `json:"maxnegcachettl,omitempty"` /** * This parameter is applicable only in proxy mode and if this parameter is enabled we will forward all the client requests to the backend DNS server and the response served will be cached on Citrix ADC - */ + */ Cachehitbypass string `json:"cachehitbypass,omitempty"` /** * Maximum memory, in megabytes, that can be used for dns caching per Packet Engine. - */ + */ Maxcachesize int `json:"maxcachesize"` // Zero is a valid value /** * Maximum memory, in megabytes, that can be used for caching of negative DNS responses per packet engine. - */ + */ Maxnegativecachesize int `json:"maxnegativecachesize"` // Zero is a valid value /** * If this flag is set to YES, the existing entries in cache do not age out. On reaching the max limit the cache records are frozen - */ + */ Cachenoexpire string `json:"cachenoexpire,omitempty"` /** * Processing requests split across multiple packets - */ + */ Splitpktqueryprocessing string `json:"splitpktqueryprocessing,omitempty"` /** * Cache ECS responses with a Scope Prefix length of zero. Such a cached response will be used for all queries with this domain name and any subnet. When disabled, ECS responses with Scope Prefix length of zero will be cached, but not tied to any subnet. This option has no effect if caching of ECS responses is disabled in the corresponding DNS profile. - */ + */ Cacheecszeroprefix string `json:"cacheecszeroprefix,omitempty"` /** * Maximum UDP packet size that can be handled by Citrix ADC. This is the value advertised by Citrix ADC when responding as an authoritative server and it is also used when Citrix ADC queries other name servers as a forwarder. When acting as a proxy, requests from clients are limited by this parameter - if a request contains a size greater than this value in the OPT record, it will be replaced. - */ + */ Maxudppacketsize int `json:"maxudppacketsize,omitempty"` /** * Rate limit threshold for Non-Existant domain (NXDOMAIN) responses generated from Citrix ADC. Once the threshold is breached , DNS queries leading to NXDOMAIN response will be dropped. This threshold will not be applied for NXDOMAIN responses got from the backend. The threshold will be applied per packet engine and per second. - */ + */ Nxdomainratelimitthreshold int `json:"nxdomainratelimitthreshold"` // Zero is a valid value //------- Read only Parameter ---------; - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Nxdomainthresholdcrossed string `json:"nxdomainthresholdcrossed,omitempty"` - } diff --git a/resource/config/dns/dnspolicy.go b/resource/config/dnspolicy.go similarity index 88% rename from resource/config/dns/dnspolicy.go rename to resource/config/dnspolicy.go index 45e375e..c1da7a0 100644 --- a/resource/config/dns/dnspolicy.go +++ b/resource/config/dnspolicy.go @@ -12,46 +12,46 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for DNS policy resource. -*/ + */ type Dnspolicy struct { /** * Name for the DNS policy. - */ + */ Name string `json:"name,omitempty"` /** * Expression against which DNS traffic is evaluated. Note: * On the command line interface, if the expression includes blank spaces, the entire expression must be enclosed in double quotation marks. - * If the expression itself includes double quotation marks, you must escape the quotations by using the character. - * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + * If the expression itself includes double quotation marks, you must escape the quotations by using the character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. Example: CLIENT.UDP.DNS.DOMAIN.EQ("domainname") */ Rule string `json:"rule,omitempty"` /** * The view name that must be used for the given policy. - */ + */ Viewname string `json:"viewname,omitempty"` /** * The location used for the given policy. This is deprecated attribute. Please use -prefLocList - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * The location list in priority order used for the given policy. - */ + */ Preferredloclist []string `json:"preferredloclist,omitempty"` /** * The dns packet must be dropped. - */ + */ Drop string `json:"drop,omitempty"` /** * By pass dns cache for this. - */ + */ Cachebypass string `json:"cachebypass,omitempty"` /** * Name of the DNS action to perform when the rule evaluates to TRUE. The built in actions function as follows: @@ -62,15 +62,14 @@ type Dnspolicy struct { Actionname string `json:"actionname,omitempty"` /** * Name of the messagelog action to use for requests that match this policy. - */ + */ Logaction string `json:"logaction,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Undefhits string `json:"undefhits,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` Description string `json:"description,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/dns/dnspolicy64.go b/resource/config/dnspolicy64.go similarity index 84% rename from resource/config/dns/dnspolicy64.go rename to resource/config/dnspolicy64.go index 30da5b2..162a112 100644 --- a/resource/config/dns/dnspolicy64.go +++ b/resource/config/dnspolicy64.go @@ -12,40 +12,39 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for dns64 policy resource. -*/ + */ type Dnspolicy64 struct { /** * Name for the DNS64 policy. - */ + */ Name string `json:"name,omitempty"` /** * Expression against which DNS traffic is evaluated. Note: * On the command line interface, if the expression includes blank spaces, the entire expression must be enclosed in double quotation marks. - * If the expression itself includes double quotation marks, you must escape the quotations by using the character. - * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + * If the expression itself includes double quotation marks, you must escape the quotations by using the character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. Example: CLIENT.IP.SRC.IN_SUBENT(23.34.0.0/16) */ Rule string `json:"rule,omitempty"` /** * Name of the DNS64 action to perform when the rule evaluates to TRUE. The built in actions function as follows: - * A default dns64 action with prefix and mapped and exclude are any + * A default dns64 action with prefix and mapped and exclude are any You can create custom actions by using the add dns action command in the CLI or the DNS64 > Actions > Create DNS64 Action dialog box in the Citrix ADC configuration utility. */ Action string `json:"action,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Labelname string `json:"labelname,omitempty"` - Undefhits string `json:"undefhits,omitempty"` + Hits string `json:"hits,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Labelname string `json:"labelname,omitempty"` + Undefhits string `json:"undefhits,omitempty"` Description string `json:"description,omitempty"` - } diff --git a/resource/config/dns/dnspolicy64_binding.go b/resource/config/dnspolicy64_binding.go similarity index 95% rename from resource/config/dns/dnspolicy64_binding.go rename to resource/config/dnspolicy64_binding.go index 8bc9769..69f7dbb 100644 --- a/resource/config/dns/dnspolicy64_binding.go +++ b/resource/config/dnspolicy64_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** -* Binding object which returns the resources bound to dnspolicy64_binding. -*/ +* Binding object which returns the resources bound to dnspolicy64_binding. + */ type Dnspolicy64binding struct { /** * Name of the DNS64 policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicy64_lbvserver_binding.go b/resource/config/dnspolicy64_lbvserver_binding.go similarity index 96% rename from resource/config/dns/dnspolicy64_lbvserver_binding.go rename to resource/config/dnspolicy64_lbvserver_binding.go index 04515ed..76de55d 100644 --- a/resource/config/dns/dnspolicy64_lbvserver_binding.go +++ b/resource/config/dnspolicy64_lbvserver_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the lbvserver that can be bound to dnspolicy64. -*/ + */ type Dnspolicy64lbvserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the DNS64 policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicy64_vserver_binding.go b/resource/config/dnspolicy64_vserver_binding.go similarity index 96% rename from resource/config/dns/dnspolicy64_vserver_binding.go rename to resource/config/dnspolicy64_vserver_binding.go index e50ca40..94d975f 100644 --- a/resource/config/dns/dnspolicy64_vserver_binding.go +++ b/resource/config/dnspolicy64_vserver_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the vserver that can be bound to dnspolicy64. -*/ + */ type Dnspolicy64vserverbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the DNS64 policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicy_binding.go b/resource/config/dnspolicy_binding.go similarity index 95% rename from resource/config/dns/dnspolicy_binding.go rename to resource/config/dnspolicy_binding.go index f3ad91c..871e823 100644 --- a/resource/config/dns/dnspolicy_binding.go +++ b/resource/config/dnspolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** -* Binding object which returns the resources bound to dnspolicy_binding. -*/ +* Binding object which returns the resources bound to dnspolicy_binding. + */ type Dnspolicybinding struct { /** * Name of the DNS policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicy_dnsglobal_binding.go b/resource/config/dnspolicy_dnsglobal_binding.go similarity index 96% rename from resource/config/dns/dnspolicy_dnsglobal_binding.go rename to resource/config/dnspolicy_dnsglobal_binding.go index f753baa..90c1d12 100644 --- a/resource/config/dns/dnspolicy_dnsglobal_binding.go +++ b/resource/config/dnspolicy_dnsglobal_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the dnsglobal that can be bound to dnspolicy. -*/ + */ type Dnspolicydnsglobalbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the DNS policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicy_dnspolicylabel_binding.go b/resource/config/dnspolicy_dnspolicylabel_binding.go similarity index 96% rename from resource/config/dns/dnspolicy_dnspolicylabel_binding.go rename to resource/config/dnspolicy_dnspolicylabel_binding.go index fb9627b..38065b1 100644 --- a/resource/config/dns/dnspolicy_dnspolicylabel_binding.go +++ b/resource/config/dnspolicy_dnspolicylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the dnspolicylabel that can be bound to dnspolicy. -*/ + */ type Dnspolicydnspolicylabelbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the DNS policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicy_global_binding.go b/resource/config/dnspolicy_global_binding.go similarity index 96% rename from resource/config/dns/dnspolicy_global_binding.go rename to resource/config/dnspolicy_global_binding.go index 6ece970..18c78cc 100644 --- a/resource/config/dns/dnspolicy_global_binding.go +++ b/resource/config/dnspolicy_global_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the global that can be bound to dnspolicy. -*/ + */ type Dnspolicyglobalbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the DNS policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicy_policylabel_binding.go b/resource/config/dnspolicy_policylabel_binding.go similarity index 96% rename from resource/config/dns/dnspolicy_policylabel_binding.go rename to resource/config/dnspolicy_policylabel_binding.go index e6eb68a..d1ee3f8 100644 --- a/resource/config/dns/dnspolicy_policylabel_binding.go +++ b/resource/config/dnspolicy_policylabel_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the policylabel that can be bound to dnspolicy. -*/ + */ type Dnspolicypolicylabelbinding struct { /** * Location where policy is bound - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name of the DNS policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicylabel.go b/resource/config/dnspolicylabel.go similarity index 68% rename from resource/config/dns/dnspolicylabel.go rename to resource/config/dnspolicylabel.go index 0c03a68..4875335 100644 --- a/resource/config/dns/dnspolicylabel.go +++ b/resource/config/dnspolicylabel.go @@ -12,37 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for dns policy label resource. -*/ + */ type Dnspolicylabel struct { /** * Name of the dns policy label. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The type of transformations allowed by the policies bound to the label. - */ + */ Transform string `json:"transform,omitempty"` /** * The new name of the dns policylabel. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Numpol string `json:"numpol,omitempty"` - Hits string `json:"hits,omitempty"` - Priority string `json:"priority,omitempty"` + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Flowtype string `json:"flowtype,omitempty"` - Description string `json:"description,omitempty"` - Isdefault string `json:"isdefault,omitempty"` - + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` + Isdefault string `json:"isdefault,omitempty"` } diff --git a/resource/config/dns/dnspolicylabel_binding.go b/resource/config/dnspolicylabel_binding.go similarity index 94% rename from resource/config/dns/dnspolicylabel_binding.go rename to resource/config/dnspolicylabel_binding.go index ea1c45c..882c19e 100644 --- a/resource/config/dns/dnspolicylabel_binding.go +++ b/resource/config/dnspolicylabel_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** -* Binding object which returns the resources bound to dnspolicylabel_binding. -*/ +* Binding object which returns the resources bound to dnspolicylabel_binding. + */ type Dnspolicylabelbinding struct { /** * Name of the dns policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicylabel_dnspolicy_binding.go b/resource/config/dnspolicylabel_dnspolicy_binding.go similarity index 96% rename from resource/config/dns/dnspolicylabel_dnspolicy_binding.go rename to resource/config/dnspolicylabel_dnspolicy_binding.go index 14e290e..7bedbca 100644 --- a/resource/config/dns/dnspolicylabel_dnspolicy_binding.go +++ b/resource/config/dnspolicylabel_dnspolicy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the dnspolicy that can be bound to dnspolicylabel. -*/ + */ type Dnspolicylabeldnspolicybinding struct { /** * The dns policy name. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the dns policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicylabel_policy_binding.go b/resource/config/dnspolicylabel_policy_binding.go similarity index 96% rename from resource/config/dns/dnspolicylabel_policy_binding.go rename to resource/config/dnspolicylabel_policy_binding.go index 1643f88..2cbad7c 100644 --- a/resource/config/dns/dnspolicylabel_policy_binding.go +++ b/resource/config/dnspolicylabel_policy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the policy that can be bound to dnspolicylabel. -*/ + */ type Dnspolicylabelpolicybinding struct { /** * The dns policy name. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the dns policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnspolicylabel_policybinding_binding.go b/resource/config/dnspolicylabel_policybinding_binding.go similarity index 96% rename from resource/config/dns/dnspolicylabel_policybinding_binding.go rename to resource/config/dnspolicylabel_policybinding_binding.go index c9ab767..b85fae1 100644 --- a/resource/config/dns/dnspolicylabel_policybinding_binding.go +++ b/resource/config/dnspolicylabel_policybinding_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the policybinding that can be bound to dnspolicylabel. -*/ + */ type Dnspolicylabelpolicybindingbinding struct { /** * The dns policy name. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke flag. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label invocation. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label to invoke if the current policy rule evaluates to TRUE. - */ + */ Invokelabelname string `json:"invoke_labelname,omitempty"` /** * Name of the dns policy label. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnsprofile.go b/resource/config/dnsprofile.go similarity index 98% rename from resource/config/dns/dnsprofile.go rename to resource/config/dnsprofile.go index 587d7a9..e5ee484 100644 --- a/resource/config/dns/dnsprofile.go +++ b/resource/config/dnsprofile.go @@ -12,53 +12,52 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for DNS profile resource. -*/ + */ type Dnsprofile struct { /** * Name of the DNS profile - */ + */ Dnsprofilename string `json:"dnsprofilename,omitempty"` /** * DNS query logging; if enabled, DNS query information such as DNS query id, DNS query flags , DNS domain name and DNS query type will be logged - */ + */ Dnsquerylogging string `json:"dnsquerylogging,omitempty"` /** * DNS answer section; if enabled, answer section in the response will be logged. - */ + */ Dnsanswerseclogging string `json:"dnsanswerseclogging,omitempty"` /** * DNS extended logging; if enabled, authority and additional section in the response will be logged. - */ + */ Dnsextendedlogging string `json:"dnsextendedlogging,omitempty"` /** * DNS error logging; if enabled, whenever error is encountered in DNS module reason for the error will be logged. - */ + */ Dnserrorlogging string `json:"dnserrorlogging,omitempty"` /** * Cache resource records in the DNS cache. Applies to resource records obtained through proxy configurations only. End resolver and forwarder configurations always cache records in the DNS cache, and you cannot disable this behavior. When you disable record caching, the appliance stops caching server responses. However, cached records are not flushed. The appliance does not serve requests from the cache until record caching is enabled again. - */ + */ Cacherecords string `json:"cacherecords,omitempty"` /** * Cache negative responses in the DNS cache. When disabled, the appliance stops caching negative responses except referral records. This applies to all configurations - proxy, end resolver, and forwarder. However, cached responses are not flushed. The appliance does not serve negative responses from the cache until this parameter is enabled again. - */ + */ Cachenegativeresponses string `json:"cachenegativeresponses,omitempty"` /** * Drop the DNS requests containing multiple queries. When enabled, DNS requests containing multiple queries will be dropped. In case of proxy configuration by default the DNS request containing multiple queries is forwarded to the backend and in case of ADNS and Resolver configuration NOCODE error response will be sent to the client. - */ + */ Dropmultiqueryrequest string `json:"dropmultiqueryrequest,omitempty"` /** * Cache DNS responses with EDNS Client Subnet(ECS) option in the DNS cache. When disabled, the appliance stops caching responses with ECS option. This is relevant to proxy configuration. Enabling/disabling support of ECS option when Citrix ADC is authoritative for a GSLB domain is supported using a knob in GSLB vserver. In all other modes, ECS option is ignored. - */ + */ Cacheecsresponses string `json:"cacheecsresponses,omitempty"` //------- Read only Parameter ---------; Referencecount string `json:"referencecount,omitempty"` - } diff --git a/resource/config/dns/dnsproxyrecords.go b/resource/config/dnsproxyrecords.go similarity index 91% rename from resource/config/dns/dnsproxyrecords.go rename to resource/config/dnsproxyrecords.go index d7cfc37..f43c2ad 100644 --- a/resource/config/dns/dnsproxyrecords.go +++ b/resource/config/dnsproxyrecords.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for proxy record resource. -*/ + */ type Dnsproxyrecords struct { /** - * Filter the DNS records to be flushed.e.g flush dns proxyRecords -type A will flush only the A records from the cache. - */ + * Filter the DNS records to be flushed.e.g flush dns proxyRecords -type A will flush only the A records from the cache. + */ Type string `json:"type,omitempty"` /** * Filter the Negative DNS records i.e NXDOMAIN and NODATA entries to be flushed. e.g flush dns proxyRecords NXDOMAIN will flush only the NXDOMAIN entries from the cache - */ + */ Negrectype string `json:"negrectype,omitempty"` - } diff --git a/resource/config/dns/dnsptrrec.go b/resource/config/dnsptrrec.go similarity index 97% rename from resource/config/dns/dnsptrrec.go rename to resource/config/dnsptrrec.go index b3b9b2c..8d09e9b 100644 --- a/resource/config/dns/dnsptrrec.go +++ b/resource/config/dnsptrrec.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for PTR record resource. -*/ + */ type Dnsptrrec struct { /** * Reversed domain name representation of the IPv4 or IPv6 address for which to create the PTR record. Use the "in-addr.arpa." suffix for IPv4 addresses and the "ip6.arpa." suffix for IPv6 addresses. - */ + */ Reversedomain string `json:"reversedomain,omitempty"` /** * Domain name for which to configure reverse mapping. - */ + */ Domain string `json:"domain,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached PTR record need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -45,11 +45,10 @@ type Dnsptrrec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Authtype string `json:"authtype,omitempty"` - } diff --git a/resource/config/dns/dnssoarec.go b/resource/config/dnssoarec.go similarity index 97% rename from resource/config/dns/dnssoarec.go rename to resource/config/dnssoarec.go index 7997ca2..3812f66 100644 --- a/resource/config/dns/dnssoarec.go +++ b/resource/config/dnssoarec.go @@ -12,53 +12,53 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for SOA record resource. -*/ + */ type Dnssoarec struct { /** * Domain name for which to add the SOA record. - */ + */ Domain string `json:"domain,omitempty"` /** * Domain name of the name server that responds authoritatively for the domain. - */ + */ Originserver string `json:"originserver,omitempty"` /** * Email address of the contact to whom domain issues can be addressed. In the email address, replace the @ sign with a period (.). For example, enter domainadmin.example.com instead of domainadmin@example.com. - */ + */ Contact string `json:"contact,omitempty"` /** * The secondary server uses this parameter to determine whether it requires a zone transfer from the primary server. - */ + */ Serial int `json:"serial,omitempty"` /** * Time, in seconds, for which a secondary server must wait between successive checks on the value of the serial number. - */ + */ Refresh int `json:"refresh,omitempty"` /** * Time, in seconds, between retries if a secondary server's attempt to contact the primary server for a zone refresh fails. - */ + */ Retry int `json:"retry,omitempty"` /** * Time, in seconds, after which the zone data on a secondary name server can no longer be considered authoritative because all refresh and retry attempts made during the period have failed. After the expiry period, the secondary server stops serving the zone. Typically one week. Not used by the primary server. - */ + */ Expire int `json:"expire,omitempty"` /** * Default time to live (TTL) for all records in the zone. Can be overridden for individual records. - */ + */ Minimum int `json:"minimum,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached SOA record need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -69,11 +69,10 @@ type Dnssoarec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Authtype string `json:"authtype,omitempty"` - } diff --git a/resource/config/dns/dnssrvrec.go b/resource/config/dnssrvrec.go similarity index 97% rename from resource/config/dns/dnssrvrec.go rename to resource/config/dnssrvrec.go index e9b968c..19a2707 100644 --- a/resource/config/dns/dnssrvrec.go +++ b/resource/config/dnssrvrec.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for server record resource. -*/ + */ type Dnssrvrec struct { /** * Domain name, which, by convention, is prefixed by the symbolic name of the desired service and the symbolic name of the desired protocol, each with an underscore (_) prepended. For example, if an SRV-aware client wants to discover a SIP service that is provided over UDP, in the domain example.com, the client performs a lookup for _sip._udp.example.com. - */ + */ Domain string `json:"domain,omitempty"` /** * Target host for the specified service. - */ + */ Target string `json:"target,omitempty"` /** * Integer specifying the priority of the target host. The lower the number, the higher the priority. If multiple target hosts have the same priority, selection is based on the Weight parameter. - */ + */ Priority int `json:"priority,omitempty"` /** * Weight for the target host. Aids host selection when two or more hosts have the same priority. A larger number indicates greater weight. - */ + */ Weight int `json:"weight,omitempty"` /** * Port on which the target host listens for client requests. - */ + */ Port int `json:"port,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached SRV record need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -57,11 +57,10 @@ type Dnssrvrec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Authtype string `json:"authtype,omitempty"` - } diff --git a/resource/config/dns/dnssubnetcache.go b/resource/config/dnssubnetcache.go similarity index 96% rename from resource/config/dns/dnssubnetcache.go rename to resource/config/dnssubnetcache.go index facc84c..114eca9 100644 --- a/resource/config/dns/dnssubnetcache.go +++ b/resource/config/dnssubnetcache.go @@ -12,30 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for subnet cache resource. -*/ + */ type Dnssubnetcache struct { /** * ECS Subnet. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Flush all the ECS subnets from the DNS cache. - */ + */ All bool `json:"all,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Hostname string `json:"hostname,omitempty"` Nextrecs string `json:"nextrecs,omitempty"` - } diff --git a/resource/config/dns/dnssuffix.go b/resource/config/dnssuffix.go similarity index 96% rename from resource/config/dns/dnssuffix.go rename to resource/config/dnssuffix.go index 633e4a6..a837a8c 100644 --- a/resource/config/dns/dnssuffix.go +++ b/resource/config/dnssuffix.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for DNS suffix resource. -*/ + */ type Dnssuffix struct { /** * Suffix to be appended when resolving domain names that are not fully qualified. - */ + */ Dnssuffix string `json:"Dnssuffix,omitempty"` - } diff --git a/resource/config/dns/dnstxtrec.go b/resource/config/dnstxtrec.go similarity index 97% rename from resource/config/dns/dnstxtrec.go rename to resource/config/dnstxtrec.go index 724a583..88ec1ce 100644 --- a/resource/config/dns/dnstxtrec.go +++ b/resource/config/dnstxtrec.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for TXT record resource. -*/ + */ type Dnstxtrec struct { /** * Name of the domain for the TXT record. - */ + */ Domain string `json:"domain,omitempty"` /** * Information to store in the TXT resource record. Enclose the string in single or double quotation marks. A TXT resource record can contain up to six strings, each of which can contain up to 255 characters. If you want to add a string of more than 255 characters, evaluate whether splitting it into two or more smaller strings, subject to the six-string limit, works for you. - */ + */ String []string `json:"String,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. - */ + */ Ttl int `json:"ttl,omitempty"` /** * Unique, internally generated record ID. View the details of the TXT record to obtain its record ID. Mutually exclusive with the string parameter. - */ + */ Recordid int `json:"recordid,omitempty"` /** * Subnet for which the cached TXT record need to be removed. - */ + */ Ecssubnet string `json:"ecssubnet,omitempty"` /** * Type of records to display. Available settings function as follows: @@ -49,11 +49,10 @@ type Dnstxtrec struct { Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Authtype string `json:"authtype,omitempty"` - } diff --git a/resource/config/dns/dnsview.go b/resource/config/dnsview.go similarity index 96% rename from resource/config/dns/dnsview.go rename to resource/config/dnsview.go index 5ca7ee6..2c8bd62 100644 --- a/resource/config/dns/dnsview.go +++ b/resource/config/dnsview.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for DNS view resource. -*/ + */ type Dnsview struct { /** * Name for the DNS view. - */ + */ Viewname string `json:"viewname,omitempty"` //------- Read only Parameter ---------; Flags string `json:"flags,omitempty"` - } diff --git a/resource/config/dns/dnsview_binding.go b/resource/config/dnsview_binding.go similarity index 89% rename from resource/config/dns/dnsview_binding.go rename to resource/config/dnsview_binding.go index 8a85d47..921198a 100644 --- a/resource/config/dns/dnsview_binding.go +++ b/resource/config/dnsview_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** -* Binding object which returns the resources bound to dnsview_binding. -*/ +* Binding object which returns the resources bound to dnsview_binding. + */ type Dnsviewbinding struct { /** - * Name of the view to display.
Minimum value = - */ + * Name of the view to display.
Minimum value = + */ Viewname string `json:"viewname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnsview_dnspolicy_binding.go b/resource/config/dnsview_dnspolicy_binding.go similarity index 96% rename from resource/config/dns/dnsview_dnspolicy_binding.go rename to resource/config/dnsview_dnspolicy_binding.go index 5dbe228..a05edde 100644 --- a/resource/config/dns/dnsview_dnspolicy_binding.go +++ b/resource/config/dnsview_dnspolicy_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the dnspolicy that can be bound to dnsview. -*/ + */ type Dnsviewdnspolicybinding struct { /** * dnspolicy name of this view. - */ + */ Dnspolicyname string `json:"dnspolicyname,omitempty"` /** * Name of the view to display. - */ + */ Viewname string `json:"viewname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnsview_gslbservice_binding.go b/resource/config/dnsview_gslbservice_binding.go similarity index 96% rename from resource/config/dns/dnsview_gslbservice_binding.go rename to resource/config/dnsview_gslbservice_binding.go index 6ce0c93..a9323a6 100644 --- a/resource/config/dns/dnsview_gslbservice_binding.go +++ b/resource/config/dnsview_gslbservice_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the gslbservice that can be bound to dnsview. -*/ + */ type Dnsviewgslbservicebinding struct { /** * Service name of the service using this view. - */ + */ Gslbservicename string `json:"gslbservicename,omitempty"` /** * IP of the service corresponding to the given view. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Name of the view to display. - */ + */ Viewname string `json:"viewname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnsview_policy_binding.go b/resource/config/dnsview_policy_binding.go similarity index 96% rename from resource/config/dns/dnsview_policy_binding.go rename to resource/config/dnsview_policy_binding.go index 08d3f6f..9febd96 100644 --- a/resource/config/dns/dnsview_policy_binding.go +++ b/resource/config/dnsview_policy_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the policy that can be bound to dnsview. -*/ + */ type Dnsviewpolicybinding struct { /** * dnspolicy name of this view. - */ + */ Dnspolicyname string `json:"dnspolicyname,omitempty"` /** * Name of the view to display. - */ + */ Viewname string `json:"viewname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnsview_service_binding.go b/resource/config/dnsview_service_binding.go similarity index 96% rename from resource/config/dns/dnsview_service_binding.go rename to resource/config/dnsview_service_binding.go index 0dd5b6a..5811485 100644 --- a/resource/config/dns/dnsview_service_binding.go +++ b/resource/config/dnsview_service_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the service that can be bound to dnsview. -*/ + */ type Dnsviewservicebinding struct { /** * Service name of the service using this view. - */ + */ Gslbservicename string `json:"gslbservicename,omitempty"` /** * IP of the service corresponding to the given view. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Name of the view to display. - */ + */ Viewname string `json:"viewname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnszone.go b/resource/config/dnszone.go similarity index 93% rename from resource/config/dns/dnszone.go rename to resource/config/dnszone.go index b6d9e9c..78df9d6 100644 --- a/resource/config/dns/dnszone.go +++ b/resource/config/dnszone.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Configuration for DNS zone resource. -*/ + */ type Dnszone struct { /** * Name of the zone to create. - */ + */ Zonename string `json:"zonename,omitempty"` /** * Deploy the zone in proxy mode. Enable in the following scenarios: - * The load balanced DNS servers are authoritative for the zone and all resource records that are part of the zone. + * The load balanced DNS servers are authoritative for the zone and all resource records that are part of the zone. * The load balanced DNS servers are authoritative for the zone, but the Citrix ADC owns a subset of the resource records that belong to the zone (partial zone ownership configuration). Typically seen in global server load balancing (GSLB) configurations, in which the appliance responds authoritatively to queries for GSLB domain names but forwards queries for other domain names in the zone to the load balanced servers. - In either scenario, do not create the zone's Start of Authority (SOA) and name server (NS) resource records on the appliance. + In either scenario, do not create the zone's Start of Authority (SOA) and name server (NS) resource records on the appliance. Disable if the appliance is authoritative for the zone, but make sure that you have created the SOA and NS records on the appliance before you create the zone. */ Proxymode string `json:"proxymode,omitempty"` /** * Enable dnssec offload for this zone. - */ + */ Dnssecoffload string `json:"dnssecoffload,omitempty"` /** * Enable nsec generation for dnssec offload. - */ + */ Nsec string `json:"nsec,omitempty"` /** * Name of the public/private DNS key pair with which to sign the zone. You can sign a zone with up to four keys. - */ + */ Keyname []string `json:"keyname,omitempty"` /** * Type of zone to display. Mutually exclusive with the DNS Zone (zoneName) parameter. Available settings function as follows: @@ -55,5 +55,4 @@ type Dnszone struct { //------- Read only Parameter ---------; Flags string `json:"flags,omitempty"` - } diff --git a/resource/config/dns/dnszone_binding.go b/resource/config/dnszone_binding.go similarity index 93% rename from resource/config/dns/dnszone_binding.go rename to resource/config/dnszone_binding.go index 7d3b31a..a21b298 100644 --- a/resource/config/dns/dnszone_binding.go +++ b/resource/config/dnszone_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** -* Binding object which returns the resources bound to dnszone_binding. -*/ +* Binding object which returns the resources bound to dnszone_binding. + */ type Dnszonebinding struct { /** - * Name of the zone. Mutually exclusive with the type parameter.
Minimum value = - */ + * Name of the zone. Mutually exclusive with the type parameter.
Minimum value = + */ Zonename string `json:"zonename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnszone_dnskey_binding.go b/resource/config/dnszone_dnskey_binding.go similarity index 96% rename from resource/config/dns/dnszone_dnskey_binding.go rename to resource/config/dnszone_dnskey_binding.go index 3efbcdc..8718624 100644 --- a/resource/config/dns/dnszone_dnskey_binding.go +++ b/resource/config/dnszone_dnskey_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the dnskey that can be bound to dnszone. -*/ + */ type Dnszonednskeybinding struct { /** * Name of the public/private DNS key pair with which to sign the zone. You can sign a zone with up to four keys. - */ + */ Keyname []string `json:"keyname,omitempty"` /** * The time when sign was done with this key. - */ + */ Siginceptiontime []int `json:"siginceptiontime,omitempty"` /** * Integer which denote status of keys. - */ + */ Signed int `json:"signed,omitempty"` /** * Time period for which to consider the key valid, after the key is used to sign a zone. - */ + */ Expires int `json:"expires,omitempty"` /** * Name of the zone. Mutually exclusive with the type parameter. - */ + */ Zonename string `json:"zonename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnszone_domain_binding.go b/resource/config/dnszone_domain_binding.go similarity index 96% rename from resource/config/dns/dnszone_domain_binding.go rename to resource/config/dnszone_domain_binding.go index 588a95c..77ab61d 100644 --- a/resource/config/dns/dnszone_domain_binding.go +++ b/resource/config/dnszone_domain_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the domain that can be bound to dnszone. -*/ + */ type Dnszonedomainbinding struct { /** * Domain name that belongs to the given zone - */ + */ Domain string `json:"domain,omitempty"` /** * An array of record types associated with the nsec record. - */ + */ Nextrecs []string `json:"nextrecs,omitempty"` /** * Name of the zone. Mutually exclusive with the type parameter. - */ + */ Zonename string `json:"zonename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dns/dnszone_key_binding.go b/resource/config/dnszone_key_binding.go similarity index 96% rename from resource/config/dns/dnszone_key_binding.go rename to resource/config/dnszone_key_binding.go index 0f29156..948ef21 100644 --- a/resource/config/dns/dnszone_key_binding.go +++ b/resource/config/dnszone_key_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dns +package config /** * Binding class showing the key that can be bound to dnszone. -*/ + */ type Dnszonekeybinding struct { /** * Name of the public/private DNS key pair with which to sign the zone. You can sign a zone with up to four keys. - */ + */ Keyname []string `json:"keyname,omitempty"` /** * The time when sign was done with this key. - */ + */ Siginceptiontime []uint32 `json:"siginceptiontime,omitempty"` /** * Integer which denote status of keys. - */ + */ Signed uint32 `json:"signed,omitempty"` /** * Time period for which to consider the key valid, after the key is used to sign a zone. - */ + */ Expires uint32 `json:"expires,omitempty"` /** * Name of the zone. Mutually exclusive with the type parameter. - */ + */ Zonename string `json:"zonename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/dos/dospolicy.go b/resource/config/dospolicy.go similarity index 97% rename from resource/config/dos/dospolicy.go rename to resource/config/dospolicy.go index 3e57942..1fbbd87 100644 --- a/resource/config/dos/dospolicy.go +++ b/resource/config/dospolicy.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package dos +package config /** * Configuration for DoS policy resource. -*/ + */ type Dospolicy struct { /** * Name for the HTTP DoS protection policy. Must begin with a letter, number, or the underscore character (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), and colon (:) characters. - */ + */ Name string `json:"name,omitempty"` /** * Queue depth. The queue size (the number of outstanding service requests on the system) before DoS protection is activated on the service to which the DoS protection policy is bound. - */ + */ Qdepth int `json:"qdepth,omitempty"` /** * Client detect rate. Integer representing the percentage of traffic to which the HTTP DoS policy is to be applied after the queue depth condition is satisfied. - */ + */ Cltdetectrate int `json:"cltdetectrate,omitempty"` - } diff --git a/resource/config/basic/extendedmemoryparam.go b/resource/config/extendedmemoryparam.go similarity index 89% rename from resource/config/basic/extendedmemoryparam.go rename to resource/config/extendedmemoryparam.go index 52f67a3..2222c88 100644 --- a/resource/config/basic/extendedmemoryparam.go +++ b/resource/config/extendedmemoryparam.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for Parameter for extended memory used by LSN and Subscriber Store resource. -*/ + */ type Extendedmemoryparam struct { /** * Amount of Citrix ADC memory to reserve for the memory used by LSN and Subscriber Session Store feature, in multiples of 2MB. @@ -28,8 +28,7 @@ type Extendedmemoryparam struct { //------- Read only Parameter ---------; - Memlimitactive string `json:"memlimitactive,omitempty"` - Maxmemlimit string `json:"maxmemlimit,omitempty"` + Memlimitactive string `json:"memlimitactive,omitempty"` + Maxmemlimit string `json:"maxmemlimit,omitempty"` Minrequiredmemory string `json:"minrequiredmemory,omitempty"` - } diff --git a/resource/config/feo/feoaction.go b/resource/config/feoaction.go similarity index 80% rename from resource/config/feo/feoaction.go rename to resource/config/feoaction.go index 1ea93b6..0f9f48b 100644 --- a/resource/config/feo/feoaction.go +++ b/resource/config/feoaction.go @@ -12,121 +12,120 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Configuration for Front end optimization action resource. -*/ + */ type Feoaction struct { /** * The name of the front end optimization action. - */ + */ Name string `json:"name,omitempty"` /** * Extend the time period during which the browser can use the cached resource. - */ + */ Pageextendcache bool `json:"pageextendcache,omitempty"` /** * Maxage for cache extension. - */ + */ Cachemaxage int `json:"cachemaxage,omitempty"` /** * Shrink image dimensions as per the height and width attributes specified in the tag. - */ + */ Imgshrinktoattrib bool `json:"imgshrinktoattrib,omitempty"` /** * Convert GIF image formats to PNG formats. - */ + */ Imggiftopng bool `json:"imggiftopng,omitempty"` /** * Convert JPEG, GIF, PNG image formats to WEBP format. - */ + */ Imgtowebp bool `json:"imgtowebp,omitempty"` /** * Convert JPEG, GIF, PNG image formats to JXR format. - */ + */ Imgtojpegxr bool `json:"imgtojpegxr,omitempty"` /** * Inline images whose size is less than 2KB. - */ + */ Imginline bool `json:"imginline,omitempty"` /** * Inline small images (less than 2KB) referred within CSS files as background-URLs - */ + */ Cssimginline bool `json:"cssimginline,omitempty"` /** * Remove non-image data such as comments from JPEG images. - */ + */ Jpgoptimize bool `json:"jpgoptimize,omitempty"` /** * Download images, only when the user scrolls the page to view them. - */ + */ Imglazyload bool `json:"imglazyload,omitempty"` /** * Remove comments and whitespaces from CSSs. - */ + */ Cssminify bool `json:"cssminify,omitempty"` /** * Inline CSS files, whose size is less than 2KB, within the main page. - */ + */ Cssinline bool `json:"cssinline,omitempty"` /** * Combine one or more CSS files into one file. - */ + */ Csscombine bool `json:"csscombine,omitempty"` /** * Convert CSS import statements to HTML link tags. - */ + */ Convertimporttolink bool `json:"convertimporttolink,omitempty"` /** * Remove comments and whitespaces from JavaScript. - */ + */ Jsminify bool `json:"jsminify,omitempty"` /** * Convert linked JavaScript files (less than 2KB) to inline JavaScript files. - */ + */ Jsinline bool `json:"jsinline,omitempty"` /** * Remove comments and whitespaces from an HTML page. - */ + */ Htmlminify bool `json:"htmlminify,omitempty"` /** * Move any CSS file present within the body tag of an HTML page to the head tag. - */ + */ Cssmovetohead bool `json:"cssmovetohead,omitempty"` /** * Move any JavaScript present in the body tag to the end of the body tag. - */ + */ Jsmovetoend bool `json:"jsmovetoend,omitempty"` /** * Domain name of the server - */ + */ Domainsharding string `json:"domainsharding,omitempty"` /** * Set of domain names that replaces the parent domain. - */ + */ Dnsshards []string `json:"dnsshards,omitempty"` /** * Send AppFlow records about the web pages optimized by this action. The records provide FEO statistics, such as the number of HTTP requests that have been reduced for this page. You must enable the Appflow feature before enabling this parameter. - */ + */ Clientsidemeasurements bool `json:"clientsidemeasurements,omitempty"` //------- Read only Parameter ---------; - Imgadddimensions string `json:"imgadddimensions,omitempty"` - Imgshrinkformobile string `json:"imgshrinkformobile,omitempty"` - Imgweaken string `json:"imgweaken,omitempty"` - Jpgprogressive string `json:"jpgprogressive,omitempty"` - Cssflattenimports string `json:"cssflattenimports,omitempty"` - Jscombine string `json:"jscombine,omitempty"` + Imgadddimensions string `json:"imgadddimensions,omitempty"` + Imgshrinkformobile string `json:"imgshrinkformobile,omitempty"` + Imgweaken string `json:"imgweaken,omitempty"` + Jpgprogressive string `json:"jpgprogressive,omitempty"` + Cssflattenimports string `json:"cssflattenimports,omitempty"` + Jscombine string `json:"jscombine,omitempty"` Htmlrmdefaultattribs string `json:"htmlrmdefaultattribs,omitempty"` - Htmlrmattribquotes string `json:"htmlrmattribquotes,omitempty"` - Htmltrimurls string `json:"htmltrimurls,omitempty"` - Hits string `json:"hits,omitempty"` - Undefhits string `json:"undefhits,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Htmlrmattribquotes string `json:"htmlrmattribquotes,omitempty"` + Htmltrimurls string `json:"htmltrimurls,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/feo/feoglobal_binding.go b/resource/config/feoglobal_binding.go similarity index 95% rename from resource/config/feo/feoglobal_binding.go rename to resource/config/feoglobal_binding.go index 518d63a..b36c8be 100644 --- a/resource/config/feo/feoglobal_binding.go +++ b/resource/config/feoglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** -* Binding object which returns the resources bound to feoglobal_binding. -*/ +* Binding object which returns the resources bound to feoglobal_binding. + */ type Feoglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/feo/feoglobal_feopolicy_binding.go b/resource/config/feoglobal_feopolicy_binding.go similarity index 93% rename from resource/config/feo/feoglobal_feopolicy_binding.go rename to resource/config/feoglobal_feopolicy_binding.go index 54ab7bb..13a04df 100644 --- a/resource/config/feo/feoglobal_feopolicy_binding.go +++ b/resource/config/feoglobal_feopolicy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Binding class showing the feopolicy that can be bound to feoglobal. -*/ + */ type Feoglobalfeopolicybinding struct { /** * The name of the globally bound front end optimization policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority assigned to the policy binding. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * The number of policies bound to the bindpoint. - */ - Numpol int `json:"numpol,omitempty"` + */ + Numpol int `json:"numpol,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/feo/feoglobal_policy_binding.go b/resource/config/feoglobal_policy_binding.go similarity index 93% rename from resource/config/feo/feoglobal_policy_binding.go rename to resource/config/feoglobal_policy_binding.go index 15af2fc..532831d 100644 --- a/resource/config/feo/feoglobal_policy_binding.go +++ b/resource/config/feoglobal_policy_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Binding class showing the policy that can be bound to feoglobal. -*/ + */ type Feoglobalpolicybinding struct { /** * The name of the globally bound front end optimization policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority assigned to the policy binding. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bindpoint to which the policy is bound. - */ + */ Type string `json:"type,omitempty"` /** * The number of policies bound to the bindpoint. - */ - Numpol uint32 `json:"numpol,omitempty"` + */ + Numpol uint32 `json:"numpol,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/feo/feoparameter.go b/resource/config/feoparameter.go similarity index 97% rename from resource/config/feo/feoparameter.go rename to resource/config/feoparameter.go index 7308638..7f00c3b 100644 --- a/resource/config/feo/feoparameter.go +++ b/resource/config/feoparameter.go @@ -12,34 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Configuration for FEO parameter resource. -*/ + */ type Feoparameter struct { /** * The percentage value of a JPEG image quality to be reduced. Range: 0 - 100 - */ + */ Jpegqualitypercent int `json:"jpegqualitypercent,omitempty"` /** * Threshold value of the file size (in bytes) for converting external CSS files to inline CSS files. - */ + */ Cssinlinethressize int `json:"cssinlinethressize,omitempty"` /** * Threshold value of the file size (in bytes), for converting external JavaScript files to inline JavaScript files. - */ + */ Jsinlinethressize int `json:"jsinlinethressize,omitempty"` /** * Maximum file size of an image (in bytes), for coverting linked images to inline images. - */ + */ Imginlinethressize int `json:"imginlinethressize,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/feo/feopolicy.go b/resource/config/feopolicy.go similarity index 86% rename from resource/config/feo/feopolicy.go rename to resource/config/feopolicy.go index 1765be6..f9355f5 100644 --- a/resource/config/feo/feopolicy.go +++ b/resource/config/feopolicy.go @@ -12,32 +12,31 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Configuration for Front end optimization policy resource. -*/ + */ type Feopolicy struct { /** * The name of the front end optimization policy. - */ + */ Name string `json:"name,omitempty"` /** * The rule associated with the front end optimization policy. - */ + */ Rule string `json:"rule,omitempty"` /** * The front end optimization action that has to be performed when the rule matches. - */ + */ Action string `json:"action,omitempty"` //------- Read only Parameter ---------; - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Hits string `json:"hits,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Hits string `json:"hits,omitempty"` Undefhits string `json:"undefhits,omitempty"` - } diff --git a/resource/config/feo/feopolicy_binding.go b/resource/config/feopolicy_binding.go similarity index 94% rename from resource/config/feo/feopolicy_binding.go rename to resource/config/feopolicy_binding.go index af52804..8c0cb81 100644 --- a/resource/config/feo/feopolicy_binding.go +++ b/resource/config/feopolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** -* Binding object which returns the resources bound to feopolicy_binding. -*/ +* Binding object which returns the resources bound to feopolicy_binding. + */ type Feopolicybinding struct { /** - * The name of the front end optimization policy.
Minimum value = - */ + * The name of the front end optimization policy.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/feo/feopolicy_csvserver_binding.go b/resource/config/feopolicy_csvserver_binding.go similarity index 96% rename from resource/config/feo/feopolicy_csvserver_binding.go rename to resource/config/feopolicy_csvserver_binding.go index fcf5db7..1261dc0 100644 --- a/resource/config/feo/feopolicy_csvserver_binding.go +++ b/resource/config/feopolicy_csvserver_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Binding class showing the csvserver that can be bound to feopolicy. -*/ + */ type Feopolicycsvserverbinding struct { /** * Location where the policy is bound to. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether a policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The name of the front end optimization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/feo/feopolicy_feoglobal_binding.go b/resource/config/feopolicy_feoglobal_binding.go similarity index 96% rename from resource/config/feo/feopolicy_feoglobal_binding.go rename to resource/config/feopolicy_feoglobal_binding.go index 87258fc..8c5865d 100644 --- a/resource/config/feo/feopolicy_feoglobal_binding.go +++ b/resource/config/feopolicy_feoglobal_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Binding class showing the feoglobal that can be bound to feopolicy. -*/ + */ type Feopolicyfeoglobalbinding struct { /** * Location where the policy is bound to. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether a policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The name of the front end optimization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/feo/feopolicy_global_binding.go b/resource/config/feopolicy_global_binding.go similarity index 96% rename from resource/config/feo/feopolicy_global_binding.go rename to resource/config/feopolicy_global_binding.go index d3b9b9b..24afadf 100644 --- a/resource/config/feo/feopolicy_global_binding.go +++ b/resource/config/feopolicy_global_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Binding class showing the global that can be bound to feopolicy. -*/ + */ type Feopolicyglobalbinding struct { /** * Location where the policy is bound to. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether a policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The name of the front end optimization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/feo/feopolicy_lbvserver_binding.go b/resource/config/feopolicy_lbvserver_binding.go similarity index 96% rename from resource/config/feo/feopolicy_lbvserver_binding.go rename to resource/config/feopolicy_lbvserver_binding.go index d149f7c..89df245 100644 --- a/resource/config/feo/feopolicy_lbvserver_binding.go +++ b/resource/config/feopolicy_lbvserver_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Binding class showing the lbvserver that can be bound to feopolicy. -*/ + */ type Feopolicylbvserverbinding struct { /** * Location where the policy is bound to. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether a policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The name of the front end optimization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/feo/feopolicy_vserver_binding.go b/resource/config/feopolicy_vserver_binding.go similarity index 96% rename from resource/config/feo/feopolicy_vserver_binding.go rename to resource/config/feopolicy_vserver_binding.go index 6f5049a..5cf0964 100644 --- a/resource/config/feo/feopolicy_vserver_binding.go +++ b/resource/config/feopolicy_vserver_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package feo +package config /** * Binding class showing the vserver that can be bound to feopolicy. -*/ + */ type Feopolicyvserverbinding struct { /** * Location where the policy is bound to. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether a policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The name of the front end optimization policy. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filteraction.go b/resource/config/filteraction.go similarity index 94% rename from resource/config/filter/filteraction.go rename to resource/config/filteraction.go index e0dbd9a..9fc6104 100644 --- a/resource/config/filter/filteraction.go +++ b/resource/config/filteraction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Configuration for filter action resource. -*/ + */ type Filteraction struct { /** * Name for the filtering action. Must begin with a letter, number, or the underscore character (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at sign (@), equals (=), and colon (:) characters. Choose a name that helps identify the type of action. The name of a filter action cannot be changed after it is created. @@ -30,32 +30,31 @@ type Filteraction struct { ADD - Adds the specified HTTP header. RESET - Terminates the connection, sending the appropriate termination notice to the user's browser. FORWARD - Redirects the request to the designated service. You must specify either a service name or a page, but not both. - DROP - Silently deletes the request, without sending a response to the user's browser. + DROP - Silently deletes the request, without sending a response to the user's browser. CORRUPT - Modifies the designated HTTP header to prevent it from performing the function it was intended to perform, then sends the request/response to the server/browser. ERRORCODE. Returns the designated HTTP error code to the user's browser (for example, 404, the standard HTTP code for a non-existent Web page). */ Qual string `json:"qual,omitempty"` /** * Service to which to forward HTTP requests. Required if the qualifier is FORWARD. - */ + */ Servicename string `json:"servicename,omitempty"` /** * String containing the header_name and header_value. If the qualifier is ADD, specify :. If the qualifier is CORRUPT, specify only the header_name - */ + */ Value string `json:"value,omitempty"` /** * Response code to be returned for HTTP requests (for use with the ERRORCODE qualifier). - */ + */ Respcode int `json:"respcode,omitempty"` /** * HTML page to return for HTTP requests (For use with the ERRORCODE qualifier). - */ + */ Page string `json:"page,omitempty"` //------- Read only Parameter ---------; Isdefault string `json:"isdefault,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/filter/filterglobal_binding.go b/resource/config/filterglobal_binding.go similarity index 95% rename from resource/config/filter/filterglobal_binding.go rename to resource/config/filterglobal_binding.go index 15bf224..737cfd0 100644 --- a/resource/config/filter/filterglobal_binding.go +++ b/resource/config/filterglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** -* Binding object which returns the resources bound to filterglobal_binding. -*/ +* Binding object which returns the resources bound to filterglobal_binding. + */ type Filterglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterglobal_filterpolicy_binding.go b/resource/config/filterglobal_filterpolicy_binding.go similarity index 96% rename from resource/config/filter/filterglobal_filterpolicy_binding.go rename to resource/config/filterglobal_filterpolicy_binding.go index 1f94d47..03cd26d 100644 --- a/resource/config/filter/filterglobal_filterpolicy_binding.go +++ b/resource/config/filterglobal_filterpolicy_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Binding class showing the filterpolicy that can be bound to filterglobal. -*/ + */ type Filterglobalfilterpolicybinding struct { /** * The name of the filter policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * State of the binding. - */ + */ State string `json:"state,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterglobal_policy_binding.go b/resource/config/filterglobal_policy_binding.go similarity index 96% rename from resource/config/filter/filterglobal_policy_binding.go rename to resource/config/filterglobal_policy_binding.go index ede528d..9f20942 100644 --- a/resource/config/filter/filterglobal_policy_binding.go +++ b/resource/config/filterglobal_policy_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Binding class showing the policy that can be bound to filterglobal. -*/ + */ type Filterglobalpolicybinding struct { /** * The name of the filter policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * The priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * State of the binding. - */ + */ State string `json:"state,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterhtmlinjectionparameter.go b/resource/config/filterhtmlinjectionparameter.go similarity index 97% rename from resource/config/filter/filterhtmlinjectionparameter.go rename to resource/config/filterhtmlinjectionparameter.go index 4eabc5e..f4213d4 100644 --- a/resource/config/filter/filterhtmlinjectionparameter.go +++ b/resource/config/filterhtmlinjectionparameter.go @@ -12,34 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Configuration for HTML injection parameter resource. -*/ + */ type Filterhtmlinjectionparameter struct { /** * For a rate of x, HTML injection is done for 1 out of x policy matches. - */ + */ Rate int `json:"rate,omitempty"` /** * For a frequency of x, HTML injection is done at least once per x milliseconds. - */ + */ Frequency int `json:"frequency,omitempty"` /** * Searching for tag. If this parameter is enabled, HTML injection does not insert the prebody or postbody content unless the tag is found. - */ + */ Strict string `json:"strict,omitempty"` /** * Number of characters, in the HTTP body, in which to search for the tag if strict mode is set. - */ + */ Htmlsearchlen int `json:"htmlsearchlen,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/filter/filterhtmlinjectionvariable.go b/resource/config/filterhtmlinjectionvariable.go similarity index 93% rename from resource/config/filter/filterhtmlinjectionvariable.go rename to resource/config/filterhtmlinjectionvariable.go index c562d79..16c82db 100644 --- a/resource/config/filter/filterhtmlinjectionvariable.go +++ b/resource/config/filterhtmlinjectionvariable.go @@ -12,27 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Configuration for HTML injection variable resource. -*/ + */ type Filterhtmlinjectionvariable struct { /** * Name for the HTML injection variable to be added. - */ + */ Variable string `json:"variable,omitempty"` /** * Value to be assigned to the new variable. - */ + */ Value string `json:"value,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - Type string `json:"type,omitempty"` - + Type string `json:"type,omitempty"` } diff --git a/resource/config/filter/filterpolicy.go b/resource/config/filterpolicy.go similarity index 97% rename from resource/config/filter/filterpolicy.go rename to resource/config/filterpolicy.go index 59d4c64..a423b24 100644 --- a/resource/config/filter/filterpolicy.go +++ b/resource/config/filterpolicy.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Configuration for filter policy resource. -*/ + */ type Filterpolicy struct { /** * Name for the filtering action. Must begin with a letter, number, or the underscore character (_). Other characters allowed, after the first character, are the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), and colon (:) characters. Choose a name that helps identify the type of action. The name cannot be updated after the policy is created. @@ -27,19 +27,18 @@ type Filterpolicy struct { Name string `json:"name,omitempty"` /** * Citrix ADC classic expression specifying the type of connections that match this policy. - */ + */ Rule string `json:"rule,omitempty"` /** * Name of the action to be performed on requests that match the policy. Cannot be specified if the rule includes condition to be evaluated for responses. - */ + */ Reqaction string `json:"reqaction,omitempty"` /** * The action to be performed on the response. The string value can be a filter action created filter action or a built-in action. - */ + */ Resaction string `json:"resaction,omitempty"` //------- Read only Parameter ---------; Hits string `json:"hits,omitempty"` - } diff --git a/resource/config/filter/filterpolicy_binding.go b/resource/config/filterpolicy_binding.go similarity index 93% rename from resource/config/filter/filterpolicy_binding.go rename to resource/config/filterpolicy_binding.go index 8ad7599..65bbfd8 100644 --- a/resource/config/filter/filterpolicy_binding.go +++ b/resource/config/filterpolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** -* Binding object which returns the resources bound to filterpolicy_binding. -*/ +* Binding object which returns the resources bound to filterpolicy_binding. + */ type Filterpolicybinding struct { /** - * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown.
Minimum value = - */ + * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterpolicy_crvserver_binding.go b/resource/config/filterpolicy_crvserver_binding.go similarity index 83% rename from resource/config/filter/filterpolicy_crvserver_binding.go rename to resource/config/filterpolicy_crvserver_binding.go index b1271aa..008d240 100644 --- a/resource/config/filter/filterpolicy_crvserver_binding.go +++ b/resource/config/filterpolicy_crvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Binding class showing the crvserver that can be bound to filterpolicy. -*/ + */ type Filterpolicycrvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterpolicy_csvserver_binding.go b/resource/config/filterpolicy_csvserver_binding.go similarity index 83% rename from resource/config/filter/filterpolicy_csvserver_binding.go rename to resource/config/filterpolicy_csvserver_binding.go index e036f42..644eed5 100644 --- a/resource/config/filter/filterpolicy_csvserver_binding.go +++ b/resource/config/filterpolicy_csvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Binding class showing the csvserver that can be bound to filterpolicy. -*/ + */ type Filterpolicycsvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterpolicy_filterglobal_binding.go b/resource/config/filterpolicy_filterglobal_binding.go similarity index 83% rename from resource/config/filter/filterpolicy_filterglobal_binding.go rename to resource/config/filterpolicy_filterglobal_binding.go index f6f8466..1415fd7 100644 --- a/resource/config/filter/filterpolicy_filterglobal_binding.go +++ b/resource/config/filterpolicy_filterglobal_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Binding class showing the filterglobal that can be bound to filterpolicy. -*/ + */ type Filterpolicyfilterglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterpolicy_global_binding.go b/resource/config/filterpolicy_global_binding.go similarity index 88% rename from resource/config/filter/filterpolicy_global_binding.go rename to resource/config/filterpolicy_global_binding.go index f75d866..5bc22fd 100644 --- a/resource/config/filter/filterpolicy_global_binding.go +++ b/resource/config/filterpolicy_global_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Binding class showing the global that can be bound to filterpolicy. -*/ + */ type Filterpolicyglobalbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterpolicy_lbvserver_binding.go b/resource/config/filterpolicy_lbvserver_binding.go similarity index 83% rename from resource/config/filter/filterpolicy_lbvserver_binding.go rename to resource/config/filterpolicy_lbvserver_binding.go index 18da597..fce7a37 100644 --- a/resource/config/filter/filterpolicy_lbvserver_binding.go +++ b/resource/config/filterpolicy_lbvserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Binding class showing the lbvserver that can be bound to filterpolicy. -*/ + */ type Filterpolicylbvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority int `json:"priority,omitempty"` - Activepolicy int `json:"activepolicy,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterpolicy_vserver_binding.go b/resource/config/filterpolicy_vserver_binding.go similarity index 88% rename from resource/config/filter/filterpolicy_vserver_binding.go rename to resource/config/filterpolicy_vserver_binding.go index 7398bc2..8e88019 100644 --- a/resource/config/filter/filterpolicy_vserver_binding.go +++ b/resource/config/filterpolicy_vserver_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Binding class showing the vserver that can be bound to filterpolicy. -*/ + */ type Filterpolicyvserverbinding struct { /** * The entity name to which policy is bound - */ - Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` Activepolicy uint32 `json:"activepolicy,omitempty"` /** * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/filter/filterpostbodyinjection.go b/resource/config/filterpostbodyinjection.go similarity index 97% rename from resource/config/filter/filterpostbodyinjection.go rename to resource/config/filterpostbodyinjection.go index 2353eeb..eb20843 100644 --- a/resource/config/filter/filterpostbodyinjection.go +++ b/resource/config/filterpostbodyinjection.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Configuration for HTML Injection postbody resource. -*/ + */ type Filterpostbodyinjection struct { /** * Name of file whose contents are to be inserted after the response body. - */ + */ Postbody string `json:"postbody,omitempty"` //------- Read only Parameter ---------; Systemiid string `json:"systemiid,omitempty"` - } diff --git a/resource/config/filter/filterprebodyinjection.go b/resource/config/filterprebodyinjection.go similarity index 97% rename from resource/config/filter/filterprebodyinjection.go rename to resource/config/filterprebodyinjection.go index b317fa3..7e975a2 100644 --- a/resource/config/filter/filterprebodyinjection.go +++ b/resource/config/filterprebodyinjection.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package filter +package config /** * Configuration for HTML Injection prebody resource. -*/ + */ type Filterprebodyinjection struct { /** * Name of file whose contents are to be inserted before the response body. - */ + */ Prebody string `json:"prebody,omitempty"` //------- Read only Parameter ---------; Systemiid string `json:"systemiid,omitempty"` - } diff --git a/resource/config/network/fis.go b/resource/config/fis.go similarity index 97% rename from resource/config/network/fis.go rename to resource/config/fis.go index 56af8e3..999f1f3 100644 --- a/resource/config/network/fis.go +++ b/resource/config/fis.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for "FIS" resource. -*/ + */ type Fis struct { /** * Name for the FIS to be created. Leading character must be a number or letter. Other characters allowed, after the first character, are @ _ - . (period) : (colon) # and space ( ). Note: In a cluster setup, the FIS name on each node must be unique. - */ + */ Name string `json:"name,omitempty"` /** * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. - */ + */ Ownernode int `json:"ownernode,omitempty"` //------- Read only Parameter ---------; Ifaces string `json:"ifaces,omitempty"` - } diff --git a/resource/config/network/fis_binding.go b/resource/config/fis_binding.go similarity index 94% rename from resource/config/network/fis_binding.go rename to resource/config/fis_binding.go index 0981539..3071831 100644 --- a/resource/config/network/fis_binding.go +++ b/resource/config/fis_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to fis_binding. -*/ +* Binding object which returns the resources bound to fis_binding. + */ type Fisbinding struct { /** - * The name of the FIS configured on the appliance. .
Minimum value = - */ + * The name of the FIS configured on the appliance. .
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/fis_channel_binding.go b/resource/config/fis_channel_binding.go similarity index 96% rename from resource/config/network/fis_channel_binding.go rename to resource/config/fis_channel_binding.go index 54c1c94..ebbff7a 100644 --- a/resource/config/network/fis_channel_binding.go +++ b/resource/config/fis_channel_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the channel that can be bound to fis. -*/ + */ type Fischannelbinding struct { /** * Interface to be bound to the FIS, specified in slot/port notation (for example, 1/3) - */ + */ Ifnum string `json:"ifnum,omitempty"` /** * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. - */ + */ Ownernode int `json:"ownernode,omitempty"` /** * The name of the FIS to which you want to bind interfaces. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/fis_interface_binding.go b/resource/config/fis_interface_binding.go similarity index 96% rename from resource/config/network/fis_interface_binding.go rename to resource/config/fis_interface_binding.go index ced8e8f..aaa3303 100644 --- a/resource/config/network/fis_interface_binding.go +++ b/resource/config/fis_interface_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the interface that can be bound to fis. -*/ + */ type Fisinterfacebinding struct { /** * Interface to be bound to the FIS, specified in slot/port notation (for example, 1/3) - */ + */ Ifnum string `json:"ifnum,omitempty"` /** * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. - */ + */ Ownernode int `json:"ownernode,omitempty"` /** * The name of the FIS to which you want to bind interfaces. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/forwardingsession.go b/resource/config/forwardingsession.go similarity index 97% rename from resource/config/network/forwardingsession.go rename to resource/config/forwardingsession.go index 036121b..a49c2f5 100644 --- a/resource/config/network/forwardingsession.go +++ b/resource/config/forwardingsession.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for session forward resource. -*/ + */ type Forwardingsession struct { /** * Name for the forwarding session rule. Can begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the rule is created. @@ -28,35 +28,34 @@ type Forwardingsession struct { Name string `json:"name,omitempty"` /** * An IPv4 network address or IPv6 prefix of a network from which the forwarded traffic originates or to which it is destined. - */ + */ Network string `json:"network,omitempty"` /** * Subnet mask associated with the network. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Name of any configured ACL6 whose action is ALLOW. The rule of the ACL6 is used as a forwarding session rule. - */ + */ Acl6name string `json:"acl6name,omitempty"` /** * Name of any configured ACL whose action is ALLOW. The rule of the ACL is used as a forwarding session rule. - */ + */ Aclname string `json:"aclname,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Synchronize connection information with the secondary appliance in a high availability (HA) pair. That is, synchronize all connection-related information for the forwarding session. - */ + */ Connfailover string `json:"connfailover,omitempty"` /** * Cache the source ip address and mac address of the DA servers. - */ + */ Sourceroutecache string `json:"sourceroutecache,omitempty"` /** * Enabling this option on forwarding session will not steer the packet to flow processor. Instead, packet will be routed. - */ + */ Processlocal string `json:"processlocal,omitempty"` - } diff --git a/resource/config/gslb/gslbconfig.go b/resource/config/gslbconfig.go similarity index 97% rename from resource/config/gslb/gslbconfig.go rename to resource/config/gslbconfig.go index 3bb5630..d8d7076 100644 --- a/resource/config/gslb/gslbconfig.go +++ b/resource/config/gslbconfig.go @@ -12,38 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for gslb config resource. -*/ + */ type Gslbconfig struct { /** * Do not synchronize the GSLB sites, but display the commands that would be applied on the slave node upon synchronization. Mutually exclusive with the Save Configuration option. - */ + */ Preview bool `json:"preview,omitempty"` /** * Generate verbose output when synchronizing the GSLB sites. The Debug option generates more verbose output than the sync gslb config command in which the option is not used, and is useful for analyzing synchronization issues. - */ + */ Debug bool `json:"debug,omitempty"` /** - * Force synchronization of the specified site even if a dependent configuration on the remote site is preventing synchronization or if one or more GSLB entities on the remote site have the same name but are of a different type. You can specify either the name of the remote site that you want to synchronize with the local site, or you can specify All Sites in the configuration utility (the string all-sites in the CLI). If you specify All Sites, all the sites in the GSLB setup are synchronized with the site on the master node. + * Force synchronization of the specified site even if a dependent configuration on the remote site is preventing synchronization or if one or more GSLB entities on the remote site have the same name but are of a different type. You can specify either the name of the remote site that you want to synchronize with the local site, or you can specify All Sites in the configuration utility (the string all-sites in the CLI). If you specify All Sites, all the sites in the GSLB setup are synchronized with the site on the master node. Note: If you select the Force Sync option, the synchronization starts without displaying the commands that are going to be executed. */ Forcesync string `json:"forcesync,omitempty"` /** * Suppress the warning and the confirmation prompt that are displayed before site synchronization begins. This option can be used in automation scripts that must not be interrupted by a prompt. - */ + */ Nowarn bool `json:"nowarn,omitempty"` /** * Save the configuration on all the nodes participating in the synchronization process, automatically. The master saves its configuration immediately before synchronization begins. Slave nodes save their configurations after the process of synchronization is complete. A slave node saves its configuration only if the configuration difference was successfully applied to it. Mutually exclusive with the Preview option. - */ + */ Saveconfig bool `json:"saveconfig,omitempty"` /** * Run the specified command on the master node and then on all the slave nodes. You cannot use this option with the force sync and preview options. - */ + */ Command string `json:"command,omitempty"` - } diff --git a/resource/config/gslb/gslbdomain.go b/resource/config/gslbdomain.go similarity index 96% rename from resource/config/gslb/gslbdomain.go rename to resource/config/gslbdomain.go index 1fcd136..9a271be 100644 --- a/resource/config/gslb/gslbdomain.go +++ b/resource/config/gslbdomain.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for GSLB domain resource. -*/ + */ type Gslbdomain struct { /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - } diff --git a/resource/config/gslb/gslbdomain_binding.go b/resource/config/gslbdomain_binding.go similarity index 90% rename from resource/config/gslb/gslbdomain_binding.go rename to resource/config/gslbdomain_binding.go index 2042ec2..cd6ba90 100644 --- a/resource/config/gslb/gslbdomain_binding.go +++ b/resource/config/gslbdomain_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** -* Binding object which returns the resources bound to gslbdomain_binding. -*/ +* Binding object which returns the resources bound to gslbdomain_binding. + */ type Gslbdomainbinding struct { /** - * Name of the Domain.
Minimum value = - */ + * Name of the Domain.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_gslbservice_binding.go b/resource/config/gslbdomain_gslbservice_binding.go similarity index 95% rename from resource/config/gslb/gslbdomain_gslbservice_binding.go rename to resource/config/gslbdomain_gslbservice_binding.go index a7d69e0..da3a8b0 100644 --- a/resource/config/gslb/gslbdomain_gslbservice_binding.go +++ b/resource/config/gslbdomain_gslbservice_binding.go @@ -12,63 +12,61 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservice that can be bound to gslbdomain. -*/ + */ type Gslbdomaingslbservicebinding struct { /** * The service name. - */ + */ Servicename string `json:"servicename,omitempty"` /** * The type GSLB service - */ + */ Servicetype string `json:"servicetype,omitempty"` Vservername string `json:"vservername,omitempty"` /** * The Ip address of the service - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port Number - */ + */ Port int `json:"port,omitempty"` /** * The state of the vserver - */ + */ State string `json:"state,omitempty"` /** * weight assigned - */ + */ Weight int `json:"weight,omitempty"` /** * dynamic weight - */ + */ Dynamicconfwt int `json:"dynamicconfwt,omitempty"` /** * cumlative weight - */ + */ Cumulativeweight int `json:"cumulativeweight,omitempty"` /** * GSLB server state - */ + */ Svreffgslbstate string `json:"svreffgslbstate,omitempty"` /** * The threshold value of the service - */ + */ Gslbthreshold int `json:"gslbthreshold,omitempty"` /** * The cname of the gslb service - */ + */ Cnameentry string `json:"cnameentry,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_gslbservicegroup_binding.go b/resource/config/gslbdomain_gslbservicegroup_binding.go similarity index 96% rename from resource/config/gslb/gslbdomain_gslbservicegroup_binding.go rename to resource/config/gslbdomain_gslbservicegroup_binding.go index d1c071f..d1b51ca 100644 --- a/resource/config/gslb/gslbdomain_gslbservicegroup_binding.go +++ b/resource/config/gslbdomain_gslbservicegroup_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservicegroup that can be bound to gslbdomain. -*/ + */ type Gslbdomaingslbservicegroupbinding struct { /** * The GSLB service group name bound to the selected GSLB virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_gslbservicegroupmember_binding.go b/resource/config/gslbdomain_gslbservicegroupmember_binding.go similarity index 95% rename from resource/config/gslb/gslbdomain_gslbservicegroupmember_binding.go rename to resource/config/gslbdomain_gslbservicegroupmember_binding.go index a7611a1..5680c31 100644 --- a/resource/config/gslb/gslbdomain_gslbservicegroupmember_binding.go +++ b/resource/config/gslbdomain_gslbservicegroupmember_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservicegroupmember that can be bound to gslbdomain. -*/ + */ type Gslbdomaingslbservicegroupmemberbinding struct { /** * The GSLB service group name bound to the selected GSLB virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * The Ip address of the service - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port Number - */ + */ Port int `json:"port,omitempty"` /** * The type GSLB service - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * weight assigned - */ + */ Weight int `json:"weight,omitempty"` /** * GSLB server state - */ + */ Svreffgslbstate string `json:"svreffgslbstate,omitempty"` /** * The threshold value of the service - */ + */ Gslbthreshold int `json:"gslbthreshold,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_gslbvserver_binding.go b/resource/config/gslbdomain_gslbvserver_binding.go similarity index 96% rename from resource/config/gslb/gslbdomain_gslbvserver_binding.go rename to resource/config/gslbdomain_gslbvserver_binding.go index 82a9d3f..6371b9a 100644 --- a/resource/config/gslb/gslbdomain_gslbvserver_binding.go +++ b/resource/config/gslbdomain_gslbvserver_binding.go @@ -12,96 +12,94 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbvserver that can be bound to gslbdomain. -*/ + */ type Gslbdomaingslbvserverbinding struct { Vservername string `json:"vservername,omitempty"` /** * The type GSLB service - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * The state of the vserver - */ + */ State string `json:"state,omitempty"` /** * The load balancing method set for the virtual server - */ + */ Lbmethod string `json:"lbmethod,omitempty"` /** * The IP type for this GSLB vserver. - */ + */ Dnsrecordtype string `json:"dnsrecordtype,omitempty"` /** * Indicates the backup method in case the primary fails - */ + */ Backuplbmethod string `json:"backuplbmethod,omitempty"` /** * Indicates if persistence is set on the gslb vserver - */ + */ Persistencetype string `json:"persistencetype,omitempty"` /** * Send clients an empty DNS response when the GSLB virtual server is DOWN. - */ + */ Edr string `json:"edr,omitempty"` Mir string `json:"mir,omitempty"` /** * Dynamic weight method of the vserver - */ + */ Dynamicweight string `json:"dynamicweight,omitempty"` /** * Time since last state change - */ + */ Statechangetimesec string `json:"statechangetimesec,omitempty"` /** * Indicates if Client IP option is enabled - */ + */ Cip string `json:"cip,omitempty"` /** * Persistence id of the gslb vserver - */ + */ Persistenceid int `json:"persistenceid,omitempty"` /** * Netmask - */ + */ Netmask string `json:"netmask,omitempty"` /** * Number of bits to consider, in an IPv6 source IP address, for creating the hash that is required by the SOURCEIPHASH load balancing method. - */ + */ V6netmasklen int `json:"v6netmasklen,omitempty"` /** * Name of the site to which the service belongs. - */ + */ Sitename string `json:"sitename,omitempty"` /** * Indicates the type of cookie persistence set - */ + */ Sitepersistence string `json:"sitepersistence,omitempty"` /** * The site prefix string. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` /** * The string that is sent to the service. Applicable to HTTP ,HTTP-ECV and RTSP monitor types. - */ + */ Customheaders string `json:"customheaders,omitempty"` /** * The optional IPv4 network mask applied to IPv4 addresses to establish source IP address based persistence. - */ + */ Persistmask string `json:"persistmask,omitempty"` /** * Number of bits to consider in an IPv6 source IP address when creating source IP address based persistence sessions. - */ + */ V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_lbmonitor_binding.go b/resource/config/gslbdomain_lbmonitor_binding.go similarity index 95% rename from resource/config/gslb/gslbdomain_lbmonitor_binding.go rename to resource/config/gslbdomain_lbmonitor_binding.go index 704ef13..8e4f959 100644 --- a/resource/config/gslb/gslbdomain_lbmonitor_binding.go +++ b/resource/config/gslbdomain_lbmonitor_binding.go @@ -12,71 +12,69 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the lbmonitor that can be bound to gslbdomain. -*/ + */ type Gslbdomainlbmonitorbinding struct { /** * Monitor name - */ + */ Monitorname string `json:"monitorname,omitempty"` /** * The service name. - */ + */ Servicename string `json:"servicename,omitempty"` Vservername string `json:"vservername,omitempty"` /** * Monitor state - */ + */ Monstate string `json:"monstate,omitempty"` /** * HTTP request to the backend server - */ + */ Httprequest string `json:"httprequest,omitempty"` /** * The state of the monitor for tunneled devices. - */ + */ Iptunnel string `json:"iptunnel,omitempty"` /** * The string that is sent to the service. Applicable to HTTP ,HTTP-ECV and RTSP monitor types. - */ + */ Customheaders string `json:"customheaders,omitempty"` /** * The response codes. - */ + */ Respcode string `json:"respcode,omitempty"` /** * Total monitor probes - */ + */ Monitortotalprobes int `json:"monitortotalprobes,omitempty"` /** * Total probes failed - */ + */ Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` /** * Total number of current failed probes - */ + */ Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` /** * Response time of this monitor. - */ + */ Responsetime int `json:"responsetime,omitempty"` /** * The code indicating the monitor response. - */ + */ Monstatcode int `json:"monstatcode,omitempty"` /** * The string form of monstatcode. - */ + */ Lastresponse string `json:"lastresponse,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_monitor_binding.go b/resource/config/gslbdomain_monitor_binding.go similarity index 95% rename from resource/config/gslb/gslbdomain_monitor_binding.go rename to resource/config/gslbdomain_monitor_binding.go index 6b4f32c..ab7eb6b 100644 --- a/resource/config/gslb/gslbdomain_monitor_binding.go +++ b/resource/config/gslbdomain_monitor_binding.go @@ -12,71 +12,69 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the monitor that can be bound to gslbdomain. -*/ + */ type Gslbdomainmonitorbinding struct { /** * Monitor name - */ + */ Monitorname string `json:"monitorname,omitempty"` /** * The service name. - */ + */ Servicename string `json:"servicename,omitempty"` Vservername string `json:"vservername,omitempty"` /** * Monitor state - */ + */ Monstate string `json:"monstate,omitempty"` /** * HTTP request to the backend server - */ + */ Httprequest string `json:"httprequest,omitempty"` /** * The state of the monitor for tunneled devices. - */ + */ Iptunnel string `json:"iptunnel,omitempty"` /** * The string that is sent to the service. Applicable to HTTP ,HTTP-ECV and RTSP monitor types. - */ + */ Customheaders string `json:"customheaders,omitempty"` /** * The response codes. - */ + */ Respcode string `json:"respcode,omitempty"` /** * Total monitor probes - */ + */ Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` /** * Total probes failed - */ + */ Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` /** * Total number of current failed probes - */ + */ Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` /** * Response time of this monitor. - */ + */ Responsetime uint64 `json:"responsetime,omitempty"` /** * The code indicating the monitor response. - */ + */ Monstatcode int32 `json:"monstatcode,omitempty"` /** * The string form of monstatcode. - */ + */ Lastresponse string `json:"lastresponse,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_service_binding.go b/resource/config/gslbdomain_service_binding.go similarity index 95% rename from resource/config/gslb/gslbdomain_service_binding.go rename to resource/config/gslbdomain_service_binding.go index 3b5b66d..4ece28c 100644 --- a/resource/config/gslb/gslbdomain_service_binding.go +++ b/resource/config/gslbdomain_service_binding.go @@ -12,63 +12,61 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the service that can be bound to gslbdomain. -*/ + */ type Gslbdomainservicebinding struct { /** * The service name. - */ + */ Servicename string `json:"servicename,omitempty"` /** * The type GSLB service - */ + */ Servicetype string `json:"servicetype,omitempty"` Vservername string `json:"vservername,omitempty"` /** * The Ip address of the service - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port Number - */ + */ Port int32 `json:"port,omitempty"` /** * The state of the vserver - */ + */ State string `json:"state,omitempty"` /** * weight assigned - */ + */ Weight uint32 `json:"weight,omitempty"` /** * dynamic weight - */ + */ Dynamicconfwt uint32 `json:"dynamicconfwt,omitempty"` /** * cumlative weight - */ + */ Cumulativeweight uint32 `json:"cumulativeweight,omitempty"` /** * GSLB server state - */ + */ Svreffgslbstate string `json:"svreffgslbstate,omitempty"` /** * The threshold value of the service - */ + */ Gslbthreshold int32 `json:"gslbthreshold,omitempty"` /** * The cname of the gslb service - */ + */ Cnameentry string `json:"cnameentry,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_servicegroup_binding.go b/resource/config/gslbdomain_servicegroup_binding.go similarity index 96% rename from resource/config/gslb/gslbdomain_servicegroup_binding.go rename to resource/config/gslbdomain_servicegroup_binding.go index a17ea56..c8189a8 100644 --- a/resource/config/gslb/gslbdomain_servicegroup_binding.go +++ b/resource/config/gslbdomain_servicegroup_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the servicegroup that can be bound to gslbdomain. -*/ + */ type Gslbdomainservicegroupbinding struct { /** * The GSLB service group name bound to the selected GSLB virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_servicegroupmember_binding.go b/resource/config/gslbdomain_servicegroupmember_binding.go similarity index 95% rename from resource/config/gslb/gslbdomain_servicegroupmember_binding.go rename to resource/config/gslbdomain_servicegroupmember_binding.go index 15617c8..c3cad20 100644 --- a/resource/config/gslb/gslbdomain_servicegroupmember_binding.go +++ b/resource/config/gslbdomain_servicegroupmember_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the servicegroupmember that can be bound to gslbdomain. -*/ + */ type Gslbdomainservicegroupmemberbinding struct { /** * The GSLB service group name bound to the selected GSLB virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * The Ip address of the service - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port Number - */ + */ Port int32 `json:"port,omitempty"` /** * The type GSLB service - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * weight assigned - */ + */ Weight uint32 `json:"weight,omitempty"` /** * GSLB server state - */ + */ Svreffgslbstate string `json:"svreffgslbstate,omitempty"` /** * The threshold value of the service - */ + */ Gslbthreshold int32 `json:"gslbthreshold,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbdomain_vserver_binding.go b/resource/config/gslbdomain_vserver_binding.go similarity index 96% rename from resource/config/gslb/gslbdomain_vserver_binding.go rename to resource/config/gslbdomain_vserver_binding.go index d833df5..c179e5f 100644 --- a/resource/config/gslb/gslbdomain_vserver_binding.go +++ b/resource/config/gslbdomain_vserver_binding.go @@ -12,96 +12,94 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the vserver that can be bound to gslbdomain. -*/ + */ type Gslbdomainvserverbinding struct { Vservername string `json:"vservername,omitempty"` /** * The type GSLB service - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * The state of the vserver - */ + */ State string `json:"state,omitempty"` /** * The load balancing method set for the virtual server - */ + */ Lbmethod string `json:"lbmethod,omitempty"` /** * The IP type for this GSLB vserver. - */ + */ Dnsrecordtype string `json:"dnsrecordtype,omitempty"` /** * Indicates the backup method in case the primary fails - */ + */ Backuplbmethod string `json:"backuplbmethod,omitempty"` /** * Indicates if persistence is set on the gslb vserver - */ + */ Persistencetype string `json:"persistencetype,omitempty"` /** * Send clients an empty DNS response when the GSLB virtual server is DOWN. - */ + */ Edr string `json:"edr,omitempty"` Mir string `json:"mir,omitempty"` /** * Dynamic weight method of the vserver - */ + */ Dynamicweight string `json:"dynamicweight,omitempty"` /** * Time since last state change - */ + */ Statechangetimesec string `json:"statechangetimesec,omitempty"` /** * Indicates if Client IP option is enabled - */ + */ Cip string `json:"cip,omitempty"` /** * Persistence id of the gslb vserver - */ + */ Persistenceid uint32 `json:"persistenceid,omitempty"` /** * Netmask - */ + */ Netmask string `json:"netmask,omitempty"` /** * Number of bits to consider, in an IPv6 source IP address, for creating the hash that is required by the SOURCEIPHASH load balancing method. - */ + */ V6netmasklen uint32 `json:"v6netmasklen,omitempty"` /** * Name of the site to which the service belongs. - */ + */ Sitename string `json:"sitename,omitempty"` /** * Indicates the type of cookie persistence set - */ + */ Sitepersistence string `json:"sitepersistence,omitempty"` /** * The site prefix string. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` /** * The string that is sent to the service. Applicable to HTTP ,HTTP-ECV and RTSP monitor types. - */ + */ Customheaders string `json:"customheaders,omitempty"` /** * The optional IPv4 network mask applied to IPv4 addresses to establish source IP address based persistence. - */ + */ Persistmask string `json:"persistmask,omitempty"` /** * Number of bits to consider in an IPv6 source IP address when creating source IP address based persistence sessions. - */ + */ V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` /** * Name of the Domain - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbldnsentries.go b/resource/config/gslbldnsentries.go similarity index 78% rename from resource/config/gslb/gslbldnsentries.go rename to resource/config/gslbldnsentries.go index 1867364..720da3d 100644 --- a/resource/config/gslb/gslbldnsentries.go +++ b/resource/config/gslbldnsentries.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for LDNS entry resource. -*/ + */ type Gslbldnsentries struct { /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - Sitename string `json:"sitename,omitempty"` - Numsites string `json:"numsites,omitempty"` + Sitename string `json:"sitename,omitempty"` + Numsites string `json:"numsites,omitempty"` Ipaddress string `json:"ipaddress,omitempty"` - Ttl string `json:"ttl,omitempty"` - Name string `json:"name,omitempty"` - Rtt string `json:"rtt,omitempty"` - + Ttl string `json:"ttl,omitempty"` + Name string `json:"name,omitempty"` + Rtt string `json:"rtt,omitempty"` } diff --git a/resource/config/gslb/gslbldnsentry.go b/resource/config/gslbldnsentry.go similarity index 96% rename from resource/config/gslb/gslbldnsentry.go rename to resource/config/gslbldnsentry.go index bcac61b..1cad21e 100644 --- a/resource/config/gslb/gslbldnsentry.go +++ b/resource/config/gslbldnsentry.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for LDNS entry resource. -*/ + */ type Gslbldnsentry struct { /** * IP address of the LDNS server. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` - } diff --git a/resource/config/gslb/gslbparameter.go b/resource/config/gslbparameter.go similarity index 94% rename from resource/config/gslb/gslbparameter.go rename to resource/config/gslbparameter.go index 847fa91..3ef9ec9 100644 --- a/resource/config/gslb/gslbparameter.go +++ b/resource/config/gslbparameter.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for GSLB parameter resource. -*/ + */ type Gslbparameter struct { /** * Time, in seconds, after which an inactive LDNS entry is removed. - */ + */ Ldnsentrytimeout int `json:"ldnsentrytimeout,omitempty"` /** * Tolerance, in milliseconds, for newly learned round-trip time (RTT) values. If the difference between the old RTT value and the newly computed RTT value is less than or equal to the specified tolerance value, the LDNS entry in the network metric table is not updated with the new RTT value. Prevents the exchange of metrics when variations in RTT values are negligible. - */ + */ Rtttolerance int `json:"rtttolerance,omitempty"` /** * The IPv4 network mask with which to create LDNS entries. - */ + */ Ldnsmask string `json:"ldnsmask,omitempty"` /** * Mask for creating LDNS entries for IPv6 source addresses. The mask is defined as the number of leading bits to consider, in the source IP address, when creating an LDNS entry. - */ + */ V6ldnsmasklen int `json:"v6ldnsmasklen,omitempty"` /** * Order in which monitors should be initiated to calculate RTT. - */ + */ Ldnsprobeorder []string `json:"ldnsprobeorder,omitempty"` /** * Drop LDNS requests if round-trip time (RTT) information is not available. - */ + */ Dropldnsreq string `json:"dropldnsreq,omitempty"` /** * Amount of delay in updating the state of GSLB service to DOWN when MEP goes down. @@ -51,38 +51,37 @@ type Gslbparameter struct { Gslbsvcstatedelaytime int `json:"gslbsvcstatedelaytime,omitempty"` /** * Time (in seconds) within which local or child site services remain in learning phase. GSLB site will enter the learning phase after reboot, HA failover, Cluster GSLB owner node changes or MEP being enabled on local node. Backup parent (if configured) will selectively move the adopted children's GSLB services to learning phase when primary parent goes down. While a service is in learning period, remote site will not honour the state and stats got through MEP for that service. State can be learnt from health monitor if bound explicitly. - */ + */ Svcstatelearningtime int `json:"svcstatelearningtime,omitempty"` /** * GSLB configuration will be synced automatically to remote gslb sites if enabled. - */ + */ Automaticconfigsync string `json:"automaticconfigsync,omitempty"` /** * Time duartion (in seconds) during which if no new packets received by Local gslb site from Remote gslb site then mark the MEP connection DOWN - */ + */ Mepkeepalivetimeout int `json:"mepkeepalivetimeout,omitempty"` /** * Time duartion (in seconds) for which the gslb sync process will wait before checking for config changes. - */ + */ Gslbsyncinterval int `json:"gslbsyncinterval,omitempty"` /** * Mode in which configuration will be synced from master site to remote sites. - */ + */ Gslbsyncmode string `json:"gslbsyncmode,omitempty"` /** * If disabled, Location files will not be synced to the remote sites as part of automatic sync. - */ + */ Gslbsynclocfiles string `json:"gslbsynclocfiles,omitempty"` /** * If enabled, remote gslb site's rsync port will be monitored and site is considered for configuration sync only when the monitor is successful. - */ + */ Gslbconfigsyncmonitor string `json:"gslbconfigsyncmonitor,omitempty"` //------- Read only Parameter ---------; - Flags string `json:"flags,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Flags string `json:"flags,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Incarnation string `json:"incarnation,omitempty"` - } diff --git a/resource/config/gslb/gslbrunningconfig.go b/resource/config/gslbrunningconfig.go similarity index 97% rename from resource/config/gslb/gslbrunningconfig.go rename to resource/config/gslbrunningconfig.go index bfcb6bd..6751b6d 100644 --- a/resource/config/gslb/gslbrunningconfig.go +++ b/resource/config/gslbrunningconfig.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for running GSLB configuration resource. -*/ + */ type Gslbrunningconfig struct { //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/gslb/gslbservice.go b/resource/config/gslbservice.go similarity index 86% rename from resource/config/gslb/gslbservice.go rename to resource/config/gslbservice.go index cf39f89..ee6db1a 100644 --- a/resource/config/gslb/gslbservice.go +++ b/resource/config/gslbservice.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for GSLB service resource. -*/ + */ type Gslbservice struct { /** * Name for the GSLB service. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the GSLB service is created. @@ -27,166 +27,165 @@ type Gslbservice struct { Servicename string `json:"servicename,omitempty"` /** * Canonical name of the GSLB service. Used in CNAME-based GSLB. - */ + */ Cnameentry string `json:"cnameentry,omitempty"` /** * IP address for the GSLB service. Should represent a load balancing, content switching, or VPN virtual server on the Citrix ADC, or the IP address of another load balancing device. - */ + */ Ip string `json:"ip,omitempty"` /** * Name of the server hosting the GSLB service. - */ + */ Servername string `json:"servername,omitempty"` /** * Type of service to create. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * Port on which the load balancing entity represented by this GSLB service listens. - */ + */ Port int `json:"port,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. - */ + */ Publicip string `json:"publicip,omitempty"` /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. - */ + */ Publicport int `json:"publicport,omitempty"` /** * The maximum number of open connections that the service can support at any given time. A GSLB service whose connection count reaches the maximum is not considered when a GSLB decision is made, until the connection count drops below the maximum. - */ + */ Maxclient int `json:"maxclient,omitempty"` /** * Monitor the health of the GSLB service. - */ + */ Healthmonitor string `json:"healthmonitor,omitempty"` /** * Name of the GSLB site to which the service belongs. - */ + */ Sitename string `json:"sitename,omitempty"` /** * Enable or disable the service. - */ + */ State string `json:"state,omitempty"` /** * In the request that is forwarded to the GSLB service, insert a header that stores the client's IP address. Client IP header insertion is used in connection-proxy based site persistence. - */ + */ Cip string `json:"cip,omitempty"` /** * Name for the HTTP header that stores the client's IP address. Used with the Client IP option. If client IP header insertion is enabled on the service and a name is not specified for the header, the Citrix ADC uses the name specified by the cipHeader parameter in the set ns param command or, in the GUI, the Client IP Header parameter in the Configure HTTP Parameters dialog box. - */ + */ Cipheader string `json:"cipheader,omitempty"` /** * Use cookie-based site persistence. Applicable only to HTTP and SSL GSLB services. - */ + */ Sitepersistence string `json:"sitepersistence,omitempty"` /** * Timeout value, in minutes, for the cookie, when cookie based site persistence is enabled. - */ + */ Cookietimeout int `json:"cookietimeout,omitempty"` /** * The site's prefix string. When the service is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound service-domain pair by concatenating the site prefix of the service and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` /** * Idle time, in seconds, after which a client connection is terminated. Applicable if connection proxy based site persistence is used. - */ + */ Clttimeout int `json:"clttimeout,omitempty"` /** * Idle time, in seconds, after which a server connection is terminated. Applicable if connection proxy based site persistence is used. - */ + */ Svrtimeout int `json:"svrtimeout,omitempty"` /** * Integer specifying the maximum bandwidth allowed for the service. A GSLB service whose bandwidth reaches the maximum is not considered when a GSLB decision is made, until its bandwidth consumption drops below the maximum. - */ + */ Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Flush all active transactions associated with the GSLB service when its state transitions from UP to DOWN. Do not enable this option for services that must complete their transactions. Applicable if connection proxy based site persistence is used. - */ + */ Downstateflush string `json:"downstateflush,omitempty"` /** * Maximum number of SSL VPN users that can be logged on concurrently to the VPN virtual server that is represented by this GSLB service. A GSLB service whose user count reaches the maximum is not considered when a GSLB decision is made, until the count drops below the maximum. - */ + */ Maxaaausers int `json:"maxaaausers,omitempty"` /** * Monitoring threshold value for the GSLB service. If the sum of the weights of the monitors that are bound to this GSLB service and are in the UP state is not equal to or greater than this threshold value, the service is marked as DOWN. - */ + */ Monthreshold int `json:"monthreshold,omitempty"` /** * Unique hash identifier for the GSLB service, used by hash based load balancing methods. - */ + */ Hashid int `json:"hashid,omitempty"` /** * Any comments that you might want to associate with the GSLB service. - */ + */ Comment string `json:"comment,omitempty"` /** * Enable logging appflow flow information - */ + */ Appflowlog string `json:"appflowlog,omitempty"` /** * The replacement domain name for this NAPTR. - */ + */ Naptrreplacement string `json:"naptrreplacement,omitempty"` /** * An integer specifying the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules. The ordering is from lowest to highest - */ + */ Naptrorder int `json:"naptrorder,omitempty"` /** * Service Parameters applicable to this delegation path. - */ + */ Naptrservices string `json:"naptrservices,omitempty"` /** * Modify the TTL of the internally created naptr domain - */ + */ Naptrdomainttl int `json:"naptrdomainttl,omitempty"` /** * An integer specifying the preference of this NAPTR among NAPTR records having same order. lower the number, higher the preference. - */ + */ Naptrpreference int `json:"naptrpreference,omitempty"` /** * The new IP address of the service. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Name of the DNS view of the service. A DNS view is used in global server load balancing (GSLB) to return a predetermined IP address to a specific group of clients, which are identified by using a DNS policy. - */ + */ Viewname string `json:"viewname,omitempty"` /** * IP address to be used for the given view - */ + */ Viewip string `json:"viewip,omitempty"` /** * Weight to assign to the monitor-service binding. A larger number specifies a greater weight. Contributes to the monitoring threshold, which determines the state of the service. - */ + */ Weight int `json:"weight,omitempty"` /** * Name of the monitor to bind to the service. - */ + */ Monitornamesvc string `json:"monitor_name_svc,omitempty"` /** * New name for the GSLB service. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Gslb string `json:"gslb,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Svreffgslbstate string `json:"svreffgslbstate,omitempty"` - Gslbthreshold string `json:"gslbthreshold,omitempty"` - Gslbsvcstats string `json:"gslbsvcstats,omitempty"` - Monstate string `json:"monstate,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Monitorstate string `json:"monitor_state,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` + Gslb string `json:"gslb,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + Gslbthreshold string `json:"gslbthreshold,omitempty"` + Gslbsvcstats string `json:"gslbsvcstats,omitempty"` + Monstate string `json:"monstate,omitempty"` + Preferredlocation string `json:"preferredlocation,omitempty"` + Monitorstate string `json:"monitor_state,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` - Threshold string `json:"threshold,omitempty"` - Clmonowner string `json:"clmonowner,omitempty"` - Clmonview string `json:"clmonview,omitempty"` - Gslbsvchealth string `json:"gslbsvchealth,omitempty"` - Glsbsvchealthdescr string `json:"glsbsvchealthdescr,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - + Threshold string `json:"threshold,omitempty"` + Clmonowner string `json:"clmonowner,omitempty"` + Clmonview string `json:"clmonview,omitempty"` + Gslbsvchealth string `json:"gslbsvchealth,omitempty"` + Glsbsvchealthdescr string `json:"glsbsvchealthdescr,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` } diff --git a/resource/config/gslb/gslbservice_binding.go b/resource/config/gslbservice_binding.go similarity index 89% rename from resource/config/gslb/gslbservice_binding.go rename to resource/config/gslbservice_binding.go index 839f798..3009c12 100644 --- a/resource/config/gslb/gslbservice_binding.go +++ b/resource/config/gslbservice_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** -* Binding object which returns the resources bound to gslbservice_binding. -*/ +* Binding object which returns the resources bound to gslbservice_binding. + */ type Gslbservicebinding struct { /** - * Name of the GSLB service.
Minimum value = - */ + * Name of the GSLB service.
Minimum value = + */ Servicename string `json:"servicename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservice_dnsview_binding.go b/resource/config/gslbservice_dnsview_binding.go similarity index 96% rename from resource/config/gslb/gslbservice_dnsview_binding.go rename to resource/config/gslbservice_dnsview_binding.go index 613043e..9ade937 100644 --- a/resource/config/gslb/gslbservice_dnsview_binding.go +++ b/resource/config/gslbservice_dnsview_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the dnsview that can be bound to gslbservice. -*/ + */ type Gslbservicednsviewbinding struct { /** * Name of the DNS view of the service. A DNS view is used in global server load balancing (GSLB) to return a predetermined IP address to a specific group of clients, which are identified by using a DNS policy. - */ + */ Viewname string `json:"viewname,omitempty"` /** * IP address to be used for the given view - */ + */ Viewip string `json:"viewip,omitempty"` /** * Name of the GSLB service. - */ + */ Servicename string `json:"servicename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservice_lbmonitor_binding.go b/resource/config/gslbservice_lbmonitor_binding.go similarity index 95% rename from resource/config/gslb/gslbservice_lbmonitor_binding.go rename to resource/config/gslbservice_lbmonitor_binding.go index 15ac71a..fc49ef9 100644 --- a/resource/config/gslb/gslbservice_lbmonitor_binding.go +++ b/resource/config/gslbservice_lbmonitor_binding.go @@ -12,78 +12,76 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the lbmonitor that can be bound to gslbservice. -*/ + */ type Gslbservicelbmonitorbinding struct { /** * Monitor name. - */ + */ Monitorname string `json:"monitor_name,omitempty"` /** * State of the monitor bound to gslb service. - */ + */ Monstate string `json:"monstate,omitempty"` /** * The running state of the monitor on this service. - */ + */ Monitorstate string `json:"monitor_state,omitempty"` /** * Weight to assign to the monitor-service binding. A larger number specifies a greater weight. Contributes to the monitoring threshold, which determines the state of the service. - */ + */ Weight int `json:"weight,omitempty"` /** * The total number of failed probs. - */ + */ Totalfailedprobes int `json:"totalfailedprobes,omitempty"` /** * Number of the current failed monitoring probes. - */ + */ Failedprobes int `json:"failedprobes,omitempty"` /** * The code indicating the monitor response. - */ + */ Monstatcode int `json:"monstatcode,omitempty"` /** * First parameter for use with message code. - */ + */ Monstatparam1 int `json:"monstatparam1,omitempty"` /** * Second parameter for use with message code. - */ + */ Monstatparam2 int `json:"monstatparam2,omitempty"` /** * Third parameter for use with message code. - */ + */ Monstatparam3 int `json:"monstatparam3,omitempty"` /** * Response time of this monitor. - */ + */ Responsetime int `json:"responsetime,omitempty"` /** * Total number of probes sent to monitor this service. - */ + */ Monitortotalprobes int `json:"monitortotalprobes,omitempty"` /** * Total number of failed probes - */ + */ Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` /** * Total number of currently failed probes - */ + */ Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` /** * Displays the gslb monitor status in string format. - */ + */ Lastresponse string `json:"lastresponse,omitempty"` /** * Name of the GSLB service. - */ + */ Servicename string `json:"servicename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservice_monitor_binding.go b/resource/config/gslbservice_monitor_binding.go similarity index 96% rename from resource/config/gslb/gslbservice_monitor_binding.go rename to resource/config/gslbservice_monitor_binding.go index 95eecea..bced8b7 100644 --- a/resource/config/gslb/gslbservice_monitor_binding.go +++ b/resource/config/gslbservice_monitor_binding.go @@ -12,78 +12,76 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the monitor that can be bound to gslbservice. -*/ + */ type Gslbservicemonitorbinding struct { /** * Monitor name. - */ + */ Monitorname string `json:"monitor_name,omitempty"` /** * State of the monitor bound to gslb service. - */ + */ Monstate string `json:"monstate,omitempty"` /** * The running state of the monitor on this service. - */ + */ Monitorstate string `json:"monitor_state,omitempty"` /** * Weight to assign to the monitor-service binding. A larger number specifies a greater weight. Contributes to the monitoring threshold, which determines the state of the service. - */ + */ Weight uint32 `json:"weight,omitempty"` /** * The total number of failed probs. - */ + */ Totalfailedprobes uint32 `json:"totalfailedprobes,omitempty"` /** * Number of the current failed monitoring probes. - */ + */ Failedprobes uint32 `json:"failedprobes,omitempty"` /** * The code indicating the monitor response. - */ + */ Monstatcode int32 `json:"monstatcode,omitempty"` /** * First parameter for use with message code. - */ + */ Monstatparam1 int32 `json:"monstatparam1,omitempty"` /** * Second parameter for use with message code. - */ + */ Monstatparam2 int32 `json:"monstatparam2,omitempty"` /** * Third parameter for use with message code. - */ + */ Monstatparam3 int32 `json:"monstatparam3,omitempty"` /** * Response time of this monitor. - */ + */ Responsetime uint64 `json:"responsetime,omitempty"` /** * Total number of probes sent to monitor this service. - */ + */ Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` /** * Total number of failed probes - */ + */ Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` /** * Total number of currently failed probes - */ + */ Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` /** * Displays the gslb monitor status in string format. - */ + */ Lastresponse string `json:"lastresponse,omitempty"` /** * Name of the GSLB service. - */ + */ Servicename string `json:"servicename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservice_view_binding.go b/resource/config/gslbservice_view_binding.go similarity index 96% rename from resource/config/gslb/gslbservice_view_binding.go rename to resource/config/gslbservice_view_binding.go index 3ecc284..9da779f 100644 --- a/resource/config/gslb/gslbservice_view_binding.go +++ b/resource/config/gslbservice_view_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the view that can be bound to gslbservice. -*/ + */ type Gslbserviceviewbinding struct { /** * Name of the DNS view of the service. A DNS view is used in global server load balancing (GSLB) to return a predetermined IP address to a specific group of clients, which are identified by using a DNS policy. - */ + */ Viewname string `json:"viewname,omitempty"` /** * IP address to be used for the given view - */ + */ Viewip string `json:"viewip,omitempty"` /** * Name of the GSLB service. - */ + */ Servicename string `json:"servicename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservicegroup.go b/resource/config/gslbservicegroup.go similarity index 83% rename from resource/config/gslb/gslbservicegroup.go rename to resource/config/gslbservicegroup.go index 871dd39..59c9c41 100644 --- a/resource/config/gslb/gslbservicegroup.go +++ b/resource/config/gslbservicegroup.go @@ -12,33 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for GSLB service group resource. -*/ + */ type Gslbservicegroup struct { /** * Name of the GSLB service group. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the name is created. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Protocol used to exchange data with the GSLB service. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * Maximum number of simultaneous open connections for the GSLB service group. - */ + */ Maxclient int `json:"maxclient,omitempty"` /** * Insert the Client IP header in requests forwarded to the GSLB service. - */ + */ Cip string `json:"cip,omitempty"` /** * Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client's IP header name. - */ + */ Cipheader string `json:"cipheader,omitempty"` /** * Monitor the health of this GSLB service.Available settings function are as follows: @@ -48,121 +48,120 @@ type Gslbservicegroup struct { Healthmonitor string `json:"healthmonitor,omitempty"` /** * Time, in seconds, after which to terminate an idle client connection. - */ + */ Clttimeout int `json:"clttimeout,omitempty"` /** * Time, in seconds, after which to terminate an idle server connection. - */ + */ Svrtimeout int `json:"svrtimeout,omitempty"` /** * Maximum bandwidth, in Kbps, allocated for all the services in the GSLB service group. - */ + */ Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Minimum sum of weights of the monitors that are bound to this GSLB service. Used to determine whether to mark a GSLB service as UP or DOWN. - */ + */ Monthreshold int `json:"monthreshold,omitempty"` /** * Initial state of the GSLB service group. - */ + */ State string `json:"state,omitempty"` /** * Flush all active transactions associated with all the services in the GSLB service group whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. - */ + */ Downstateflush string `json:"downstateflush,omitempty"` /** * Any information about the GSLB service group. - */ + */ Comment string `json:"comment,omitempty"` /** * Enable logging of AppFlow information for the specified GSLB service group. - */ + */ Appflowlog string `json:"appflowlog,omitempty"` /** * Auto scale option for a GSLB servicegroup - */ + */ Autoscale string `json:"autoscale,omitempty"` /** * Name of the GSLB site to which the service group belongs. - */ + */ Sitename string `json:"sitename,omitempty"` /** * Use cookie-based site persistence. Applicable only to HTTP and SSL non-autoscale enabled GSLB servicegroups. - */ + */ Sitepersistence string `json:"sitepersistence,omitempty"` /** * Name of the server to which to bind the service group. - */ + */ Servername string `json:"servername,omitempty"` /** * Server port number. - */ + */ Port int `json:"port,omitempty"` /** * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. - */ + */ Weight int `json:"weight,omitempty"` /** * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. - */ + */ Hashid int `json:"hashid,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. - */ + */ Publicip string `json:"publicip,omitempty"` /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. - */ + */ Publicport int `json:"publicport,omitempty"` /** * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` /** * Name of the monitor bound to the GSLB service group. Used to assign a weight to the monitor. - */ + */ Monitornamesvc string `json:"monitor_name_svc,omitempty"` /** * weight of the monitor that is bound to GSLB servicegroup. - */ + */ Dupweight int `json:"dup_weight,omitempty"` /** * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. - */ + */ Delay int `json:"delay,omitempty"` /** * Wait for all existing connections to the service to terminate before shutting down the service. - */ + */ Graceful string `json:"graceful,omitempty"` /** * Display the members of the listed GSLB service groups in addition to their settings. Can be specified when no service group name is provided in the command. In that case, the details displayed for each service group are identical to the details displayed when a service group name is provided, except that bound monitors are not displayed. - */ + */ Includemembers bool `json:"includemembers,omitempty"` /** * New name for the GSLB service group. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Numofconnections string `json:"numofconnections,omitempty"` - Serviceconftype string `json:"serviceconftype,omitempty"` - Value string `json:"value,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Ip string `json:"ip,omitempty"` - Monstatcode string `json:"monstatcode,omitempty"` - Monstatparam1 string `json:"monstatparam1,omitempty"` - Monstatparam2 string `json:"monstatparam2,omitempty"` - Monstatparam3 string `json:"monstatparam3,omitempty"` - Statechangetimemsec string `json:"statechangetimemsec,omitempty"` - Stateupdatereason string `json:"stateupdatereason,omitempty"` - Clmonowner string `json:"clmonowner,omitempty"` - Clmonview string `json:"clmonview,omitempty"` - Groupcount string `json:"groupcount,omitempty"` - Serviceipstr string `json:"serviceipstr,omitempty"` + Numofconnections string `json:"numofconnections,omitempty"` + Serviceconftype string `json:"serviceconftype,omitempty"` + Value string `json:"value,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Ip string `json:"ip,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Stateupdatereason string `json:"stateupdatereason,omitempty"` + Clmonowner string `json:"clmonowner,omitempty"` + Clmonview string `json:"clmonview,omitempty"` + Groupcount string `json:"groupcount,omitempty"` + Serviceipstr string `json:"serviceipstr,omitempty"` Servicegroupeffectivestate string `json:"servicegroupeffectivestate,omitempty"` - Gslb string `json:"gslb,omitempty"` - Svreffgslbstate string `json:"svreffgslbstate,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - + Gslb string `json:"gslb,omitempty"` + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` } diff --git a/resource/config/gslb/gslbservicegroup_binding.go b/resource/config/gslbservicegroup_binding.go similarity index 88% rename from resource/config/gslb/gslbservicegroup_binding.go rename to resource/config/gslbservicegroup_binding.go index 813515d..8ace3d6 100644 --- a/resource/config/gslb/gslbservicegroup_binding.go +++ b/resource/config/gslbservicegroup_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** -* Binding object which returns the resources bound to gslbservicegroup_binding. -*/ +* Binding object which returns the resources bound to gslbservicegroup_binding. + */ type Gslbservicegroupbinding struct { /** - * Name of the GSLB service group.
Minimum value = - */ + * Name of the GSLB service group.
Minimum value = + */ Servicegroupname string `json:"servicegroupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go b/resource/config/gslbservicegroup_gslbservicegroupmember_binding.go similarity index 94% rename from resource/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go rename to resource/config/gslbservicegroup_gslbservicegroupmember_binding.go index 9b1be3d..7818b31 100644 --- a/resource/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go +++ b/resource/config/gslbservicegroup_gslbservicegroupmember_binding.go @@ -12,83 +12,81 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservicegroupmember that can be bound to gslbservicegroup. -*/ + */ type Gslbservicegroupgslbservicegroupmemberbinding struct { /** * IP Address. - */ + */ Ip string `json:"ip,omitempty"` /** * Server port number. - */ + */ Port int `json:"port,omitempty"` /** * The state of the GSLB service - */ + */ Svrstate string `json:"svrstate,omitempty"` /** * Time when last state change occurred. Seconds part. - */ + */ Statechangetimesec string `json:"statechangetimesec,omitempty"` /** * Time in 10 millisecond ticks since the last state change. - */ + */ Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` /** * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. - */ + */ Weight int `json:"weight,omitempty"` /** * Name of the server to which to bind the service group. - */ + */ Servername string `json:"servername,omitempty"` /** * Initial state of the GSLB service group. - */ + */ State string `json:"state,omitempty"` /** * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. - */ + */ Hashid int `json:"hashid,omitempty"` /** * Wait for all existing connections to the service to terminate before shutting down the service. - */ + */ Graceful string `json:"graceful,omitempty"` /** * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. - */ + */ Delay int `json:"delay,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. - */ + */ Publicip string `json:"publicip,omitempty"` /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. - */ + */ Publicport int `json:"publicport,omitempty"` /** * Indicates if gslb svc has reached threshold - */ - Gslbthreshold int `json:"gslbthreshold,omitempty"` - Threshold string `json:"threshold,omitempty"` + */ + Gslbthreshold int `json:"gslbthreshold,omitempty"` + Threshold string `json:"threshold,omitempty"` /** * Prefered location. - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` /** * Name of the GSLB service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservicegroup_lbmonitor_binding.go b/resource/config/gslbservicegroup_lbmonitor_binding.go similarity index 97% rename from resource/config/gslb/gslbservicegroup_lbmonitor_binding.go rename to resource/config/gslbservicegroup_lbmonitor_binding.go index d6a4c89..9ff3d25 100644 --- a/resource/config/gslb/gslbservicegroup_lbmonitor_binding.go +++ b/resource/config/gslbservicegroup_lbmonitor_binding.go @@ -12,62 +12,60 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the lbmonitor that can be bound to gslbservicegroup. -*/ + */ type Gslbservicegrouplbmonitorbinding struct { /** * Monitor name. - */ + */ Monitorname string `json:"monitor_name,omitempty"` /** * weight of the monitor that is bound to GSLB servicegroup. - */ + */ Monweight int `json:"monweight,omitempty"` /** * Monitor state. - */ + */ Monstate string `json:"monstate,omitempty"` /** * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. - */ + */ Weight int `json:"weight,omitempty"` /** * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. - */ + */ Passive bool `json:"passive,omitempty"` /** * Name of the GSLB service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Port number of the GSLB service. Each service must have a unique port number. - */ + */ Port int `json:"port,omitempty"` /** * Initial state of the service after binding. - */ + */ State string `json:"state,omitempty"` /** * Unique numerical identifier used by hash based load balancing methods to identify a service. - */ + */ Hashid int `json:"hashid,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. - */ + */ Publicip string `json:"publicip,omitempty"` /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. - */ + */ Publicport int `json:"publicport,omitempty"` /** * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservicegroup_monitor_binding.go b/resource/config/gslbservicegroup_monitor_binding.go similarity index 97% rename from resource/config/gslb/gslbservicegroup_monitor_binding.go rename to resource/config/gslbservicegroup_monitor_binding.go index 367bbf7..deaffbd 100644 --- a/resource/config/gslb/gslbservicegroup_monitor_binding.go +++ b/resource/config/gslbservicegroup_monitor_binding.go @@ -12,62 +12,60 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the monitor that can be bound to gslbservicegroup. -*/ + */ type Gslbservicegroupmonitorbinding struct { /** * Monitor name. - */ + */ Monitorname string `json:"monitor_name,omitempty"` /** * weight of the monitor that is bound to GSLB servicegroup. - */ + */ Monweight uint32 `json:"monweight,omitempty"` /** * Monitor state. - */ + */ Monstate string `json:"monstate,omitempty"` /** * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. - */ + */ Weight uint32 `json:"weight,omitempty"` /** * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. - */ + */ Passive bool `json:"passive,omitempty"` /** * Name of the GSLB service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Port number of the GSLB service. Each service must have a unique port number. - */ + */ Port int32 `json:"port,omitempty"` /** * Initial state of the service after binding. - */ + */ State string `json:"state,omitempty"` /** * Unique numerical identifier used by hash based load balancing methods to identify a service. - */ + */ Hashid uint32 `json:"hashid,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. - */ + */ Publicip string `json:"publicip,omitempty"` /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. - */ + */ Publicport int32 `json:"publicport,omitempty"` /** * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go b/resource/config/gslbservicegroup_servicegroupentitymonbindings_binding.go similarity index 97% rename from resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go rename to resource/config/gslbservicegroup_servicegroupentitymonbindings_binding.go index c5e1ae1..9682979 100644 --- a/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go +++ b/resource/config/gslbservicegroup_servicegroupentitymonbindings_binding.go @@ -12,75 +12,73 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the servicegroupentitymonbindings that can be bound to gslbservicegroup. -*/ + */ type Gslbservicegroupservicegroupentitymonbindingsbinding struct { Servicegroupentname2 string `json:"servicegroupentname2,omitempty"` /** * Monitor name. - */ + */ Monitorname string `json:"monitor_name,omitempty"` /** * The running state of the monitor on this service. - */ + */ Monitorstate string `json:"monitor_state,omitempty"` /** * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. - */ + */ Passive bool `json:"passive,omitempty"` /** * Total number of probes sent to monitor this service. - */ + */ Monitortotalprobes int `json:"monitortotalprobes,omitempty"` /** * Total number of failed probes - */ + */ Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` /** * Total number of currently failed probes - */ + */ Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` /** * The string form of monstatcode. - */ + */ Lastresponse string `json:"lastresponse,omitempty"` /** * Name of the GSLB service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Port number of the GSLB service. Each service must have a unique port number. - */ + */ Port int `json:"port,omitempty"` /** * When used along with monitor name, it specifies the weight of the monitor binding. When used along with servername & port pair, it specifies the weight of this GSLB service . - */ + */ Weight int `json:"weight,omitempty"` /** * Initial state of the service after binding. - */ + */ State string `json:"state,omitempty"` /** * Unique numerical identifier used by hash based load balancing methods to identify a service. - */ + */ Hashid int `json:"hashid,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. - */ + */ Publicip string `json:"publicip,omitempty"` /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. - */ + */ Publicport int `json:"publicport,omitempty"` /** * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbservicegroup_servicegroupmember_binding.go b/resource/config/gslbservicegroup_servicegroupmember_binding.go similarity index 94% rename from resource/config/gslb/gslbservicegroup_servicegroupmember_binding.go rename to resource/config/gslbservicegroup_servicegroupmember_binding.go index d328b37..dc09998 100644 --- a/resource/config/gslb/gslbservicegroup_servicegroupmember_binding.go +++ b/resource/config/gslbservicegroup_servicegroupmember_binding.go @@ -12,83 +12,81 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the servicegroupmember that can be bound to gslbservicegroup. -*/ + */ type Gslbservicegroupservicegroupmemberbinding struct { /** * IP Address. - */ + */ Ip string `json:"ip,omitempty"` /** * Server port number. - */ + */ Port int32 `json:"port,omitempty"` /** * The state of the GSLB service - */ + */ Svrstate string `json:"svrstate,omitempty"` /** * Time when last state change occurred. Seconds part. - */ + */ Statechangetimesec string `json:"statechangetimesec,omitempty"` /** * Time in 10 millisecond ticks since the last state change. - */ + */ Tickssincelaststatechange uint32 `json:"tickssincelaststatechange,omitempty"` /** * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. - */ + */ Weight uint32 `json:"weight,omitempty"` /** * Name of the server to which to bind the service group. - */ + */ Servername string `json:"servername,omitempty"` /** * Initial state of the GSLB service group. - */ + */ State string `json:"state,omitempty"` /** * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. - */ + */ Hashid uint32 `json:"hashid,omitempty"` /** * Wait for all existing connections to the service to terminate before shutting down the service. - */ + */ Graceful string `json:"graceful,omitempty"` /** * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. - */ + */ Delay uint64 `json:"delay,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. - */ + */ Publicip string `json:"publicip,omitempty"` /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. - */ + */ Publicport int32 `json:"publicport,omitempty"` /** * Indicates if gslb svc has reached threshold - */ - Gslbthreshold int32 `json:"gslbthreshold,omitempty"` - Threshold string `json:"threshold,omitempty"` + */ + Gslbthreshold int32 `json:"gslbthreshold,omitempty"` + Threshold string `json:"threshold,omitempty"` /** * Prefered location. - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. - */ + */ Siteprefix string `json:"siteprefix,omitempty"` /** * Name of the GSLB service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbsite.go b/resource/config/gslbsite.go similarity index 92% rename from resource/config/gslb/gslbsite.go rename to resource/config/gslbsite.go index cce7933..aa61c9b 100644 --- a/resource/config/gslb/gslbsite.go +++ b/resource/config/gslbsite.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for GSLB site resource. -*/ + */ type Gslbsite struct { /** * Name for the GSLB site. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the virtual server is created. @@ -27,65 +27,64 @@ type Gslbsite struct { Sitename string `json:"sitename,omitempty"` /** * Type of site to create. If the type is not specified, the appliance automatically detects and sets the type on the basis of the IP address being assigned to the site. If the specified site IP address is owned by the appliance (for example, a MIP address or SNIP address), the site is a local site. Otherwise, it is a remote site. - */ + */ Sitetype string `json:"sitetype,omitempty"` /** * IP address for the GSLB site. The GSLB site uses this IP address to communicate with other GSLB sites. For a local site, use any IP address that is owned by the appliance (for example, a SNIP or MIP address, or the IP address of the ADNS service). - */ + */ Siteipaddress string `json:"siteipaddress,omitempty"` /** * Public IP address for the local site. Required only if the appliance is deployed in a private address space and the site has a public IP address hosted on an external firewall or a NAT device. - */ + */ Publicip string `json:"publicip,omitempty"` /** - * Exchange metrics with other sites. Metrics are exchanged by using Metric Exchange Protocol (MEP). The appliances in the GSLB setup exchange health information once every second. + * Exchange metrics with other sites. Metrics are exchanged by using Metric Exchange Protocol (MEP). The appliances in the GSLB setup exchange health information once every second. If you disable metrics exchange, you can use only static load balancing methods (such as round robin, static proximity, or the hash-based methods), and if you disable metrics exchange when a dynamic load balancing method (such as least connection) is in operation, the appliance falls back to round robin. Also, if you disable metrics exchange, you must use a monitor to determine the state of GSLB services. Otherwise, the service is marked as DOWN. */ Metricexchange string `json:"metricexchange,omitempty"` /** * Exchange, with other GSLB sites, network metrics such as round-trip time (RTT), learned from communications with various local DNS (LDNS) servers used by clients. RTT information is used in the dynamic RTT load balancing method, and is exchanged every 5 seconds. - */ + */ Nwmetricexchange string `json:"nwmetricexchange,omitempty"` /** * Exchange persistent session entries with other GSLB sites every five seconds. - */ + */ Sessionexchange string `json:"sessionexchange,omitempty"` /** * Specify the conditions under which the GSLB service must be monitored by a monitor, if one is bound. Available settings function as follows: * ALWAYS - Monitor the GSLB service at all times. * MEPDOWN - Monitor the GSLB service only when the exchange of metrics through the Metrics Exchange Protocol (MEP) is disabled. - MEPDOWN_SVCDOWN - Monitor the service in either of the following situations: + MEPDOWN_SVCDOWN - Monitor the service in either of the following situations: * The exchange of metrics through MEP is disabled. * The exchange of metrics through MEP is enabled but the status of the service, learned through metrics exchange, is DOWN. */ Triggermonitor string `json:"triggermonitor,omitempty"` /** * Parent site of the GSLB site, in a parent-child topology. - */ + */ Parentsite string `json:"parentsite,omitempty"` /** * Cluster IP address. Specify this parameter to connect to the remote cluster site for GSLB auto-sync. Note: The cluster IP address is defined when creating the cluster. - */ + */ Clip string `json:"clip,omitempty"` /** * IP address to be used to globally access the remote cluster when it is deployed behind a NAT. It can be same as the normal cluster IP address. - */ + */ Publicclip string `json:"publicclip,omitempty"` /** * The naptr replacement suffix configured here will be used to construct the naptr replacement field in NAPTR record. - */ + */ Naptrreplacementsuffix string `json:"naptrreplacementsuffix,omitempty"` /** * The list of backup gslb sites configured in preferred order. Need to be parent gsb sites. - */ + */ Backupparentlist []string `json:"backupparentlist,omitempty"` //------- Read only Parameter ---------; - Status string `json:"status,omitempty"` + Status string `json:"status,omitempty"` Persistencemepstatus string `json:"persistencemepstatus,omitempty"` - Version string `json:"version,omitempty"` - Curbackupparentip string `json:"curbackupparentip,omitempty"` - Sitestate string `json:"sitestate,omitempty"` - + Version string `json:"version,omitempty"` + Curbackupparentip string `json:"curbackupparentip,omitempty"` + Sitestate string `json:"sitestate,omitempty"` } diff --git a/resource/config/gslb/gslbsite_binding.go b/resource/config/gslbsite_binding.go similarity index 94% rename from resource/config/gslb/gslbsite_binding.go rename to resource/config/gslbsite_binding.go index dda7b52..63a1c13 100644 --- a/resource/config/gslb/gslbsite_binding.go +++ b/resource/config/gslbsite_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** -* Binding object which returns the resources bound to gslbsite_binding. -*/ +* Binding object which returns the resources bound to gslbsite_binding. + */ type Gslbsitebinding struct { /** - * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed.
Minimum value = - */ + * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed.
Minimum value = + */ Sitename string `json:"sitename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbsite_gslbservice_binding.go b/resource/config/gslbsite_gslbservice_binding.go similarity index 95% rename from resource/config/gslb/gslbsite_gslbservice_binding.go rename to resource/config/gslbsite_gslbservice_binding.go index db7df19..f875d05 100644 --- a/resource/config/gslb/gslbsite_gslbservice_binding.go +++ b/resource/config/gslbsite_gslbservice_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservice that can be bound to gslbsite. -*/ + */ type Gslbsitegslbservicebinding struct { /** * Service name. - */ + */ Servicename string `json:"servicename,omitempty"` /** * The cname of the gslb service. - */ + */ Cnameentry string `json:"cnameentry,omitempty"` /** * IP Address of the gslb service. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number of the gslb service. - */ + */ Port int `json:"port,omitempty"` /** * Service type. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * State of the gslb service. - */ + */ State string `json:"state,omitempty"` /** * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. - */ + */ Sitename string `json:"sitename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbsite_gslbservicegroup_binding.go b/resource/config/gslbsite_gslbservicegroup_binding.go similarity index 96% rename from resource/config/gslb/gslbsite_gslbservicegroup_binding.go rename to resource/config/gslbsite_gslbservicegroup_binding.go index 79944f9..2101fc1 100644 --- a/resource/config/gslb/gslbsite_gslbservicegroup_binding.go +++ b/resource/config/gslbsite_gslbservicegroup_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservicegroup that can be bound to gslbsite. -*/ + */ type Gslbsitegslbservicegroupbinding struct { /** * Servicegroup name. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Service type. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. - */ + */ Sitename string `json:"sitename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbsite_gslbservicegroupmember_binding.go b/resource/config/gslbsite_gslbservicegroupmember_binding.go similarity index 95% rename from resource/config/gslb/gslbsite_gslbservicegroupmember_binding.go rename to resource/config/gslbsite_gslbservicegroupmember_binding.go index c23d483..4eedf6f 100644 --- a/resource/config/gslb/gslbsite_gslbservicegroupmember_binding.go +++ b/resource/config/gslbsite_gslbservicegroupmember_binding.go @@ -12,38 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservicegroupmember that can be bound to gslbsite. -*/ + */ type Gslbsitegslbservicegroupmemberbinding struct { /** * Servicegroup name. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * IP Address of the gslb service. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number of the gslb service. - */ + */ Port int `json:"port,omitempty"` /** * Service type. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * State of the gslb service. - */ + */ State string `json:"state,omitempty"` /** * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. - */ + */ Sitename string `json:"sitename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbsite_service_binding.go b/resource/config/gslbsite_service_binding.go similarity index 95% rename from resource/config/gslb/gslbsite_service_binding.go rename to resource/config/gslbsite_service_binding.go index df2bd1a..d0bf432 100644 --- a/resource/config/gslb/gslbsite_service_binding.go +++ b/resource/config/gslbsite_service_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the service that can be bound to gslbsite. -*/ + */ type Gslbsiteservicebinding struct { /** * Service name. - */ + */ Servicename string `json:"servicename,omitempty"` /** * The cname of the gslb service. - */ + */ Cnameentry string `json:"cnameentry,omitempty"` /** * IP Address of the gslb service. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number of the gslb service. - */ + */ Port int32 `json:"port,omitempty"` /** * Service type. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * State of the gslb service. - */ + */ State string `json:"state,omitempty"` /** * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. - */ + */ Sitename string `json:"sitename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbsite_servicegroup_binding.go b/resource/config/gslbsite_servicegroup_binding.go similarity index 96% rename from resource/config/gslb/gslbsite_servicegroup_binding.go rename to resource/config/gslbsite_servicegroup_binding.go index 53932bb..0aac1a6 100644 --- a/resource/config/gslb/gslbsite_servicegroup_binding.go +++ b/resource/config/gslbsite_servicegroup_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the servicegroup that can be bound to gslbsite. -*/ + */ type Gslbsiteservicegroupbinding struct { /** * Servicegroup name. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Service type. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. - */ + */ Sitename string `json:"sitename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbsite_servicegroupmember_binding.go b/resource/config/gslbsite_servicegroupmember_binding.go similarity index 95% rename from resource/config/gslb/gslbsite_servicegroupmember_binding.go rename to resource/config/gslbsite_servicegroupmember_binding.go index cdb1915..d7cb9ad 100644 --- a/resource/config/gslb/gslbsite_servicegroupmember_binding.go +++ b/resource/config/gslbsite_servicegroupmember_binding.go @@ -12,38 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the servicegroupmember that can be bound to gslbsite. -*/ + */ type Gslbsiteservicegroupmemberbinding struct { /** * Servicegroup name. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * IP Address of the gslb service. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number of the gslb service. - */ + */ Port int32 `json:"port,omitempty"` /** * Service type. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * State of the gslb service. - */ + */ State string `json:"state,omitempty"` /** * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. - */ + */ Sitename string `json:"sitename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbsyncstatus.go b/resource/config/gslbsyncstatus.go similarity index 97% rename from resource/config/gslb/gslbsyncstatus.go rename to resource/config/gslbsyncstatus.go index 77eddbf..c82d36b 100644 --- a/resource/config/gslb/gslbsyncstatus.go +++ b/resource/config/gslbsyncstatus.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for sync status resource. -*/ + */ type Gslbsyncstatus struct { /** * sync status summary to be displayed in one line (Success/Failure), in case of Failure stating reason for failure - */ + */ Summary bool `json:"summary,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/gslb/gslbvserver.go b/resource/config/gslbvserver.go similarity index 87% rename from resource/config/gslb/gslbvserver.go rename to resource/config/gslbvserver.go index 162841d..c37b8bc 100644 --- a/resource/config/gslb/gslbvserver.go +++ b/resource/config/gslbvserver.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Configuration for Global Server Load Balancing Virtual Server resource. -*/ + */ type Gslbvserver struct { /** * Name for the GSLB virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the virtual server is created. @@ -28,197 +28,196 @@ type Gslbvserver struct { Name string `json:"name,omitempty"` /** * Protocol used by services bound to the virtual server. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * The IP type for this GSLB vserver. - */ + */ Iptype string `json:"iptype,omitempty"` /** * DNS record type to associate with the GSLB virtual server's domain name. - */ + */ Dnsrecordtype string `json:"dnsrecordtype,omitempty"` /** * Load balancing method for the GSLB virtual server. - */ + */ Lbmethod string `json:"lbmethod,omitempty"` /** * A non zero value enables the feature whose minimum value is 2 minutes. The feature can be disabled by setting the value to zero. The created session is in effect for a specific client per domain. - */ + */ Backupsessiontimeout int `json:"backupsessiontimeout,omitempty"` /** * Backup load balancing method. Becomes operational if the primary load balancing method fails or cannot be used. Valid only if the primary method is based on either round-trip time (RTT) or static proximity. - */ + */ Backuplbmethod string `json:"backuplbmethod,omitempty"` /** * IPv4 network mask for use in the SOURCEIPHASH load balancing method. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Number of bits to consider, in an IPv6 source IP address, for creating the hash that is required by the SOURCEIPHASH load balancing method. - */ + */ V6netmasklen int `json:"v6netmasklen,omitempty"` /** * Expression, or name of a named expression, against which traffic is evaluated. This field is applicable only if gslb method or gslb backup method are set to API. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** * Site selection tolerance, in milliseconds, for implementing the RTT load balancing method. If a site's RTT deviates from the lowest RTT by more than the specified tolerance, the site is not considered when the Citrix ADC makes a GSLB decision. The appliance implements the round robin method of global server load balancing between sites whose RTT values are within the specified tolerance. If the tolerance is 0 (zero), the appliance always sends clients the IP address of the site with the lowest RTT. - */ + */ Tolerance int `json:"tolerance,omitempty"` /** - * Use source IP address based persistence for the virtual server. + * Use source IP address based persistence for the virtual server. After the load balancing method selects a service for the first packet, the IP address received in response to the DNS query is used for subsequent requests from the same client. */ Persistencetype string `json:"persistencetype,omitempty"` /** * The persistence ID for the GSLB virtual server. The ID is a positive integer that enables GSLB sites to identify the GSLB virtual server, and is required if source IP address based or spill over based persistence is enabled on the virtual server. - */ + */ Persistenceid int `json:"persistenceid,omitempty"` /** * The optional IPv4 network mask applied to IPv4 addresses to establish source IP address based persistence. - */ + */ Persistmask string `json:"persistmask,omitempty"` /** * Number of bits to consider in an IPv6 source IP address when creating source IP address based persistence sessions. - */ + */ V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Idle time, in minutes, after which a persistence entry is cleared. - */ + */ Timeout int `json:"timeout,omitempty"` /** * Send clients an empty DNS response when the GSLB virtual server is DOWN. - */ + */ Edr string `json:"edr,omitempty"` /** * If enabled, respond with EDNS Client Subnet (ECS) option in the response for a DNS query with ECS. The ECS address will be used for persistence and spillover persistence (if enabled) instead of the LDNS address. Persistence mask is ignored if ECS is enabled. - */ + */ Ecs string `json:"ecs,omitempty"` /** * Validate if ECS address is a private or unroutable address and in such cases, use the LDNS IP. - */ + */ Ecsaddrvalidation string `json:"ecsaddrvalidation,omitempty"` /** * Include multiple IP addresses in the DNS responses sent to clients. - */ + */ Mir string `json:"mir,omitempty"` /** * Continue to direct traffic to the backup chain even after the primary GSLB virtual server returns to the UP state. Used when spillover is configured for the virtual server. - */ + */ Disableprimaryondown string `json:"disableprimaryondown,omitempty"` /** * Specify if the appliance should consider the service count, service weights, or ignore both when using weight-based load balancing methods. The state of the number of services bound to the virtual server help the appliance to select the service. - */ + */ Dynamicweight string `json:"dynamicweight,omitempty"` /** * State of the GSLB virtual server. - */ + */ State string `json:"state,omitempty"` /** - * If the primary state of all bound GSLB services is DOWN, consider the effective states of all the GSLB services, obtained through the Metrics Exchange Protocol (MEP), when determining the state of the GSLB virtual server. To consider the effective state, set the parameter to STATE_ONLY. To disregard the effective state, set the parameter to NONE. + * If the primary state of all bound GSLB services is DOWN, consider the effective states of all the GSLB services, obtained through the Metrics Exchange Protocol (MEP), when determining the state of the GSLB virtual server. To consider the effective state, set the parameter to STATE_ONLY. To disregard the effective state, set the parameter to NONE. The effective state of a GSLB service is the ability of the corresponding virtual server to serve traffic. The effective state of the load balancing virtual server, which is transferred to the GSLB service, is UP even if only one virtual server in the backup chain of virtual servers is in the UP state. */ Considereffectivestate string `json:"considereffectivestate,omitempty"` /** * Any comments that you might want to associate with the GSLB virtual server. - */ + */ Comment string `json:"comment,omitempty"` /** * Type of threshold that, when exceeded, triggers spillover. Available settings function as follows: * CONNECTION - Spillover occurs when the number of client connections exceeds the threshold. * DYNAMICCONNECTION - Spillover occurs when the number of client connections at the GSLB virtual server exceeds the sum of the maximum client (Max Clients) settings for bound GSLB services. Do not specify a spillover threshold for this setting, because the threshold is implied by the Max Clients settings of the bound GSLB services. - * BANDWIDTH - Spillover occurs when the bandwidth consumed by the GSLB virtual server's incoming and outgoing traffic exceeds the threshold. - * HEALTH - Spillover occurs when the percentage of weights of the GSLB services that are UP drops below the threshold. For example, if services gslbSvc1, gslbSvc2, and gslbSvc3 are bound to a virtual server, with weights 1, 2, and 3, and the spillover threshold is 50%, spillover occurs if gslbSvc1 and gslbSvc3 or gslbSvc2 and gslbSvc3 transition to DOWN. + * BANDWIDTH - Spillover occurs when the bandwidth consumed by the GSLB virtual server's incoming and outgoing traffic exceeds the threshold. + * HEALTH - Spillover occurs when the percentage of weights of the GSLB services that are UP drops below the threshold. For example, if services gslbSvc1, gslbSvc2, and gslbSvc3 are bound to a virtual server, with weights 1, 2, and 3, and the spillover threshold is 50%, spillover occurs if gslbSvc1 and gslbSvc3 or gslbSvc2 and gslbSvc3 transition to DOWN. * NONE - Spillover does not occur. */ Somethod string `json:"somethod,omitempty"` /** * If spillover occurs, maintain source IP address based persistence for both primary and backup GSLB virtual servers. - */ + */ Sopersistence string `json:"sopersistence,omitempty"` /** * Timeout for spillover persistence, in minutes. - */ + */ Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` /** * Threshold at which spillover occurs. Specify an integer for the CONNECTION spillover method, a bandwidth value in kilobits per second for the BANDWIDTH method (do not enter the units), or a percentage for the HEALTH method (do not enter the percentage symbol). - */ + */ Sothreshold int `json:"sothreshold,omitempty"` /** * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists - */ + */ Sobackupaction string `json:"sobackupaction,omitempty"` /** * Enable logging appflow flow information - */ + */ Appflowlog string `json:"appflowlog,omitempty"` /** * Name of the backup GSLB virtual server to which the appliance should to forward requests if the status of the primary GSLB virtual server is down or exceeds its spillover threshold. - */ + */ Backupvserver string `json:"backupvserver,omitempty"` /** * Name of the GSLB service for which to change the weight. - */ + */ Servicename string `json:"servicename,omitempty"` /** * Weight to assign to the GSLB service. - */ + */ Weight int `json:"weight,omitempty"` /** * Domain name for which to change the time to live (TTL) and/or backup service IP address. - */ + */ Domainname string `json:"domainname,omitempty"` /** * Time to live (TTL) for the domain. - */ + */ Ttl int `json:"ttl,omitempty"` /** * The IP address of the backup service for the specified domain name. Used when all the services bound to the domain are down, or when the backup chain of virtual servers is down. - */ + */ Backupip string `json:"backupip,omitempty"` /** * The cookie domain for the GSLB site. Used when inserting the GSLB site cookie in the HTTP response. - */ + */ Cookiedomain string `json:"cookie_domain,omitempty"` /** * Timeout, in minutes, for the GSLB site cookie. - */ + */ Cookietimeout int `json:"cookietimeout,omitempty"` /** * TTL, in seconds, for all internally created site domains (created when a site prefix is configured on a GSLB service) that are associated with this virtual server. - */ + */ Sitedomainttl int `json:"sitedomainttl,omitempty"` /** * New name for the GSLB virtual server. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Curstate string `json:"curstate,omitempty"` - Status string `json:"status,omitempty"` - Lbrrreason string `json:"lbrrreason,omitempty"` - Iscname string `json:"iscname,omitempty"` - Sitepersistence string `json:"sitepersistence,omitempty"` - Totalservices string `json:"totalservices,omitempty"` - Activeservices string `json:"activeservices,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Curstate string `json:"curstate,omitempty"` + Status string `json:"status,omitempty"` + Lbrrreason string `json:"lbrrreason,omitempty"` + Iscname string `json:"iscname,omitempty"` + Sitepersistence string `json:"sitepersistence,omitempty"` + Totalservices string `json:"totalservices,omitempty"` + Activeservices string `json:"activeservices,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` - Health string `json:"health,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority string `json:"priority,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Type string `json:"type,omitempty"` - Vsvrbindsvcip string `json:"vsvrbindsvcip,omitempty"` - Vsvrbindsvcport string `json:"vsvrbindsvcport,omitempty"` - Servername string `json:"servername,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - + Health string `json:"health,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Type string `json:"type,omitempty"` + Vsvrbindsvcip string `json:"vsvrbindsvcip,omitempty"` + Vsvrbindsvcport string `json:"vsvrbindsvcport,omitempty"` + Servername string `json:"servername,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` } diff --git a/resource/config/gslb/gslbvserver_binding.go b/resource/config/gslbvserver_binding.go similarity index 88% rename from resource/config/gslb/gslbvserver_binding.go rename to resource/config/gslbvserver_binding.go index e577308..d79bae1 100644 --- a/resource/config/gslb/gslbvserver_binding.go +++ b/resource/config/gslbvserver_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** -* Binding object which returns the resources bound to gslbvserver_binding. -*/ +* Binding object which returns the resources bound to gslbvserver_binding. + */ type Gslbvserverbinding struct { /** - * Name of the GSLB virtual server.
Minimum value = - */ + * Name of the GSLB virtual server.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_domain_binding.go b/resource/config/gslbvserver_domain_binding.go similarity index 96% rename from resource/config/gslb/gslbvserver_domain_binding.go rename to resource/config/gslbvserver_domain_binding.go index f558a36..04e07ac 100644 --- a/resource/config/gslb/gslbvserver_domain_binding.go +++ b/resource/config/gslbvserver_domain_binding.go @@ -12,50 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the domain that can be bound to gslbvserver. -*/ + */ type Gslbvserverdomainbinding struct { /** * Domain name for which to change the time to live (TTL) and/or backup service IP address. - */ + */ Domainname string `json:"domainname,omitempty"` /** * Time to live (TTL) for the domain. - */ + */ Ttl int `json:"ttl,omitempty"` /** * The IP address of the backup service for the specified domain name. Used when all the services bound to the domain are down, or when the backup chain of virtual servers is down. - */ + */ Backupip string `json:"backupip,omitempty"` /** * The cookie domain for the GSLB site. Used when inserting the GSLB site cookie in the HTTP response. - */ + */ Cookiedomain string `json:"cookie_domain,omitempty"` /** * Timeout, in minutes, for the GSLB site cookie. - */ + */ Cookietimeout int `json:"cookietimeout,omitempty"` /** * TTL, in seconds, for all internally created site domains (created when a site prefix is configured on a GSLB service) that are associated with this virtual server. - */ + */ Sitedomainttl int `json:"sitedomainttl,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` /** * The IP address of the backup service for the specified domain name. Used when all the services bound to the domain are down, or when the backup chain of virtual servers is down. - */ + */ Backupipflag bool `json:"backupipflag,omitempty"` /** * The cookie domain for the GSLB site. Used when inserting the GSLB site cookie in the HTTP response. - */ + */ Cookiedomainflag bool `json:"cookie_domainflag,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_gslbservice_binding.go b/resource/config/gslbvserver_gslbservice_binding.go similarity index 96% rename from resource/config/gslb/gslbvserver_gslbservice_binding.go rename to resource/config/gslbvserver_gslbservice_binding.go index 1cb36b1..6969b6c 100644 --- a/resource/config/gslb/gslbvserver_gslbservice_binding.go +++ b/resource/config/gslbvserver_gslbservice_binding.go @@ -12,86 +12,84 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservice that can be bound to gslbvserver. -*/ + */ type Gslbvservergslbservicebinding struct { /** * Name of the GSLB service for which to change the weight. - */ + */ Servicename string `json:"servicename,omitempty"` /** * Weight to assign to the GSLB service. - */ + */ Weight int `json:"weight,omitempty"` /** * The cname of the gslb service. - */ + */ Cnameentry string `json:"cnameentry,omitempty"` /** * IP address. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number. - */ + */ Port int `json:"port,omitempty"` /** * Protocol used by services bound to the GSLBvirtual server. - */ + */ Gslbboundsvctype string `json:"gslbboundsvctype,omitempty"` /** * State of the gslb vserver. - */ + */ Curstate string `json:"curstate,omitempty"` /** * Weight obtained by the virtue of bound service count or weight - */ + */ Dynamicconfwt int `json:"dynamicconfwt,omitempty"` /** - * Cumulative weight is the weight of GSLB service considering both its configured weight and dynamic weight. It is equal to product of dynamic weight and configured weight of the gslb service - */ + * Cumulative weight is the weight of GSLB service considering both its configured weight and dynamic weight. It is equal to product of dynamic weight and configured weight of the gslb service + */ Cumulativeweight int `json:"cumulativeweight,omitempty"` /** * Effective state of the gslb svc - */ + */ Svreffgslbstate string `json:"svreffgslbstate,omitempty"` /** * Indicates if gslb svc has reached threshold - */ + */ Gslbthreshold int `json:"gslbthreshold,omitempty"` /** * The target site to be returned in the DNS response when a policy is successfully evaluated against the incoming DNS request. Target site is specified in dotted notation with up to 6 qualifiers. Wildcard `*' is accepted as a valid qualifier token. - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * Tells whether threshold exceeded for this service participating in CUSTOMLB - */ + */ Thresholdvalue int `json:"thresholdvalue,omitempty"` /** * is cname feature set on vserver - */ + */ Iscname string `json:"iscname,omitempty"` /** * Domain name for which to change the time to live (TTL) and/or backup service IP address. - */ + */ Domainname string `json:"domainname,omitempty"` /** * This field is introduced for displaying the cookie in cluster setup. - */ + */ Sitepersistcookie string `json:"sitepersistcookie,omitempty"` /** * Type of Site Persistence set on the bound service - */ + */ Svcsitepersistence string `json:"svcsitepersistence,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_gslbservicegroup_binding.go b/resource/config/gslbvserver_gslbservicegroup_binding.go similarity index 96% rename from resource/config/gslb/gslbvserver_gslbservicegroup_binding.go rename to resource/config/gslbvserver_gslbservicegroup_binding.go index 503f88c..e5b0744 100644 --- a/resource/config/gslb/gslbvserver_gslbservicegroup_binding.go +++ b/resource/config/gslbvserver_gslbservicegroup_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservicegroup that can be bound to gslbvserver. -*/ + */ type Gslbvservergslbservicegroupbinding struct { /** * The GSLB service group name bound to the selected GSLB virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_gslbservicegroupmember_binding.go b/resource/config/gslbvserver_gslbservicegroupmember_binding.go similarity index 96% rename from resource/config/gslb/gslbvserver_gslbservicegroupmember_binding.go rename to resource/config/gslbvserver_gslbservicegroupmember_binding.go index ed0e4b7..0f5761e 100644 --- a/resource/config/gslb/gslbvserver_gslbservicegroupmember_binding.go +++ b/resource/config/gslbvserver_gslbservicegroupmember_binding.go @@ -12,70 +12,68 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the gslbservicegroupmember that can be bound to gslbvserver. -*/ + */ type Gslbvservergslbservicegroupmemberbinding struct { /** * The GSLB service group name bound to the selected GSLB virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * IP address. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number. - */ + */ Port int `json:"port,omitempty"` /** * Protocol used by services bound to the virtual server. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * State of the gslb vserver. - */ + */ Curstate string `json:"curstate,omitempty"` /** * Weight to assign to the GSLB service. - */ + */ Weight int `json:"weight,omitempty"` /** * Specify if the appliance should consider the service count, service weights, or ignore both when using weight-based load balancing methods. The state of the number of services bound to the virtual server help the appliance to select the service. - */ + */ Dynamicweight string `json:"dynamicweight,omitempty"` /** * The target site to be returned in the DNS response when a policy is successfully evaluated against the incoming DNS request. Target site is specified in dotted notation with up to 6 qualifiers. Wildcard `*' is accepted as a valid qualifier token. - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * Effective state of the gslb svc - */ + */ Svreffgslbstate string `json:"svreffgslbstate,omitempty"` /** * Tells whether threshold exceeded for this service participating in CUSTOMLB - */ + */ Thresholdvalue int `json:"thresholdvalue,omitempty"` /** * Indicates if gslb svc has reached threshold - */ + */ Gslbthreshold int `json:"gslbthreshold,omitempty"` /** * This field is introduced for displaying the cookie in cluster setup. - */ + */ Sitepersistcookie string `json:"sitepersistcookie,omitempty"` /** * Type of Site Persistence set on the bound service - */ + */ Svcsitepersistence string `json:"svcsitepersistence,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_policy_binding.go b/resource/config/gslbvserver_policy_binding.go similarity index 98% rename from resource/config/gslb/gslbvserver_policy_binding.go rename to resource/config/gslbvserver_policy_binding.go index dc95abc..07d53ae 100644 --- a/resource/config/gslb/gslbvserver_policy_binding.go +++ b/resource/config/gslbvserver_policy_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the policy that can be bound to gslbvserver. -*/ + */ type Gslbvserverpolicybinding struct { /** * Name of the policy bound to the GSLB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. @@ -40,16 +40,14 @@ type Gslbvserverpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Type string `json:"type,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_service_binding.go b/resource/config/gslbvserver_service_binding.go similarity index 96% rename from resource/config/gslb/gslbvserver_service_binding.go rename to resource/config/gslbvserver_service_binding.go index fad614a..25714d4 100644 --- a/resource/config/gslb/gslbvserver_service_binding.go +++ b/resource/config/gslbvserver_service_binding.go @@ -12,86 +12,84 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the service that can be bound to gslbvserver. -*/ + */ type Gslbvserverservicebinding struct { /** * Name of the GSLB service for which to change the weight. - */ + */ Servicename string `json:"servicename,omitempty"` /** * Weight to assign to the GSLB service. - */ + */ Weight uint32 `json:"weight,omitempty"` /** * The cname of the gslb service. - */ + */ Cnameentry string `json:"cnameentry,omitempty"` /** * IP address. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number. - */ + */ Port int32 `json:"port,omitempty"` /** * Protocol used by services bound to the GSLBvirtual server. - */ + */ Gslbboundsvctype string `json:"gslbboundsvctype,omitempty"` /** * State of the gslb vserver. - */ + */ Curstate string `json:"curstate,omitempty"` /** * Weight obtained by the virtue of bound service count or weight - */ + */ Dynamicconfwt uint32 `json:"dynamicconfwt,omitempty"` /** - * Cumulative weight is the weight of GSLB service considering both its configured weight and dynamic weight. It is equal to product of dynamic weight and configured weight of the gslb service - */ + * Cumulative weight is the weight of GSLB service considering both its configured weight and dynamic weight. It is equal to product of dynamic weight and configured weight of the gslb service + */ Cumulativeweight uint32 `json:"cumulativeweight,omitempty"` /** * Effective state of the gslb svc - */ + */ Svreffgslbstate string `json:"svreffgslbstate,omitempty"` /** * Indicates if gslb svc has reached threshold - */ + */ Gslbthreshold int32 `json:"gslbthreshold,omitempty"` /** * The target site to be returned in the DNS response when a policy is successfully evaluated against the incoming DNS request. Target site is specified in dotted notation with up to 6 qualifiers. Wildcard `*' is accepted as a valid qualifier token. - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * Tells whether threshold exceeded for this service participating in CUSTOMLB - */ + */ Thresholdvalue int32 `json:"thresholdvalue,omitempty"` /** * is cname feature set on vserver - */ + */ Iscname string `json:"iscname,omitempty"` /** * Domain name for which to change the time to live (TTL) and/or backup service IP address. - */ + */ Domainname string `json:"domainname,omitempty"` /** * This field is introduced for displaying the cookie in cluster setup. - */ + */ Sitepersistcookie string `json:"sitepersistcookie,omitempty"` /** * Type of Site Persistence set on the bound service - */ + */ Svcsitepersistence string `json:"svcsitepersistence,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_servicegroup_binding.go b/resource/config/gslbvserver_servicegroup_binding.go similarity index 96% rename from resource/config/gslb/gslbvserver_servicegroup_binding.go rename to resource/config/gslbvserver_servicegroup_binding.go index 11dfefb..b0b9abd 100644 --- a/resource/config/gslb/gslbvserver_servicegroup_binding.go +++ b/resource/config/gslbvserver_servicegroup_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the servicegroup that can be bound to gslbvserver. -*/ + */ type Gslbvserverservicegroupbinding struct { /** * The GSLB service group name bound to the selected GSLB virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_servicegroupmember_binding.go b/resource/config/gslbvserver_servicegroupmember_binding.go similarity index 96% rename from resource/config/gslb/gslbvserver_servicegroupmember_binding.go rename to resource/config/gslbvserver_servicegroupmember_binding.go index 1884999..dd3dd38 100644 --- a/resource/config/gslb/gslbvserver_servicegroupmember_binding.go +++ b/resource/config/gslbvserver_servicegroupmember_binding.go @@ -12,70 +12,68 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the servicegroupmember that can be bound to gslbvserver. -*/ + */ type Gslbvserverservicegroupmemberbinding struct { /** * The GSLB service group name bound to the selected GSLB virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * IP address. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number. - */ + */ Port int32 `json:"port,omitempty"` /** * Protocol used by services bound to the virtual server. - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * State of the gslb vserver. - */ + */ Curstate string `json:"curstate,omitempty"` /** * Weight to assign to the GSLB service. - */ + */ Weight uint32 `json:"weight,omitempty"` /** * Specify if the appliance should consider the service count, service weights, or ignore both when using weight-based load balancing methods. The state of the number of services bound to the virtual server help the appliance to select the service. - */ + */ Dynamicweight string `json:"dynamicweight,omitempty"` /** * The target site to be returned in the DNS response when a policy is successfully evaluated against the incoming DNS request. Target site is specified in dotted notation with up to 6 qualifiers. Wildcard `*' is accepted as a valid qualifier token. - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * Effective state of the gslb svc - */ + */ Svreffgslbstate string `json:"svreffgslbstate,omitempty"` /** * Tells whether threshold exceeded for this service participating in CUSTOMLB - */ + */ Thresholdvalue int32 `json:"thresholdvalue,omitempty"` /** * Indicates if gslb svc has reached threshold - */ + */ Gslbthreshold int32 `json:"gslbthreshold,omitempty"` /** * This field is introduced for displaying the cookie in cluster setup. - */ + */ Sitepersistcookie string `json:"sitepersistcookie,omitempty"` /** * Type of Site Persistence set on the bound service - */ + */ Svcsitepersistence string `json:"svcsitepersistence,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/gslb/gslbvserver_spilloverpolicy_binding.go b/resource/config/gslbvserver_spilloverpolicy_binding.go similarity index 98% rename from resource/config/gslb/gslbvserver_spilloverpolicy_binding.go rename to resource/config/gslbvserver_spilloverpolicy_binding.go index 3ae02b0..d6a8d13 100644 --- a/resource/config/gslb/gslbvserver_spilloverpolicy_binding.go +++ b/resource/config/gslbvserver_spilloverpolicy_binding.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package gslb +package config /** * Binding class showing the spilloverpolicy that can be bound to gslbvserver. -*/ + */ type Gslbvserverspilloverpolicybinding struct { /** * Name of the policy bound to the GSLB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. @@ -40,16 +40,14 @@ type Gslbvserverspilloverpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Type string `json:"type,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Name of the virtual server on which to perform the binding operation. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ha/hafailover.go b/resource/config/hafailover.go similarity index 96% rename from resource/config/ha/hafailover.go rename to resource/config/hafailover.go index 4f56205..6412818 100644 --- a/resource/config/ha/hafailover.go +++ b/resource/config/hafailover.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Configuration for failover resource. -*/ + */ type Hafailover struct { /** * Force a failover without prompting for confirmation. - */ + */ Force bool `json:"force,omitempty"` - } diff --git a/resource/config/ha/hafiles.go b/resource/config/hafiles.go similarity index 85% rename from resource/config/ha/hafiles.go rename to resource/config/hafiles.go index 4cb75fe..936d0b3 100644 --- a/resource/config/ha/hafiles.go +++ b/resource/config/hafiles.go @@ -12,24 +12,23 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Configuration for files resource. -*/ + */ type Hafiles struct { /** * Specify one of the following modes of synchronization. - * all - Synchronize files related to system configuration, Access Gateway bookmarks, SSL certificates, SSL CRL lists, HTML injection scripts, and Application Firewall XML objects. + * all - Synchronize files related to system configuration, Access Gateway bookmarks, SSL certificates, SSL CRL lists, HTML injection scripts, and Application Firewall XML objects. * bookmarks - Synchronize all Access Gateway bookmarks. - * ssl - Synchronize all certificates, keys, and CRLs for the SSL feature. - * htmlinjection. Synchronize all scripts configured for the HTML injection feature. - * imports. Synchronize all XML objects (for example, WSDLs, schemas, error pages) configured for the application firewall. - * misc - Synchronize all license files and the rc.conf file. + * ssl - Synchronize all certificates, keys, and CRLs for the SSL feature. + * htmlinjection. Synchronize all scripts configured for the HTML injection feature. + * imports. Synchronize all XML objects (for example, WSDLs, schemas, error pages) configured for the application firewall. + * misc - Synchronize all license files and the rc.conf file. * all_plus_misc - Synchronize files related to system configuration, Access Gateway bookmarks, SSL certificates, SSL CRL lists, HTML injection scripts, application firewall XML objects, licenses, and the rc.conf file. */ Mode []string `json:"mode,omitempty"` - } diff --git a/resource/config/ha/hanode.go b/resource/config/hanode.go similarity index 82% rename from resource/config/ha/hanode.go rename to resource/config/hanode.go index 790170b..b892b3e 100644 --- a/resource/config/ha/hanode.go +++ b/resource/config/hanode.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Configuration for node resource. -*/ + */ type Hanode struct { /** * Number that uniquely identifies the node. For self node, it will always be 0. Peer node values can range from 1-64. - */ + */ Id int `json:"id,omitempty"` /** * The NSIP or NSIP6 address of the node to be added for an HA configuration. This setting is neither propagated nor synchronized. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * This option is required if the HA nodes reside on different networks. When this mode is enabled, the following independent network entities and configurations are neither propagated nor synced to the other node: MIPs, SNIPs, VLANs, routes (except LLB routes), route monitors, RNAT rules (except any RNAT rule with a VIP as the NAT IP), and dynamic routing configurations. They are maintained independently on each node. - */ + */ Inc string `json:"inc,omitempty"` /** * The HA status of the node. The HA status STAYSECONDARY is used to force the secondary device stay as secondary independent of the state of the Primary device. For example, in an existing HA setup, the Primary node has to be upgraded and this process would take few seconds. During the upgradation, it is possible that the Primary node may suffer from a downtime for a few seconds. However, the Secondary should not take over as the Primary node. Thus, the Secondary node should remain as Secondary even if there is a failure in the Primary node. @@ -39,11 +39,11 @@ type Hanode struct { Hastatus string `json:"hastatus,omitempty"` /** * Automatically maintain synchronization by duplicating the configuration of the primary node on the secondary node. This setting is not propagated. Automatic synchronization requires that this setting be enabled (the default) on the current secondary node. Synchronization uses TCP port 3010. - */ + */ Hasync string `json:"hasync,omitempty"` /** * Automatically propagate all commands from the primary to the secondary node, except the following: - * All HA configuration related commands. For example, add ha node, set ha node, and bind ha node. + * All HA configuration related commands. For example, add ha node, set ha node, and bind ha node. * All Interface related commands. For example, set interface and unset interface. * All channels related commands. For example, add channel, set channel, and bind channel. The propagated command is executed on the secondary node before it is executed on the primary. If command propagation fails, or if command execution fails on the secondary, the primary node executes the command and logs an error. Command propagation uses port 3010. @@ -52,51 +52,50 @@ type Hanode struct { Haprop string `json:"haprop,omitempty"` /** * Interval, in milliseconds, between heartbeat messages sent to the peer node. The heartbeat messages are UDP packets sent to port 3003 of the peer node. - */ + */ Hellointerval int `json:"hellointerval,omitempty"` /** * Number of seconds after which a peer node is marked DOWN if heartbeat messages are not received from the peer node. - */ + */ Deadinterval int `json:"deadinterval,omitempty"` /** * Keep one node primary if both nodes fail the health check, so that a partially available node can back up data and handle traffic. This mode is set independently on each node. - */ + */ Failsafe string `json:"failsafe,omitempty"` /** * Max number of flips allowed before becoming sticky primary - */ + */ Maxflips int `json:"maxflips,omitempty"` /** * Interval after which flipping of node states can again start - */ + */ Maxfliptime int `json:"maxfliptime,omitempty"` /** * Vlan on which HA related communication is sent. This include sync, propagation , connection mirroring , LB persistency config sync, persistent session sync and session state sync. However HA heartbeats can go all interfaces. - */ + */ Syncvlan int `json:"syncvlan,omitempty"` /** * strict mode flag for sync status - */ + */ Syncstatusstrictmode string `json:"syncstatusstrictmode,omitempty"` //------- Read only Parameter ---------; - Name string `json:"name,omitempty"` - Flags string `json:"flags,omitempty"` - State string `json:"state,omitempty"` - Enaifaces string `json:"enaifaces,omitempty"` - Disifaces string `json:"disifaces,omitempty"` - Hamonifaces string `json:"hamonifaces,omitempty"` - Haheartbeatifaces string `json:"haheartbeatifaces,omitempty"` - Pfifaces string `json:"pfifaces,omitempty"` - Ifaces string `json:"ifaces,omitempty"` - Netmask string `json:"netmask,omitempty"` - Ssl2 string `json:"ssl2,omitempty"` - Masterstatetime string `json:"masterstatetime,omitempty"` - Routemonitor string `json:"routemonitor,omitempty"` - Curflips string `json:"curflips,omitempty"` - Completedfliptime string `json:"completedfliptime,omitempty"` - Routemonitorstate string `json:"routemonitorstate,omitempty"` + Name string `json:"name,omitempty"` + Flags string `json:"flags,omitempty"` + State string `json:"state,omitempty"` + Enaifaces string `json:"enaifaces,omitempty"` + Disifaces string `json:"disifaces,omitempty"` + Hamonifaces string `json:"hamonifaces,omitempty"` + Haheartbeatifaces string `json:"haheartbeatifaces,omitempty"` + Pfifaces string `json:"pfifaces,omitempty"` + Ifaces string `json:"ifaces,omitempty"` + Netmask string `json:"netmask,omitempty"` + Ssl2 string `json:"ssl2,omitempty"` + Masterstatetime string `json:"masterstatetime,omitempty"` + Routemonitor string `json:"routemonitor,omitempty"` + Curflips string `json:"curflips,omitempty"` + Completedfliptime string `json:"completedfliptime,omitempty"` + Routemonitorstate string `json:"routemonitorstate,omitempty"` Hasyncfailurereason string `json:"hasyncfailurereason,omitempty"` - } diff --git a/resource/config/ha/hanode_binding.go b/resource/config/hanode_binding.go similarity index 96% rename from resource/config/ha/hanode_binding.go rename to resource/config/hanode_binding.go index 6bd4ee4..9fe1a0e 100644 --- a/resource/config/ha/hanode_binding.go +++ b/resource/config/hanode_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** -* Binding object which returns the resources bound to hanode_binding. -*/ +* Binding object which returns the resources bound to hanode_binding. + */ type Hanodebinding struct { /** * ID of the node whose HA settings you want to display. (The ID of the local node is always 0.).
Minimum value = 0
Maximum value = 64 - */ + */ Id int `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ha/hanode_ci_binding.go b/resource/config/hanode_ci_binding.go similarity index 96% rename from resource/config/ha/hanode_ci_binding.go rename to resource/config/hanode_ci_binding.go index 3293a79..695dbe4 100644 --- a/resource/config/ha/hanode_ci_binding.go +++ b/resource/config/hanode_ci_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Binding class showing the ci that can be bound to hanode. -*/ + */ type Hanodecibinding struct { /** * Enabled interfaces. - */ + */ Enaifaces string `json:"enaifaces,omitempty"` /** * Number that uniquely identifies the local node. The ID of the local node is always 0. - */ + */ Id int `json:"id,omitempty"` /** * A route that you want the Citrix ADC to monitor in its internal routing table. You can specify an IPv4 address or network, or an IPv6 address or network prefix. If you specify an IPv4 network address or IPv6 network prefix, the appliance monitors any route that matches the network or prefix. - */ + */ Routemonitor string `json:"routemonitor,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ha/hanode_fis_binding.go b/resource/config/hanode_fis_binding.go similarity index 96% rename from resource/config/ha/hanode_fis_binding.go rename to resource/config/hanode_fis_binding.go index 6227539..b2c893d 100644 --- a/resource/config/ha/hanode_fis_binding.go +++ b/resource/config/hanode_fis_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Binding class showing the fis that can be bound to hanode. -*/ + */ type Hanodefisbinding struct { /** * Node Name. - */ + */ Name string `json:"name,omitempty"` /** * Enabled interfaces. - */ + */ Enaifaces string `json:"enaifaces,omitempty"` /** * Number that uniquely identifies the local node. The ID of the local node is always 0. - */ + */ Id int `json:"id,omitempty"` /** * A route that you want the Citrix ADC to monitor in its internal routing table. You can specify an IPv4 address or network, or an IPv6 address or network prefix. If you specify an IPv4 network address or IPv6 network prefix, the appliance monitors any route that matches the network or prefix. - */ + */ Routemonitor string `json:"routemonitor,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ha/hanode_partialfailureinterfaces_binding.go b/resource/config/hanode_partialfailureinterfaces_binding.go similarity index 97% rename from resource/config/ha/hanode_partialfailureinterfaces_binding.go rename to resource/config/hanode_partialfailureinterfaces_binding.go index 30b0e19..68fc0d8 100644 --- a/resource/config/ha/hanode_partialfailureinterfaces_binding.go +++ b/resource/config/hanode_partialfailureinterfaces_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Binding class showing the partialfailureinterfaces that can be bound to hanode. -*/ + */ type Hanodepartialfailureinterfacesbinding struct { /** * Interfaces causing Partial Failure. - */ + */ Pfifaces string `json:"pfifaces,omitempty"` /** * Number that uniquely identifies the local node. The ID of the local node is always 0. - */ + */ Id int `json:"id,omitempty"` /** * A route that you want the Citrix ADC to monitor in its internal routing table. You can specify an IPv4 address or network, or an IPv6 address or network prefix. If you specify an IPv4 network address or IPv6 network prefix, the appliance monitors any route that matches the network or prefix. - */ + */ Routemonitor string `json:"routemonitor,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ha/hanode_routemonitor6_binding.go b/resource/config/hanode_routemonitor6_binding.go similarity index 95% rename from resource/config/ha/hanode_routemonitor6_binding.go rename to resource/config/hanode_routemonitor6_binding.go index 7093969..5e87b91 100644 --- a/resource/config/ha/hanode_routemonitor6_binding.go +++ b/resource/config/hanode_routemonitor6_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Binding class showing the routemonitor6 that can be bound to hanode. -*/ + */ type Hanoderoutemonitor6binding struct { /** * The IP address (IPv4 or IPv6). - */ + */ Routemonitor string `json:"routemonitor,omitempty"` /** * The netmask. - */ + */ Netmask string `json:"netmask,omitempty"` /** * The flags for this entry. - */ + */ Flags int `json:"flags,omitempty"` /** * State for route monitor - */ + */ Routemonitorstate string `json:"routemonitorstate,omitempty"` /** * Number that uniquely identifies the local node. The ID of the local node is always 0. - */ + */ Id int `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ha/hanode_routemonitor_binding.go b/resource/config/hanode_routemonitor_binding.go similarity index 95% rename from resource/config/ha/hanode_routemonitor_binding.go rename to resource/config/hanode_routemonitor_binding.go index 3ed3657..bfee46b 100644 --- a/resource/config/ha/hanode_routemonitor_binding.go +++ b/resource/config/hanode_routemonitor_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Binding class showing the routemonitor that can be bound to hanode. -*/ + */ type Hanoderoutemonitorbinding struct { /** * The IP address (IPv4 or IPv6). - */ + */ Routemonitor string `json:"routemonitor,omitempty"` /** * The netmask. - */ + */ Netmask string `json:"netmask,omitempty"` /** * The flags for this entry. - */ + */ Flags int `json:"flags,omitempty"` /** * State for route monitor - */ + */ Routemonitorstate string `json:"routemonitorstate,omitempty"` /** * Number that uniquely identifies the local node. The ID of the local node is always 0. - */ + */ Id int `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ha/hasync.go b/resource/config/hasync.go similarity index 96% rename from resource/config/ha/hasync.go rename to resource/config/hasync.go index 06be972..f22aada 100644 --- a/resource/config/ha/hasync.go +++ b/resource/config/hasync.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Configuration for sync resource. -*/ + */ type Hasync struct { /** * Force synchronization regardless of the state of HA propagation and HA synchronization on either node. - */ + */ Force bool `json:"force,omitempty"` /** * After synchronization, automatically save the configuration in the secondary node configuration file (ns.conf) without prompting for confirmation. - */ + */ Save string `json:"save,omitempty"` - } diff --git a/resource/config/ha/hasyncfailures.go b/resource/config/hasyncfailures.go similarity index 97% rename from resource/config/ha/hasyncfailures.go rename to resource/config/hasyncfailures.go index 12ad50e..31843e6 100644 --- a/resource/config/ha/hasyncfailures.go +++ b/resource/config/hasyncfailures.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ha +package config /** * Configuration for HA sync failures resource. -*/ + */ type Hasyncfailures struct { //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/ica/icaaccessprofile.go b/resource/config/icaaccessprofile.go similarity index 95% rename from resource/config/ica/icaaccessprofile.go rename to resource/config/icaaccessprofile.go index 64c68d3..ee36a67 100644 --- a/resource/config/ica/icaaccessprofile.go +++ b/resource/config/icaaccessprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Configuration for ica accessprofile resource. -*/ + */ type Icaaccessprofile struct { /** * Name for the ICA accessprofile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and @@ -31,46 +31,45 @@ type Icaaccessprofile struct { Name string `json:"name,omitempty"` /** * Allow Default access/Disable automatic connection of LPT ports from the client when the user logs on - */ + */ Connectclientlptports string `json:"connectclientlptports,omitempty"` /** * Allow Default access/Disable applications hosted on the server to play sounds through a sound device installed on the client computer, also allows or prevents users to record audio input - */ + */ Clientaudioredirection string `json:"clientaudioredirection,omitempty"` /** * Allow Default access/Disable file/data sharing via the Receiver for HTML5 - */ + */ Localremotedatasharing string `json:"localremotedatasharing,omitempty"` /** * Allow Default access/Disable the clipboard on the client device to be mapped to the clipboard on the server - */ + */ Clientclipboardredirection string `json:"clientclipboardredirection,omitempty"` /** * Allow Default access/Disable COM port redirection to and from the client - */ + */ Clientcomportredirection string `json:"clientcomportredirection,omitempty"` /** * Allow Default access/Disables drive redirection to and from the client - */ + */ Clientdriveredirection string `json:"clientdriveredirection,omitempty"` /** * Allow Default access/Disable client printers to be mapped to a server when a user logs on to a session - */ + */ Clientprinterredirection string `json:"clientprinterredirection,omitempty"` /** * Allow Default access/Disable the multistream feature for the specified users - */ + */ Multistream string `json:"multistream,omitempty"` /** * Allow Default access/Disable the redirection of USB devices to and from the client - */ + */ Clientusbdriveredirection string `json:"clientusbdriveredirection,omitempty"` //------- Read only Parameter ---------; - Refcnt string `json:"refcnt,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Refcnt string `json:"refcnt,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Isdefault string `json:"isdefault,omitempty"` - } diff --git a/resource/config/ica/icaaction.go b/resource/config/icaaction.go similarity index 88% rename from resource/config/ica/icaaction.go rename to resource/config/icaaction.go index adc77cd..eb9d192 100644 --- a/resource/config/ica/icaaction.go +++ b/resource/config/icaaction.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Configuration for ica action resource. -*/ + */ type Icaaction struct { /** * Name for the ICA action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the ICA action is added. @@ -28,11 +28,11 @@ type Icaaction struct { Name string `json:"name,omitempty"` /** * Name of the ica accessprofile to be associated with this action. - */ + */ Accessprofilename string `json:"accessprofilename,omitempty"` /** * Name of the ica latencyprofile to be associated with this action. - */ + */ Latencyprofilename string `json:"latencyprofilename,omitempty"` /** * New name for the ICA action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#),period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -43,11 +43,10 @@ type Icaaction struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Referencecount string `json:"referencecount,omitempty"` - Undefhits string `json:"undefhits,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Isdefault string `json:"isdefault,omitempty"` - + Undefhits string `json:"undefhits,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Isdefault string `json:"isdefault,omitempty"` } diff --git a/resource/config/ica/icaglobal_binding.go b/resource/config/icaglobal_binding.go similarity index 95% rename from resource/config/ica/icaglobal_binding.go rename to resource/config/icaglobal_binding.go index ef271cd..cb5b496 100644 --- a/resource/config/ica/icaglobal_binding.go +++ b/resource/config/icaglobal_binding.go @@ -12,14 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** -* Binding object which returns the resources bound to icaglobal_binding. -*/ +* Binding object which returns the resources bound to icaglobal_binding. + */ type Icaglobalbinding struct { - - -} \ No newline at end of file +} diff --git a/resource/config/ica/icaglobal_icapolicy_binding.go b/resource/config/icaglobal_icapolicy_binding.go similarity index 93% rename from resource/config/ica/icaglobal_icapolicy_binding.go rename to resource/config/icaglobal_icapolicy_binding.go index 089c3c0..3c60cd1 100644 --- a/resource/config/ica/icaglobal_icapolicy_binding.go +++ b/resource/config/icaglobal_icapolicy_binding.go @@ -12,39 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Binding class showing the icapolicy that can be bound to icaglobal. -*/ + */ type Icaglobalicapolicybinding struct { /** * Name of the ICA policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Global bind point for which to show detailed information about the policies bound to the bind point. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol int `json:"numpol,omitempty"` /** * Flow type of the bound ICA policy. - */ - Flowtype int `json:"flowtype,omitempty"` + */ + Flowtype int `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ica/icaglobal_policy_binding.go b/resource/config/icaglobal_policy_binding.go similarity index 93% rename from resource/config/ica/icaglobal_policy_binding.go rename to resource/config/icaglobal_policy_binding.go index 6aa434d..b098aff 100644 --- a/resource/config/ica/icaglobal_policy_binding.go +++ b/resource/config/icaglobal_policy_binding.go @@ -12,39 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Binding class showing the policy that can be bound to icaglobal. -*/ + */ type Icaglobalpolicybinding struct { /** * Name of the ICA policy. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Global bind point for which to show detailed information about the policies bound to the bind point. - */ + */ Type string `json:"type,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The number of policies bound to the bindpoint. - */ + */ Numpol uint32 `json:"numpol,omitempty"` /** * Flow type of the bound ICA policy. - */ - Flowtype uint32 `json:"flowtype,omitempty"` + */ + Flowtype uint32 `json:"flowtype,omitempty"` Globalbindtype string `json:"globalbindtype,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ica/icalatencyprofile.go b/resource/config/icalatencyprofile.go similarity index 93% rename from resource/config/ica/icalatencyprofile.go rename to resource/config/icalatencyprofile.go index b8020c0..81a66f4 100644 --- a/resource/config/ica/icalatencyprofile.go +++ b/resource/config/icalatencyprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Configuration for Profile for Latency monitoring resource. -*/ + */ type Icalatencyprofile struct { /** * Name for the ICA latencyprofile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and @@ -29,30 +29,29 @@ type Icalatencyprofile struct { Name string `json:"name,omitempty"` /** * Enable/Disable L7 Latency monitoring for L7 latency notifications - */ + */ L7latencymonitoring string `json:"l7latencymonitoring,omitempty"` /** * L7 Latency threshold factor. This is the factor by which the active latency should be greater than the minimum observed value to determine that the latency is high and may need to be reported - */ + */ L7latencythresholdfactor int `json:"l7latencythresholdfactor,omitempty"` /** * L7 Latency Wait time. This is the time for which the Citrix ADC waits after the threshold is exceeded before it sends out a Notification to the Insight Center. - */ + */ L7latencywaittime int `json:"l7latencywaittime,omitempty"` /** * L7 Latency Notify Interval. This is the interval at which the Citrix ADC sends out notifications to the Insight Center after the wait time has passed. - */ + */ L7latencynotifyinterval int `json:"l7latencynotifyinterval,omitempty"` /** * L7 Latency Max notify Count. This is the upper limit on the number of notifications sent to the Insight Center within an interval where the Latency is above the threshold. - */ + */ L7latencymaxnotifycount int `json:"l7latencymaxnotifycount,omitempty"` //------- Read only Parameter ---------; - Refcnt string `json:"refcnt,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Refcnt string `json:"refcnt,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Isdefault string `json:"isdefault,omitempty"` - } diff --git a/resource/config/ica/icaparameter.go b/resource/config/icaparameter.go similarity index 97% rename from resource/config/ica/icaparameter.go rename to resource/config/icaparameter.go index bff48f9..4d8d2b5 100644 --- a/resource/config/ica/icaparameter.go +++ b/resource/config/icaparameter.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Configuration for Config Parameters for NS ICA resource. -*/ + */ type Icaparameter struct { /** * Enable/Disable Session Reliability on HA failover. The default value is No - */ + */ Enablesronhafailover string `json:"enablesronhafailover,omitempty"` /** * Enable/Disable HDXInsight for Non NSAP ICA Sessions. The default value is Yes - */ + */ Hdxinsightnonnsap string `json:"hdxinsightnonnsap,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` - } diff --git a/resource/config/ica/icapolicy.go b/resource/config/icapolicy.go similarity index 93% rename from resource/config/ica/icapolicy.go rename to resource/config/icapolicy.go index eb8bf2a..26943f7 100644 --- a/resource/config/ica/icapolicy.go +++ b/resource/config/icapolicy.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Configuration for ICA policy resource. -*/ + */ type Icapolicy struct { /** * Name for the policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -36,15 +36,15 @@ type Icapolicy struct { Rule string `json:"rule,omitempty"` /** * Name of the ica action to be associated with this policy. - */ + */ Action string `json:"action,omitempty"` /** * Any type of information about this ICA policy. - */ + */ Comment string `json:"comment,omitempty"` /** * Name of the messagelog action to use for requests that match this policy. - */ + */ Logaction string `json:"logaction,omitempty"` /** * New name for the policy. Must begin with an ASCII alphabetic or underscore (_)character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), s @@ -56,9 +56,8 @@ type Icapolicy struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` + Hits string `json:"hits,omitempty"` Undefhits string `json:"undefhits,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/ica/icapolicy_binding.go b/resource/config/icapolicy_binding.go similarity index 95% rename from resource/config/ica/icapolicy_binding.go rename to resource/config/icapolicy_binding.go index b84e933..7d4b617 100644 --- a/resource/config/ica/icapolicy_binding.go +++ b/resource/config/icapolicy_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** -* Binding object which returns the resources bound to icapolicy_binding. -*/ +* Binding object which returns the resources bound to icapolicy_binding. + */ type Icapolicybinding struct { /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ica/icapolicy_crvserver_binding.go b/resource/config/icapolicy_crvserver_binding.go similarity index 96% rename from resource/config/ica/icapolicy_crvserver_binding.go rename to resource/config/icapolicy_crvserver_binding.go index a5b9597..b2281db 100644 --- a/resource/config/ica/icapolicy_crvserver_binding.go +++ b/resource/config/icapolicy_crvserver_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Binding class showing the crvserver that can be bound to icapolicy. -*/ + */ type Icapolicycrvserverbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ica/icapolicy_global_binding.go b/resource/config/icapolicy_global_binding.go similarity index 96% rename from resource/config/ica/icapolicy_global_binding.go rename to resource/config/icapolicy_global_binding.go index 89d60bd..f8606f1 100644 --- a/resource/config/ica/icapolicy_global_binding.go +++ b/resource/config/icapolicy_global_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Binding class showing the global that can be bound to icapolicy. -*/ + */ type Icapolicyglobalbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ica/icapolicy_icaglobal_binding.go b/resource/config/icapolicy_icaglobal_binding.go similarity index 96% rename from resource/config/ica/icapolicy_icaglobal_binding.go rename to resource/config/icapolicy_icaglobal_binding.go index 7c22d15..b6f9d48 100644 --- a/resource/config/ica/icapolicy_icaglobal_binding.go +++ b/resource/config/icapolicy_icaglobal_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Binding class showing the icaglobal that can be bound to icapolicy. -*/ + */ type Icapolicyicaglobalbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ica/icapolicy_vpnvserver_binding.go b/resource/config/icapolicy_vpnvserver_binding.go similarity index 96% rename from resource/config/ica/icapolicy_vpnvserver_binding.go rename to resource/config/icapolicy_vpnvserver_binding.go index 1fc24dc..abfaa0e 100644 --- a/resource/config/ica/icapolicy_vpnvserver_binding.go +++ b/resource/config/icapolicy_vpnvserver_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Binding class showing the vpnvserver that can be bound to icapolicy. -*/ + */ type Icapolicyvpnvserverbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ica/icapolicy_vserver_binding.go b/resource/config/icapolicy_vserver_binding.go similarity index 96% rename from resource/config/ica/icapolicy_vserver_binding.go rename to resource/config/icapolicy_vserver_binding.go index 57f2052..043b8b0 100644 --- a/resource/config/ica/icapolicy_vserver_binding.go +++ b/resource/config/icapolicy_vserver_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ica +package config /** * Binding class showing the vserver that can be bound to icapolicy. -*/ + */ type Icapolicyvserverbinding struct { /** * Location where policy is bound. - */ + */ Boundto string `json:"boundto,omitempty"` /** * Specifies the priority of the policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Indicates whether policy is bound or not. - */ + */ Activepolicy int32 `json:"activepolicy,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the policy about which to display detailed information. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/inat.go b/resource/config/inat.go similarity index 97% rename from resource/config/network/inat.go rename to resource/config/inat.go index a0ae949..7cff46e 100644 --- a/resource/config/network/inat.go +++ b/resource/config/inat.go @@ -12,69 +12,68 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for inbound nat resource. -*/ + */ type Inat struct { /** * Name for the Inbound NAT (INAT) entry. Leading character must be a number or letter. Other characters allowed, after the first character, are @ _ - . (period) : (colon) # and space ( ). - */ + */ Name string `json:"name,omitempty"` /** * Public IP address of packets received on the Citrix ADC. Can be aNetScaler-owned VIP or VIP6 address. - */ + */ Publicip string `json:"publicip,omitempty"` /** * IP address of the server to which the packet is sent by the Citrix ADC. Can be an IPv4 or IPv6 address. - */ + */ Privateip string `json:"privateip,omitempty"` /** * Stateless translation. - */ + */ Mode string `json:"mode,omitempty"` /** * Enable TCP proxy, which enables the Citrix ADC to optimize the RNAT TCP traffic by using Layer 4 features. - */ + */ Tcpproxy string `json:"tcpproxy,omitempty"` /** * Enable the FTP protocol on the server for transferring files between the client and the server. - */ + */ Ftp string `json:"ftp,omitempty"` /** * To enable/disable TFTP (Default DISABLED). - */ + */ Tftp string `json:"tftp,omitempty"` /** * Enable the Citrix ADC to retain the source IP address of packets before sending the packets to the server. - */ + */ Usip string `json:"usip,omitempty"` /** * Enable the Citrix ADC to use a SNIP address as the source IP address of packets before sending the packets to the server. - */ + */ Usnip string `json:"usnip,omitempty"` /** * Unique IP address used as the source IP address in packets sent to the server. Must be a MIP or SNIP address. - */ + */ Proxyip string `json:"proxyip,omitempty"` /** * Enable the Citrix ADC to proxy the source port of packets before sending the packets to the server. - */ + */ Useproxyport string `json:"useproxyport,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Synchronize connection information with the secondary appliance in a high availability (HA) pair. That is, synchronize all connection-related information for the INAT session - */ + */ Connfailover string `json:"connfailover,omitempty"` //------- Read only Parameter ---------; Flags string `json:"flags,omitempty"` - } diff --git a/resource/config/network/inatparam.go b/resource/config/inatparam.go similarity index 97% rename from resource/config/network/inatparam.go rename to resource/config/inatparam.go index 7b37f6f..f520b38 100644 --- a/resource/config/network/inatparam.go +++ b/resource/config/inatparam.go @@ -12,37 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for INAT parameter resource. -*/ + */ type Inatparam struct { /** * The prefix used for translating packets received from private IPv6 servers into IPv4 packets. This prefix has a length of 96 bits (128-32 = 96). The IPv6 servers embed the destination IP address of the IPv4 servers or hosts in the last 32 bits of the destination IP address field of the IPv6 packets. The first 96 bits of the destination IP address field are set as the IPv6 NAT prefix. IPv6 packets addressed to this prefix have to be routed to the Citrix ADC to ensure that the IPv6-IPv4 translation is done by the appliance. - */ + */ Nat46v6prefix string `json:"nat46v6prefix,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Ignore TOS. - */ + */ Nat46ignoretos string `json:"nat46ignoretos,omitempty"` /** * Calculate checksum for UDP packets with zero checksum - */ + */ Nat46zerochecksum string `json:"nat46zerochecksum,omitempty"` /** * MTU setting for the IPv6 side. If the incoming IPv4 packet greater than this, either fragment or send icmp need fragmentation error. - */ + */ Nat46v6mtu int `json:"nat46v6mtu,omitempty"` /** * When disabled, translator will not insert IPv6 fragmentation header for non fragmented IPv4 packets - */ + */ Nat46fragheader string `json:"nat46fragheader,omitempty"` - } diff --git a/resource/config/utility/install.go b/resource/config/install.go similarity index 97% rename from resource/config/utility/install.go rename to resource/config/install.go index ce4b0cd..9f1e95e 100644 --- a/resource/config/utility/install.go +++ b/resource/config/install.go @@ -12,10 +12,9 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package utility + */ +package config type Install struct { /** @@ -30,23 +29,22 @@ type Install struct { Url string `json:"url,omitempty"` /** * Do not prompt for yes/no before rebooting. - */ + */ Y bool `json:"y,omitempty"` /** * Use this flag to enable callhome. - */ + */ L bool `json:"l,omitempty"` /** * Use this flag to enable Citrix ADM Service Connect. This feature helps you discover your Citrix ADC instances effortlessly on Citrix ADM service and get insights and curated machine learning based recommendations for applications and Citrix ADC infrastructure. This feature lets the Citrix ADC instance automatically send system, usage and telemetry data to Citrix ADM service. View here [https://docs.citrix.com/en-us/citrix-adc/13/data-governance.html] to learn more about this feature. Use of this feature is subject to the Citrix End User ServiceAgreement. View here [https://www.citrix.com/buy/licensing/agreements.html]. - */ + */ A bool `json:"a,omitempty"` /** * Use this flag for upgrading from/to enhancement mode. - */ + */ Enhancedupgrade bool `json:"enhancedupgrade,omitempty"` /** * Use this flag to change swap size on ONLY 64bit nCore/MCNS/VMPE systems NON-VPX systems. - */ + */ Resizeswapvar bool `json:"resizeswapvar,omitempty"` - } diff --git a/resource/config/network/interfacepair.go b/resource/config/interfacepair.go similarity index 96% rename from resource/config/network/interfacepair.go rename to resource/config/interfacepair.go index 0fec1cb..3b2dbef 100644 --- a/resource/config/network/interfacepair.go +++ b/resource/config/interfacepair.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for "Interface Pair" resource. -*/ + */ type Interfacepair struct { /** * The Interface pair id - */ + */ Id int `json:"id,omitempty"` /** * The constituent interfaces in the interface pair - */ + */ Ifnum []string `json:"ifnum,omitempty"` //------- Read only Parameter ---------; Ifaces string `json:"ifaces,omitempty"` - } diff --git a/resource/config/network/ip6tunnel.go b/resource/config/ip6tunnel.go similarity index 91% rename from resource/config/network/ip6tunnel.go rename to resource/config/ip6tunnel.go index 0979717..de975c0 100644 --- a/resource/config/network/ip6tunnel.go +++ b/resource/config/ip6tunnel.go @@ -12,35 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for ip6 Tunnel resource. -*/ + */ type Ip6tunnel struct { /** * Name for the IPv6 Tunnel. Cannot be changed after the service group is created. Must begin with a number or letter, and can consist of letters, numbers, and the @ _ - . (period) : (colon) # and space ( ) characters. - */ + */ Name string `json:"name,omitempty"` /** * An IPv6 address of the remote Citrix ADC used to set up the tunnel. - */ + */ Remote string `json:"remote,omitempty"` /** * An IPv6 address of the local Citrix ADC used to set up the tunnel. - */ + */ Local string `json:"local,omitempty"` /** * The owner node group in a Cluster for the tunnel. - */ + */ Ownergroup string `json:"ownergroup,omitempty"` //------- Read only Parameter ---------; Remoteip string `json:"remoteip,omitempty"` - Type string `json:"type,omitempty"` - Encapip string `json:"encapip,omitempty"` - + Type string `json:"type,omitempty"` + Encapip string `json:"encapip,omitempty"` } diff --git a/resource/config/network/ip6tunnelparam.go b/resource/config/ip6tunnelparam.go similarity index 97% rename from resource/config/network/ip6tunnelparam.go rename to resource/config/ip6tunnelparam.go index c4f0823..dc90ad7 100644 --- a/resource/config/network/ip6tunnelparam.go +++ b/resource/config/ip6tunnelparam.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for ip6 tunnel parameter resource. -*/ + */ type Ip6tunnelparam struct { /** * Common source IPv6 address for all IPv6 tunnels. Must be a SNIP6 or VIP6 address. - */ + */ Srcip string `json:"srcip,omitempty"` /** * Drop any packet that requires fragmentation. - */ + */ Dropfrag string `json:"dropfrag,omitempty"` /** * Threshold value, as a percentage of CPU usage, at which to drop packets that require fragmentation. Applies only if dropFragparameter is set to NO. - */ + */ Dropfragcputhreshold int `json:"dropfragcputhreshold,omitempty"` /** * Use a different source IPv6 address for each new session through a particular IPv6 tunnel, as determined by round robin selection of one of the SNIP6 addresses. This setting is ignored if a common global source IPv6 address has been specified for all the IPv6 tunnels. This setting does not apply to a tunnel for which a source IPv6 address has been specified. - */ + */ Srciproundrobin string `json:"srciproundrobin,omitempty"` /** * Use client source IPv6 address as source IPv6 address for outer tunnel IPv6 header - */ + */ Useclientsourceipv6 string `json:"useclientsourceipv6,omitempty"` - } diff --git a/resource/config/ipsecalg/ipsecalgprofile.go b/resource/config/ipsecalgprofile.go similarity index 96% rename from resource/config/ipsecalg/ipsecalgprofile.go rename to resource/config/ipsecalgprofile.go index 77eb8f2..8a0b388 100644 --- a/resource/config/ipsecalg/ipsecalgprofile.go +++ b/resource/config/ipsecalgprofile.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ipsecalg +package config /** * Configuration for IPSEC ALG profile resource. -*/ + */ type Ipsecalgprofile struct { /** * The name of the ipsec alg profile - */ + */ Name string `json:"name,omitempty"` /** * IKE session timeout in minutes - */ + */ Ikesessiontimeout int `json:"ikesessiontimeout,omitempty"` /** * ESP session timeout in minutes. - */ + */ Espsessiontimeout int `json:"espsessiontimeout,omitempty"` /** * Timeout ESP in seconds as no ESP packets are seen after IKE negotiation - */ + */ Espgatetimeout int `json:"espgatetimeout,omitempty"` /** * Mode in which the connection failover feature must operate for the IPSec Alg. After a failover, established UDP connections and ESP packet flows are kept active and resumed on the secondary appliance. Recomended setting is ENABLED. - */ + */ Connfailover string `json:"connfailover,omitempty"` - } diff --git a/resource/config/ipsecalg/ipsecalgsession.go b/resource/config/ipsecalgsession.go similarity index 93% rename from resource/config/ipsecalg/ipsecalgsession.go rename to resource/config/ipsecalgsession.go index 5818189..048d5cc 100644 --- a/resource/config/ipsecalg/ipsecalgsession.go +++ b/resource/config/ipsecalgsession.go @@ -12,42 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ipsecalg +package config /** * Configuration for IPSEC ALG session resource. -*/ + */ type Ipsecalgsession struct { /** * Original Source IP address - */ + */ Sourceipalg string `json:"sourceip_alg,omitempty"` /** * Natted Source IP address - */ + */ Natipalg string `json:"natip_alg,omitempty"` /** * Destination IP address - */ + */ Destipalg string `json:"destip_alg,omitempty"` /** * Original Source IP address - */ + */ Sourceip string `json:"sourceip,omitempty"` /** * Natted Source IP address - */ + */ Natip string `json:"natip,omitempty"` /** * Destination IP address - */ + */ Destip string `json:"destip,omitempty"` //------- Read only Parameter ---------; - Spiin string `json:"spiin,omitempty"` + Spiin string `json:"spiin,omitempty"` Spiout string `json:"spiout,omitempty"` - } diff --git a/resource/config/ipsec/ipsecparameter.go b/resource/config/ipsecparameter.go similarity index 97% rename from resource/config/ipsec/ipsecparameter.go rename to resource/config/ipsecparameter.go index b92188e..f35d453 100644 --- a/resource/config/ipsec/ipsecparameter.go +++ b/resource/config/ipsecparameter.go @@ -12,45 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ipsec +package config /** * Configuration for IPSEC paramter resource. -*/ + */ type Ipsecparameter struct { /** * IKE Protocol Version - */ + */ Ikeversion string `json:"ikeversion,omitempty"` /** * Type of encryption algorithm (Note: Selection of AES enables AES128) - */ + */ Encalgo []string `json:"encalgo,omitempty"` /** * Type of hashing algorithm - */ + */ Hashalgo []string `json:"hashalgo,omitempty"` /** * Lifetime of IKE SA in seconds. Lifetime of IPSec SA will be (lifetime of IKE SA/8) - */ + */ Lifetime int `json:"lifetime,omitempty"` /** * Number of seconds after which a notify payload is sent to check the liveliness of the peer. Additional retries are done as per retransmit interval setting. Zero value disables liveliness checks. - */ + */ Livenesscheckinterval int `json:"livenesscheckinterval,omitempty"` /** * IPSec Replay window size for the data traffic - */ + */ Replaywindowsize int `json:"replaywindowsize,omitempty"` /** * IKE retry interval for bringing up the connection - */ + */ Ikeretryinterval int `json:"ikeretryinterval,omitempty"` /** * Enable/Disable PFS. - */ + */ Perfectforwardsecrecy string `json:"perfectforwardsecrecy,omitempty"` /** * The interval in seconds to retry sending the IKE messages to peer, three consecutive attempts are done with doubled interval after every failure, @@ -61,5 +61,4 @@ type Ipsecparameter struct { //------- Read only Parameter ---------; Responderonly string `json:"responderonly,omitempty"` - } diff --git a/resource/config/ipsec/ipsecprofile.go b/resource/config/ipsecprofile.go similarity index 92% rename from resource/config/ipsec/ipsecprofile.go rename to resource/config/ipsecprofile.go index a371b0d..b65aec7 100644 --- a/resource/config/ipsec/ipsecprofile.go +++ b/resource/config/ipsecprofile.go @@ -12,75 +12,74 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ipsec +package config /** * Configuration for IPSEC profile resource. -*/ + */ type Ipsecprofile struct { /** * The name of the ipsec profile - */ + */ Name string `json:"name,omitempty"` /** * IKE Protocol Version - */ + */ Ikeversion string `json:"ikeversion,omitempty"` /** * Type of encryption algorithm (Note: Selection of AES enables AES128) - */ + */ Encalgo []string `json:"encalgo,omitempty"` /** * Type of hashing algorithm - */ + */ Hashalgo []string `json:"hashalgo,omitempty"` /** * Lifetime of IKE SA in seconds. Lifetime of IPSec SA will be (lifetime of IKE SA/8) - */ + */ Lifetime int `json:"lifetime,omitempty"` /** * Pre shared key value - */ + */ Psk string `json:"psk,omitempty"` /** * Public key file path - */ + */ Publickey string `json:"publickey,omitempty"` /** * Private key file path - */ + */ Privatekey string `json:"privatekey,omitempty"` /** * Peer public key file path - */ + */ Peerpublickey string `json:"peerpublickey,omitempty"` /** * Number of seconds after which a notify payload is sent to check the liveliness of the peer. Additional retries are done as per retransmit interval setting. Zero value disables liveliness checks. - */ + */ Livenesscheckinterval int `json:"livenesscheckinterval,omitempty"` /** * IPSec Replay window size for the data traffic - */ + */ Replaywindowsize int `json:"replaywindowsize,omitempty"` /** * IKE retry interval for bringing up the connection - */ + */ Ikeretryinterval int `json:"ikeretryinterval,omitempty"` /** * The interval in seconds to retry sending the IKE messages to peer, three consecutive attempts are done with doubled interval after every failure. - */ + */ Retransmissiontime int `json:"retransmissiontime,omitempty"` /** * Enable/Disable PFS. - */ + */ Perfectforwardsecrecy string `json:"perfectforwardsecrecy,omitempty"` //------- Read only Parameter ---------; Responderonly string `json:"responderonly,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/network/ipset.go b/resource/config/ipset.go similarity index 97% rename from resource/config/network/ipset.go rename to resource/config/ipset.go index a50553d..4f9e5f7 100644 --- a/resource/config/network/ipset.go +++ b/resource/config/ipset.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for network ipset resource. -*/ + */ type Ipset struct { /** * Name for the IP set. Must begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the IP set is created. Choose a name that helps identify the IP set. - */ + */ Name string `json:"name,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` - } diff --git a/resource/config/network/ipset_binding.go b/resource/config/ipset_binding.go similarity index 94% rename from resource/config/network/ipset_binding.go rename to resource/config/ipset_binding.go index 4c856b4..6a3f05a 100644 --- a/resource/config/network/ipset_binding.go +++ b/resource/config/ipset_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to ipset_binding. -*/ +* Binding object which returns the resources bound to ipset_binding. + */ type Ipsetbinding struct { /** - * Name of the IP set whose details you want to display.
Minimum value = - */ + * Name of the IP set whose details you want to display.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/ipset_ip6_binding.go b/resource/config/ipset_ip6_binding.go similarity index 96% rename from resource/config/network/ipset_ip6_binding.go rename to resource/config/ipset_ip6_binding.go index 4df4328..f7b2892 100644 --- a/resource/config/network/ipset_ip6_binding.go +++ b/resource/config/ipset_ip6_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the ip6 that can be bound to ipset. -*/ + */ type Ipsetip6binding struct { /** * One or more IP addresses bound to the IP set. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Name of the IP set to which to bind IP addresses. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/ipset_ip_binding.go b/resource/config/ipset_ip_binding.go similarity index 96% rename from resource/config/network/ipset_ip_binding.go rename to resource/config/ipset_ip_binding.go index 3d6dac0..9cee15a 100644 --- a/resource/config/network/ipset_ip_binding.go +++ b/resource/config/ipset_ip_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the ip that can be bound to ipset. -*/ + */ type Ipsetipbinding struct { /** * One or more IP addresses bound to the IP set. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Name of the IP set to which to bind IP addresses. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/ipset_nsip6_binding.go b/resource/config/ipset_nsip6_binding.go similarity index 96% rename from resource/config/network/ipset_nsip6_binding.go rename to resource/config/ipset_nsip6_binding.go index 399e425..9942f09 100644 --- a/resource/config/network/ipset_nsip6_binding.go +++ b/resource/config/ipset_nsip6_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the nsip6 that can be bound to ipset. -*/ + */ type Ipsetnsip6binding struct { /** * One or more IP addresses bound to the IP set. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Name of the IP set to which to bind IP addresses. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/ipset_nsip_binding.go b/resource/config/ipset_nsip_binding.go similarity index 96% rename from resource/config/network/ipset_nsip_binding.go rename to resource/config/ipset_nsip_binding.go index c6e6278..deddf49 100644 --- a/resource/config/network/ipset_nsip_binding.go +++ b/resource/config/ipset_nsip_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the nsip that can be bound to ipset. -*/ + */ type Ipsetnsipbinding struct { /** * One or more IP addresses bound to the IP set. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Name of the IP set to which to bind IP addresses. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/iptunnel.go b/resource/config/iptunnel.go similarity index 83% rename from resource/config/network/iptunnel.go rename to resource/config/iptunnel.go index b22f26e..92f308b 100644 --- a/resource/config/network/iptunnel.go +++ b/resource/config/iptunnel.go @@ -12,59 +12,58 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for ip Tunnel resource. -*/ + */ type Iptunnel struct { /** * Name for the IP tunnel. Leading character must be a number or letter. Other characters allowed, after the first character, are @ _ - . (period) : (colon) # and space ( ). - */ + */ Name string `json:"name,omitempty"` /** * Public IPv4 address, of the remote device, used to set up the tunnel. For this parameter, you can alternatively specify a network address. - */ + */ Remote string `json:"remote,omitempty"` /** * Subnet mask of the remote IP address of the tunnel. - */ + */ Remotesubnetmask string `json:"remotesubnetmask,omitempty"` /** * Type of Citrix ADC owned public IPv4 address, configured on the local Citrix ADC and used to set up the tunnel. - */ + */ Local string `json:"local,omitempty"` /** * Name of the protocol to be used on this tunnel. - */ + */ Protocol string `json:"protocol,omitempty"` /** * The payload GRE will carry - */ + */ Grepayload string `json:"grepayload,omitempty"` /** * Name of IPSec profile to be associated. - */ + */ Ipsecprofilename string `json:"ipsecprofilename,omitempty"` /** * The vlan for mulicast packets - */ + */ Vlan int `json:"vlan,omitempty"` /** * The owner node group in a Cluster for the iptunnel. - */ + */ Ownergroup string `json:"ownergroup,omitempty"` //------- Read only Parameter ---------; - Sysname string `json:"sysname,omitempty"` - Type string `json:"type,omitempty"` - Encapip string `json:"encapip,omitempty"` - Channel string `json:"channel,omitempty"` - Tunneltype string `json:"tunneltype,omitempty"` + Sysname string `json:"sysname,omitempty"` + Type string `json:"type,omitempty"` + Encapip string `json:"encapip,omitempty"` + Channel string `json:"channel,omitempty"` + Tunneltype string `json:"tunneltype,omitempty"` Ipsectunnelstatus string `json:"ipsectunnelstatus,omitempty"` - Refcnt string `json:"refcnt,omitempty"` - + Refcnt string `json:"refcnt,omitempty"` } diff --git a/resource/config/network/iptunnelparam.go b/resource/config/iptunnelparam.go similarity index 97% rename from resource/config/network/iptunnelparam.go rename to resource/config/iptunnelparam.go index 9099a4c..57fa6d5 100644 --- a/resource/config/network/iptunnelparam.go +++ b/resource/config/iptunnelparam.go @@ -12,45 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for ip tunnel parameter resource. -*/ + */ type Iptunnelparam struct { /** * Common source-IP address for all tunnels. For a specific tunnel, this global setting is overridden if you have specified another source IP address. Must be a MIP or SNIP address. - */ + */ Srcip string `json:"srcip,omitempty"` /** * Drop any IP packet that requires fragmentation before it is sent through the tunnel. - */ + */ Dropfrag string `json:"dropfrag,omitempty"` /** * Threshold value, as a percentage of CPU usage, at which to drop packets that require fragmentation to use the IP tunnel. Applies only if dropFragparameter is set to NO. The default value, 0, specifies that this parameter is not set. - */ + */ Dropfragcputhreshold int `json:"dropfragcputhreshold,omitempty"` /** * Use a different source IP address for each new session through a particular IP tunnel, as determined by round robin selection of one of the SNIP addresses. This setting is ignored if a common global source IP address has been specified for all the IP tunnels. This setting does not apply to a tunnel for which a source IP address has been specified. - */ + */ Srciproundrobin string `json:"srciproundrobin,omitempty"` /** * Strict PBR check for IPSec packets received through tunnel - */ + */ Enablestrictrx string `json:"enablestrictrx,omitempty"` /** * Strict PBR check for packets to be sent IPSec protected - */ + */ Enablestricttx string `json:"enablestricttx,omitempty"` /** * The shared MAC used for shared IP between cluster nodes/HA peers - */ + */ Mac string `json:"mac,omitempty"` /** * Use client source IP as source IP for outer tunnel IP header - */ + */ Useclientsourceip string `json:"useclientsourceip,omitempty"` - } diff --git a/resource/config/network/ipv6.go b/resource/config/ipv6.go similarity index 92% rename from resource/config/network/ipv6.go rename to resource/config/ipv6.go index 9c8a7bc..4a20948 100644 --- a/resource/config/network/ipv6.go +++ b/resource/config/ipv6.go @@ -12,37 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for ip v6 resource. -*/ + */ type Ipv6 struct { /** * Enable the Citrix ADC to learn about various routes from Router Advertisement (RA) and Router Solicitation (RS) messages sent by the routers. - */ + */ Ralearning string `json:"ralearning,omitempty"` /** * Enable the Citrix ADC to do Router Redirection. - */ + */ Routerredirection string `json:"routerredirection,omitempty"` /** * Base reachable time of the Neighbor Discovery (ND6) protocol. The time, in milliseconds, that the Citrix ADC assumes an adjacent device is reachable after receiving a reachability confirmation. - */ + */ Ndbasereachtime int `json:"ndbasereachtime,omitempty"` /** * Retransmission time of the Neighbor Discovery (ND6) protocol. The time, in milliseconds, between retransmitted Neighbor Solicitation (NS) messages, to an adjacent device. - */ + */ Ndretransmissiontime int `json:"ndretransmissiontime,omitempty"` /** * Prefix used for translating packets from private IPv6 servers to IPv4 packets. This prefix has a length of 96 bits (128-32 = 96). The IPv6 servers embed the destination IP address of the IPv4 servers or hosts in the last 32 bits of the destination IP address field of the IPv6 packets. The first 96 bits of the destination IP address field are set as the IPv6 NAT prefix. IPv6 packets addressed to this prefix have to be routed to the Citrix ADC to ensure that the IPv6-IPv4 translation is done by the appliance. - */ + */ Natprefix string `json:"natprefix,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Enable the Citrix ADC to do Duplicate Address @@ -51,14 +51,13 @@ type Ipv6 struct { Dodad string `json:"dodad,omitempty"` /** * IPV6 NATPREFIX used in NAT46 scenario when USIP is turned on - */ + */ Usipnatprefix string `json:"usipnatprefix,omitempty"` //------- Read only Parameter ---------; - Basereachtime string `json:"basereachtime,omitempty"` - Reachtime string `json:"reachtime,omitempty"` - Ndreachtime string `json:"ndreachtime,omitempty"` + Basereachtime string `json:"basereachtime,omitempty"` + Reachtime string `json:"reachtime,omitempty"` + Ndreachtime string `json:"ndreachtime,omitempty"` Retransmissiontime string `json:"retransmissiontime,omitempty"` - } diff --git a/resource/config/network/l2param.go b/resource/config/l2param.go similarity index 94% rename from resource/config/network/l2param.go rename to resource/config/l2param.go index e167aeb..1c597ce 100644 --- a/resource/config/network/l2param.go +++ b/resource/config/l2param.go @@ -12,77 +12,76 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for Layer 2 related parameter resource. -*/ + */ type L2param struct { /** * When mbf_instant_learning is enabled, learn any changes in peer's MAC after this time interval, which is in 10ms ticks. - */ + */ Mbfpeermacupdate int `json:"mbfpeermacupdate,omitempty"` /** - * Maximum bridge collision for loop detection - */ + * Maximum bridge collision for loop detection + */ Maxbridgecollision int `json:"maxbridgecollision,omitempty"` /** * Set/reset proxy ARP in bridge group deployment - */ + */ Bdggrpproxyarp string `json:"bdggrpproxyarp,omitempty"` /** * Bridging settings for C2C behavior. If enabled, each PE will learn MAC entries independently. Otherwise, when L2 mode is ON, learned MAC entries on a PE will be broadcasted to all other PEs. - */ + */ Bdgsetting string `json:"bdgsetting,omitempty"` /** - * Send GARP messagess on VRID-configured interfaces upon failover - */ + * Send GARP messagess on VRID-configured interfaces upon failover + */ Garponvridintf string `json:"garponvridintf,omitempty"` /** * Allows MAC mode vserver to pick and forward the packets even if it is destined to Citrix ADC owned VIP. - */ + */ Macmodefwdmypkt string `json:"macmodefwdmypkt,omitempty"` /** * Use Citrix ADC MAC for all outgoing packets. - */ + */ Usemymac string `json:"usemymac,omitempty"` /** * Proxies the ARP as Citrix ADC MAC for FreeBSD. - */ + */ Proxyarp string `json:"proxyarp,omitempty"` /** - * Set/reset REPLY form of GARP - */ + * Set/reset REPLY form of GARP + */ Garpreply string `json:"garpreply,omitempty"` /** * Enable instant learning of MAC changes in MBF mode. - */ + */ Mbfinstlearning string `json:"mbfinstlearning,omitempty"` /** * Enable the reset interface upon HA failover. - */ + */ Rstintfonhafo string `json:"rstintfonhafo,omitempty"` /** * Control source parameters (IP and Port) for FreeBSD initiated traffic. If Enabled, source parameters are retained. Else proxy the source parameters based on next hop. - */ + */ Skipproxyingbsdtraffic string `json:"skipproxyingbsdtraffic,omitempty"` /** * Return to ethernet sender. - */ + */ Returntoethernetsender string `json:"returntoethernetsender,omitempty"` /** * Stop Update of server mac change to NAT sessions. - */ + */ Stopmacmoveupdate string `json:"stopmacmoveupdate,omitempty"` /** * Time-out value for the bridge table entries, in seconds. The new value applies only to the entries that are dynamically learned after the new value is set. Previously existing bridge table entries expire after the previously configured time-out value. - */ + */ Bridgeagetimeout int `json:"bridgeagetimeout,omitempty"` /** * Control source parameters (IP and Port) for FreeBSD initiated traffic. If enabled proxy the source parameters based on netprofile source ip. If netprofile does not have ip configured, then it will continue to use NSIP as earlier. - */ + */ Usenetprofilebsdtraffic string `json:"usenetprofilebsdtraffic,omitempty"` - } diff --git a/resource/config/network/l3param.go b/resource/config/l3param.go similarity index 94% rename from resource/config/network/l3param.go rename to resource/config/l3param.go index 0c47202..da44181 100644 --- a/resource/config/network/l3param.go +++ b/resource/config/l3param.go @@ -12,74 +12,73 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for Layer 3 related parameter resource. -*/ + */ type L3param struct { /** * Perform NAT if only the source is in the private network - */ + */ Srcnat string `json:"srcnat,omitempty"` /** * NS generated ICMP pkts per 10ms rate threshold - */ + */ Icmpgenratethreshold int `json:"icmpgenratethreshold,omitempty"` /** * USNIP/USIP settings override RNAT settings for configured - service/virtual server traffic.. + service/virtual server traffic.. */ Overridernat string `json:"overridernat,omitempty"` /** * Enable dropping the IP DF flag. - */ + */ Dropdfflag string `json:"dropdfflag,omitempty"` /** * Enable round robin usage of mapped IPs. - */ + */ Miproundrobin string `json:"miproundrobin,omitempty"` /** * Enable external loopback. - */ + */ Externalloopback string `json:"externalloopback,omitempty"` /** * Enable/Disable learning PMTU of IP tunnel when ICMP error does not contain connection information. - */ + */ Tnlpmtuwoconn string `json:"tnlpmtuwoconn,omitempty"` /** * Enable detection of stray server side pkts in USIP mode. - */ + */ Usipserverstraypkt string `json:"usipserverstraypkt,omitempty"` /** * Enable forwarding of ICMP fragments. - */ + */ Forwardicmpfragments string `json:"forwardicmpfragments,omitempty"` /** * Enable dropping of IP fragments. - */ + */ Dropipfragments string `json:"dropipfragments,omitempty"` /** * Parameter to tune acl logging time - */ + */ Acllogtime int `json:"acllogtime,omitempty"` /** * Do not apply ACLs for internal ports - */ + */ Implicitaclallow string `json:"implicitaclallow,omitempty"` /** * Enable/Disable Dynamic routing on partition. This configuration is not applicable to default partition - */ + */ Dynamicrouting string `json:"dynamicrouting,omitempty"` /** * Enable/Disable IPv6 Dynamic routing - */ + */ Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` /** * Enable/Disable IPv4 Class E address clients - */ + */ Allowclasseipv4 string `json:"allowclasseipv4,omitempty"` - } diff --git a/resource/config/network/l4param.go b/resource/config/l4param.go similarity index 97% rename from resource/config/network/l4param.go rename to resource/config/l4param.go index d197afe..5cf6d93 100644 --- a/resource/config/network/l4param.go +++ b/resource/config/l4param.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for Layer 4 related parameter resource. -*/ + */ type L4param struct { /** * Layer 2 connection method based on the combination of channel number, MAC address and VLAN. It is tuned with l2conn param of lb vserver. If l2conn of lb vserver is ON then method specified here will be used to identify a connection in addition to the 4-tuple (::::). - */ + */ L2connmethod string `json:"l2connmethod,omitempty"` /** * In L4 switch topology, always clients and servers are on the same side. Enable l4switch to allow such connections. - */ + */ L4switch string `json:"l4switch,omitempty"` - } diff --git a/resource/config/network/lacp.go b/resource/config/lacp.go similarity index 81% rename from resource/config/network/lacp.go rename to resource/config/lacp.go index bd35c78..dba0d92 100644 --- a/resource/config/network/lacp.go +++ b/resource/config/lacp.go @@ -12,30 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for Link aggregation control protocol resource. -*/ + */ type Lacp struct { /** * Priority number that determines which peer device of an LACP LA channel can have control over the LA channel. This parameter is globally applied to all LACP channels on the Citrix ADC. The lower the number, the higher the priority. - */ + */ Syspriority int `json:"syspriority,omitempty"` /** * The owner node in a cluster for which we want to set the lacp priority. Owner node can vary from 0 to 31. Ownernode value of 254 is used for Cluster. - */ + */ Ownernode int `json:"ownernode,omitempty"` //------- Read only Parameter ---------; - Devicename string `json:"devicename,omitempty"` - Mac string `json:"mac,omitempty"` - Flags string `json:"flags,omitempty"` - Lacpkey string `json:"lacpkey,omitempty"` + Devicename string `json:"devicename,omitempty"` + Mac string `json:"mac,omitempty"` + Flags string `json:"flags,omitempty"` + Lacpkey string `json:"lacpkey,omitempty"` Clustersyspriority string `json:"clustersyspriority,omitempty"` - Clustermac string `json:"clustermac,omitempty"` - + Clustermac string `json:"clustermac,omitempty"` } diff --git a/resource/config/lb/lbgroup.go b/resource/config/lbgroup.go similarity index 96% rename from resource/config/lb/lbgroup.go rename to resource/config/lbgroup.go index d0c8b9e..ed8489f 100644 --- a/resource/config/lb/lbgroup.go +++ b/resource/config/lbgroup.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for LB group resource. -*/ + */ type Lbgroup struct { /** * Name of the load balancing virtual server group. - */ + */ Name string `json:"name,omitempty"` /** * Type of persistence for the group. Available settings function as follows: @@ -34,55 +34,54 @@ type Lbgroup struct { Persistencetype string `json:"persistencetype,omitempty"` /** * Type of backup persistence for the group. - */ + */ Persistencebackup string `json:"persistencebackup,omitempty"` /** * Time period, in minutes, for which backup persistence is in effect. - */ + */ Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` /** * Persistence mask to apply to source IPv4 addresses when creating source IP based persistence sessions. - */ + */ Persistmask string `json:"persistmask,omitempty"` /** * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. - */ + */ Cookiename string `json:"cookiename,omitempty"` /** * Persistence mask to apply to source IPv6 addresses when creating source IP based persistence sessions. - */ + */ V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Domain attribute for the HTTP cookie. - */ + */ Cookiedomain string `json:"cookiedomain,omitempty"` /** * Time period for which a persistence session is in effect. - */ + */ Timeout int `json:"timeout,omitempty"` /** * Expression, or name of a named expression, against which traffic is evaluated. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** * Use this parameter to enable vserver level persistence on group members. This allows member vservers to have their own persistence, but need to be compatible with other members persistence rules. When this setting is enabled persistence sessions created by any of the members can be shared by other member vservers. - */ + */ Usevserverpersistency string `json:"usevserverpersistency,omitempty"` /** * When USE_VSERVER_PERSISTENCE is enabled, one can use this setting to designate a member vserver as master which is responsible to create the persistence sessions - */ + */ Mastervserver string `json:"mastervserver,omitempty"` /** * New name for the load balancing virtual server group. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; Td string `json:"td,omitempty"` - } diff --git a/resource/config/lb/lbgroup_binding.go b/resource/config/lbgroup_binding.go similarity index 94% rename from resource/config/lb/lbgroup_binding.go rename to resource/config/lbgroup_binding.go index d406fcb..dc14f00 100644 --- a/resource/config/lb/lbgroup_binding.go +++ b/resource/config/lbgroup_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** -* Binding object which returns the resources bound to lbgroup_binding. -*/ +* Binding object which returns the resources bound to lbgroup_binding. + */ type Lbgroupbinding struct { /** - * Name of the load balancing virtual server group.
Minimum value = - */ + * Name of the load balancing virtual server group.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbgroup_lbvserver_binding.go b/resource/config/lbgroup_lbvserver_binding.go similarity index 97% rename from resource/config/lb/lbgroup_lbvserver_binding.go rename to resource/config/lbgroup_lbvserver_binding.go index 4f4552b..0d65e26 100644 --- a/resource/config/lb/lbgroup_lbvserver_binding.go +++ b/resource/config/lbgroup_lbvserver_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the lbvserver that can be bound to lbgroup. -*/ + */ type Lbgrouplbvserverbinding struct { /** * Virtual server name. - */ + */ Vservername string `json:"vservername,omitempty"` /** * Name for the load balancing virtual server group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the virtual server is created. CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my lbgroup" or 'my lbgroup'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbgroup_vserver_binding.go b/resource/config/lbgroup_vserver_binding.go similarity index 97% rename from resource/config/lb/lbgroup_vserver_binding.go rename to resource/config/lbgroup_vserver_binding.go index 0c2cbdb..6753f03 100644 --- a/resource/config/lb/lbgroup_vserver_binding.go +++ b/resource/config/lbgroup_vserver_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the vserver that can be bound to lbgroup. -*/ + */ type Lbgroupvserverbinding struct { /** * Virtual server name. - */ + */ Vservername string `json:"vservername,omitempty"` /** * Name for the load balancing virtual server group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the virtual server is created. CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my lbgroup" or 'my lbgroup'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmetrictable.go b/resource/config/lbmetrictable.go similarity index 88% rename from resource/config/lb/lbmetrictable.go rename to resource/config/lbmetrictable.go index 4293a3a..be72b49 100644 --- a/resource/config/lb/lbmetrictable.go +++ b/resource/config/lbmetrictable.go @@ -12,32 +12,31 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for metric table resource. -*/ + */ type Lbmetrictable struct { /** - * Name for the metric table. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + * Name for the metric table. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my metrictable" or 'my metrictable'). */ Metrictable string `json:"metrictable,omitempty"` /** * Name of the metric for which to change the SNMP OID. - */ + */ Metric string `json:"metric,omitempty"` /** * New SNMP OID of the metric. - */ + */ Snmpoid string `json:"Snmpoid,omitempty"` //------- Read only Parameter ---------; Metrictype string `json:"metrictype,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/lb/lbmetrictable_binding.go b/resource/config/lbmetrictable_binding.go similarity index 89% rename from resource/config/lb/lbmetrictable_binding.go rename to resource/config/lbmetrictable_binding.go index 23f0bdd..8d0dad4 100644 --- a/resource/config/lb/lbmetrictable_binding.go +++ b/resource/config/lbmetrictable_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** -* Binding object which returns the resources bound to lbmetrictable_binding. -*/ +* Binding object which returns the resources bound to lbmetrictable_binding. + */ type Lbmetrictablebinding struct { /** - * Name of the metric table.
Minimum value = - */ + * Name of the metric table.
Minimum value = + */ Metrictable string `json:"metrictable,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmetrictable_metric_binding.go b/resource/config/lbmetrictable_metric_binding.go similarity index 96% rename from resource/config/lb/lbmetrictable_metric_binding.go rename to resource/config/lbmetrictable_metric_binding.go index dd4d436..7ab60e6 100644 --- a/resource/config/lb/lbmetrictable_metric_binding.go +++ b/resource/config/lbmetrictable_metric_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the metric that can be bound to lbmetrictable. -*/ + */ type Lbmetrictablemetricbinding struct { /** * Name of the metric for which to change the SNMP OID. - */ + */ Metric string `json:"metric,omitempty"` /** * New SNMP OID of the metric. - */ + */ Snmpoid string `json:"Snmpoid,omitempty"` /** * Indication if it is a configured or internal - */ + */ Metrictype string `json:"metrictype,omitempty"` /** * Name of the metric table. - */ + */ Metrictable string `json:"metrictable,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonbindings.go b/resource/config/lbmonbindings.go similarity index 86% rename from resource/config/lb/lbmonbindings.go rename to resource/config/lbmonbindings.go index 0065e79..95dc8a8 100644 --- a/resource/config/lb/lbmonbindings.go +++ b/resource/config/lbmonbindings.go @@ -12,23 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for monitro bindings resource. -*/ + */ type Lbmonbindings struct { /** * The name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` //------- Read only Parameter ---------; - Type string `json:"type,omitempty"` - State string `json:"state,omitempty"` + Type string `json:"type,omitempty"` + State string `json:"state,omitempty"` Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` - } diff --git a/resource/config/lb/lbmonbindings_binding.go b/resource/config/lbmonbindings_binding.go similarity index 89% rename from resource/config/lb/lbmonbindings_binding.go rename to resource/config/lbmonbindings_binding.go index 17e331c..ec233d4 100644 --- a/resource/config/lb/lbmonbindings_binding.go +++ b/resource/config/lbmonbindings_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** -* Binding object which returns the resources bound to lbmonbindings_binding. -*/ +* Binding object which returns the resources bound to lbmonbindings_binding. + */ type Lbmonbindingsbinding struct { /** - * The name of the monitor.
Minimum value = - */ + * The name of the monitor.
Minimum value = + */ Monitorname string `json:"monitorname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonbindings_gslbservicegroup_binding.go b/resource/config/lbmonbindings_gslbservicegroup_binding.go similarity index 96% rename from resource/config/lb/lbmonbindings_gslbservicegroup_binding.go rename to resource/config/lbmonbindings_gslbservicegroup_binding.go index e9ebdb6..52d85c8 100644 --- a/resource/config/lb/lbmonbindings_gslbservicegroup_binding.go +++ b/resource/config/lbmonbindings_gslbservicegroup_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the gslbservicegroup that can be bound to lbmonbindings. -*/ + */ type Lbmonbindingsgslbservicegroupbinding struct { /** * The name of the service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * The type of service - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * The state of the servicegroup. - */ + */ Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` /** * The configured state (enable/disable) of Monitor on this service. - */ + */ Monstate string `json:"monstate,omitempty"` /** * The name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonbindings_service_binding.go b/resource/config/lbmonbindings_service_binding.go similarity index 95% rename from resource/config/lb/lbmonbindings_service_binding.go rename to resource/config/lbmonbindings_service_binding.go index 9955323..aa69393 100644 --- a/resource/config/lb/lbmonbindings_service_binding.go +++ b/resource/config/lbmonbindings_service_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the service that can be bound to lbmonbindings. -*/ + */ type Lbmonbindingsservicebinding struct { /** * The name of the service. - */ + */ Servicename string `json:"servicename,omitempty"` /** * The IPAddress of the service. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * The port of the service. - */ + */ Port int `json:"port,omitempty"` /** * The type of service - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * The state of the service - */ + */ Svrstate string `json:"svrstate,omitempty"` /** * The configured state (enable/disable) of Monitor on this service. - */ + */ Monsvcstate string `json:"monsvcstate,omitempty"` /** * The name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonbindings_servicegroup_binding.go b/resource/config/lbmonbindings_servicegroup_binding.go similarity index 96% rename from resource/config/lb/lbmonbindings_servicegroup_binding.go rename to resource/config/lbmonbindings_servicegroup_binding.go index 32bde78..5bf7dd9 100644 --- a/resource/config/lb/lbmonbindings_servicegroup_binding.go +++ b/resource/config/lbmonbindings_servicegroup_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the servicegroup that can be bound to lbmonbindings. -*/ + */ type Lbmonbindingsservicegroupbinding struct { /** * The name of the service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * The type of service - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * The state of the servicegroup. - */ + */ Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` /** * The configured state (enable/disable) of Monitor on this service. - */ + */ Monstate string `json:"monstate,omitempty"` /** * The name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonitor.go b/resource/config/lbmonitor.go similarity index 95% rename from resource/config/lb/lbmonitor.go rename to resource/config/lbmonitor.go index 0ca0be8..c778f28 100644 --- a/resource/config/lb/lbmonitor.go +++ b/resource/config/lbmonitor.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for monitor resource. -*/ + */ type Lbmonitor struct { /** * Name for the monitor. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. @@ -27,151 +27,151 @@ type Lbmonitor struct { Monitorname string `json:"monitorname,omitempty"` /** * Type of monitor that you want to create. - */ + */ Type string `json:"type,omitempty"` /** - * Action to perform when the response to an inline monitor (a monitor of type HTTP-INLINE) indicates that the service is down. A service monitored by an inline monitor is considered DOWN if the response code is not one of the codes that have been specified for the Response Code parameter. - Available settings function as follows: + * Action to perform when the response to an inline monitor (a monitor of type HTTP-INLINE) indicates that the service is down. A service monitored by an inline monitor is considered DOWN if the response code is not one of the codes that have been specified for the Response Code parameter. + Available settings function as follows: * NONE - Do not take any action. However, the show service command and the show lb monitor command indicate the total number of responses that were checked and the number of consecutive error responses received after the last successful probe. - * LOG - Log the event in NSLOG or SYSLOG. + * LOG - Log the event in NSLOG or SYSLOG. * DOWN - Mark the service as being down, and then do not direct any traffic to the service until the configured down time has expired. Persistent connections to the service are terminated as soon as the service is marked as DOWN. Also, log the event in NSLOG or SYSLOG. */ Action string `json:"action,omitempty"` /** * Response codes for which to mark the service as UP. For any other response code, the action performed depends on the monitor type. HTTP monitors and RADIUS monitors mark the service as DOWN, while HTTP-INLINE monitors perform the action indicated by the Action parameter. - */ + */ Respcode []string `json:"respcode,omitempty"` /** * HTTP request to send to the server (for example, "HEAD /file.html"). - */ + */ Httprequest string `json:"httprequest,omitempty"` /** * RTSP request to send to the server (for example, "OPTIONS *"). - */ + */ Rtsprequest string `json:"rtsprequest,omitempty"` /** * Custom header string to include in the monitoring probes. - */ + */ Customheaders string `json:"customheaders,omitempty"` /** * Maximum number of hops that the SIP request used for monitoring can traverse to reach the server. Applicable only to monitors of type SIP-UDP. - */ + */ Maxforwards int `json:"maxforwards,omitempty"` /** * SIP method to use for the query. Applicable only to monitors of type SIP-UDP. - */ + */ Sipmethod string `json:"sipmethod,omitempty"` /** * SIP URI string to send to the service (for example, sip:sip.test). Applicable only to monitors of type SIP-UDP. - */ + */ Sipuri string `json:"sipuri,omitempty"` /** * SIP user to be registered. Applicable only if the monitor is of type SIP-UDP and the SIP Method parameter is set to REGISTER. - */ + */ Sipreguri string `json:"sipreguri,omitempty"` /** * String to send to the service. Applicable to TCP-ECV, HTTP-ECV, and UDP-ECV monitors. - */ + */ Send string `json:"send,omitempty"` /** * String expected from the server for the service to be marked as UP. Applicable to TCP-ECV, HTTP-ECV, and UDP-ECV monitors. - */ + */ Recv string `json:"recv,omitempty"` /** * Domain name to resolve as part of monitoring the DNS service (for example, example.com). - */ + */ Query string `json:"query,omitempty"` /** * Type of DNS record for which to send monitoring queries. Set to Address for querying A records, AAAA for querying AAAA records, and Zone for querying the SOA record. - */ + */ Querytype string `json:"querytype,omitempty"` /** * Path and name of the script to execute. The script must be available on the Citrix ADC, in the /nsconfig/monitors/ directory. - */ + */ Scriptname string `json:"scriptname,omitempty"` /** * String of arguments for the script. The string is copied verbatim into the request. - */ + */ Scriptargs string `json:"scriptargs,omitempty"` /** * IP address of the dispatcher to which to send the probe. - */ + */ Dispatcherip string `json:"dispatcherip,omitempty"` /** * Port number on which the dispatcher listens for the monitoring probe. - */ + */ Dispatcherport int `json:"dispatcherport,omitempty"` /** * User name with which to probe the RADIUS, NNTP, FTP, FTP-EXTENDED, MYSQL, MSSQL, POP3, CITRIX-AG, CITRIX-XD-DDC, CITRIX-WI-EXTENDED, CITRIX-XNC or CITRIX-XDM server. - */ + */ Username string `json:"username,omitempty"` /** * Password that is required for logging on to the RADIUS, NNTP, FTP, FTP-EXTENDED, MYSQL, MSSQL, POP3, CITRIX-AG, CITRIX-XD-DDC, CITRIX-WI-EXTENDED, CITRIX-XNC-ECV or CITRIX-XDM server. Used in conjunction with the user name specified for the User Name parameter. - */ + */ Password string `json:"password,omitempty"` /** * Secondary password that users might have to provide to log on to the Access Gateway server. Applicable to CITRIX-AG monitors. - */ + */ Secondarypassword string `json:"secondarypassword,omitempty"` /** * Name of the logon point that is configured for the Citrix Access Gateway Advanced Access Control software. Required if you want to monitor the associated login page or Logon Agent. Applicable to CITRIX-AAC-LAS and CITRIX-AAC-LOGINPAGE monitors. - */ + */ Logonpointname string `json:"logonpointname,omitempty"` /** * Version number of the Citrix Advanced Access Control Logon Agent. Required by the CITRIX-AAC-LAS monitor. - */ + */ Lasversion string `json:"lasversion,omitempty"` /** * Authentication key (shared secret text string) for RADIUS clients and servers to exchange. Applicable to monitors of type RADIUS and RADIUS_ACCOUNTING. - */ + */ Radkey string `json:"radkey,omitempty"` /** * NAS-Identifier to send in the Access-Request packet. Applicable to monitors of type RADIUS. - */ + */ Radnasid string `json:"radnasid,omitempty"` /** * Network Access Server (NAS) IP address to use as the source IP address when monitoring a RADIUS server. Applicable to monitors of type RADIUS and RADIUS_ACCOUNTING. - */ + */ Radnasip string `json:"radnasip,omitempty"` /** * Account Type to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. - */ + */ Radaccounttype int `json:"radaccounttype,omitempty"` /** * Source ip with which the packet will go out . Applicable to monitors of type RADIUS_ACCOUNTING. - */ + */ Radframedip string `json:"radframedip,omitempty"` /** * Called Station Id to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. - */ + */ Radapn string `json:"radapn,omitempty"` /** * Calling Stations Id to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. - */ + */ Radmsisdn string `json:"radmsisdn,omitempty"` /** * Account Session ID to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. - */ + */ Radaccountsession string `json:"radaccountsession,omitempty"` /** * Calculate the least response times for bound services. If this parameter is not enabled, the appliance does not learn the response times of the bound services. Also used for LRTM load balancing. - */ + */ Lrtm string `json:"lrtm,omitempty"` /** * Time value added to the learned average response time in dynamic response time monitoring (DRTM). When a deviation is specified, the appliance learns the average response time of bound services and adds the deviation to the average. The final value is then continually adjusted to accommodate response time variations over time. Specified in milliseconds, seconds, or minutes. - */ + */ Deviation int `json:"deviation,omitempty"` /** * Unit of measurement for the Deviation parameter. Cannot be changed after the monitor is created. - */ + */ Units1 string `json:"units1,omitempty"` /** * Time interval between two successive probes. Must be greater than the value of Response Time-out. - */ + */ Interval int `json:"interval,omitempty"` /** * monitor interval units - */ + */ Units3 string `json:"units3,omitempty"` /** * Amount of time for which the appliance must wait before it marks a probe as FAILED. Must be less than the value specified for the Interval parameter. @@ -180,287 +180,286 @@ type Lbmonitor struct { Resptimeout int `json:"resptimeout,omitempty"` /** * monitor response timeout units - */ + */ Units4 string `json:"units4,omitempty"` /** * Response time threshold, specified as a percentage of the Response Time-out parameter. If the response to a monitor probe has not arrived when the threshold is reached, the appliance generates an SNMP trap called monRespTimeoutAboveThresh. After the response time returns to a value below the threshold, the appliance generates a monRespTimeoutBelowThresh SNMP trap. For the traps to be generated, the "MONITOR-RTO-THRESHOLD" alarm must also be enabled. - */ + */ Resptimeoutthresh int `json:"resptimeoutthresh,omitempty"` /** * Maximum number of probes to send to establish the state of a service for which a monitoring probe failed. - */ + */ Retries int `json:"retries,omitempty"` /** * Number of retries that must fail, out of the number specified for the Retries parameter, for a service to be marked as DOWN. For example, if the Retries parameter is set to 10 and the Failure Retries parameter is set to 6, out of the ten probes sent, at least six probes must fail if the service is to be marked as DOWN. The default value of 0 means that all the retries must fail if the service is to be marked as DOWN. - */ + */ Failureretries int `json:"failureretries,omitempty"` /** * Number of consecutive probe failures after which the appliance generates an SNMP trap called monProbeFailed. - */ + */ Alertretries int `json:"alertretries,omitempty"` /** * Number of consecutive successful probes required to transition a service's state from DOWN to UP. - */ + */ Successretries int `json:"successretries,omitempty"` /** * Time duration for which to wait before probing a service that has been marked as DOWN. Expressed in milliseconds, seconds, or minutes. - */ + */ Downtime int `json:"downtime,omitempty"` /** * Unit of measurement for the Down Time parameter. Cannot be changed after the monitor is created. - */ + */ Units2 string `json:"units2,omitempty"` /** * IP address of the service to which to send probes. If the parameter is set to 0, the IP address of the server to which the monitor is bound is considered the destination IP address. - */ + */ Destip string `json:"destip,omitempty"` /** * TCP or UDP port to which to send the probe. If the parameter is set to 0, the port number of the service to which the monitor is bound is considered the destination port. For a monitor of type USER, however, the destination port is the port number that is included in the HTTP request sent to the dispatcher. Does not apply to monitors of type PING. - */ + */ Destport int `json:"destport,omitempty"` /** * State of the monitor. The DISABLED setting disables not only the monitor being configured, but all monitors of the same type, until the parameter is set to ENABLED. If the monitor is bound to a service, the state of the monitor is not taken into account when the state of the service is determined. - */ + */ State string `json:"state,omitempty"` /** * Mark a service as DOWN, instead of UP, when probe criteria are satisfied, and as UP instead of DOWN when probe criteria are not satisfied. - */ + */ Reverse string `json:"reverse,omitempty"` /** * The monitor is bound to a transparent device such as a firewall or router. The state of a transparent device depends on the responsiveness of the services behind it. If a transparent device is being monitored, a destination IP address must be specified. The probe is sent to the specified IP address by using the MAC address of the transparent device. - */ + */ Transparent string `json:"transparent,omitempty"` /** * Send the monitoring probe to the service through an IP tunnel. A destination IP address must be specified. - */ + */ Iptunnel string `json:"iptunnel,omitempty"` /** * Probe the service by encoding the destination IP address in the IP TOS (6) bits. - */ + */ Tos string `json:"tos,omitempty"` /** * The TOS ID of the specified destination IP. Applicable only when the TOS parameter is set. - */ + */ Tosid int `json:"tosid,omitempty"` /** * Use a secure SSL connection when monitoring a service. Applicable only to TCP based monitors. The secure option cannot be used with a CITRIX-AG monitor, because a CITRIX-AG monitor uses a secure connection by default. - */ + */ Secure string `json:"secure,omitempty"` /** * Validate the credentials of the Xen Desktop DDC server user. Applicable to monitors of type CITRIX-XD-DDC. - */ + */ Validatecred string `json:"validatecred,omitempty"` /** * Domain in which the XenDesktop Desktop Delivery Controller (DDC) servers or Web Interface servers are present. Required by CITRIX-XD-DDC and CITRIX-WI-EXTENDED monitors for logging on to the DDC servers and Web Interface servers, respectively. - */ + */ Domain string `json:"domain,omitempty"` /** * Set of IP addresses expected in the monitoring response from the DNS server, if the record type is A or AAAA. Applicable to DNS monitors. - */ + */ Ipaddress []string `json:"ipaddress,omitempty"` /** * Name of a newsgroup available on the NNTP service that is to be monitored. The appliance periodically generates an NNTP query for the name of the newsgroup and evaluates the response. If the newsgroup is found on the server, the service is marked as UP. If the newsgroup does not exist or if the search fails, the service is marked as DOWN. Applicable to NNTP monitors. - */ + */ Group string `json:"group,omitempty"` /** * Name of a file on the FTP server. The appliance monitors the FTP service by periodically checking the existence of the file on the server. Applicable to FTP-EXTENDED monitors. - */ + */ Filename string `json:"filename,omitempty"` /** * The base distinguished name of the LDAP service, from where the LDAP server can begin the search for the attributes in the monitoring query. Required for LDAP service monitoring. - */ + */ Basedn string `json:"basedn,omitempty"` /** * The distinguished name with which an LDAP monitor can perform the Bind operation on the LDAP server. Optional. Applicable to LDAP monitors. - */ + */ Binddn string `json:"binddn,omitempty"` /** * Filter criteria for the LDAP query. Optional. - */ + */ Filter string `json:"filter,omitempty"` /** * Attribute to evaluate when the LDAP server responds to the query. Success or failure of the monitoring probe depends on whether the attribute exists in the response. Optional. - */ + */ Attribute string `json:"attribute,omitempty"` /** * Name of the database to connect to during authentication. - */ + */ Database string `json:"database,omitempty"` /** * Name of the service identifier that is used to connect to the Oracle database during authentication. - */ + */ Oraclesid string `json:"oraclesid,omitempty"` /** * SQL query for a MYSQL-ECV or MSSQL-ECV monitor. Sent to the database server after the server authenticates the connection. - */ + */ Sqlquery string `json:"sqlquery,omitempty"` /** - * Expression that evaluates the database server's response to a MYSQL-ECV or MSSQL-ECV monitoring query. Must produce a Boolean result. The result determines the state of the server. If the expression returns TRUE, the probe succeeds. + * Expression that evaluates the database server's response to a MYSQL-ECV or MSSQL-ECV monitoring query. Must produce a Boolean result. The result determines the state of the server. If the expression returns TRUE, the probe succeeds. For example, if you want the appliance to evaluate the error message to determine the state of the server, use the rule MYSQL.RES.ROW(10) .TEXT_ELEM(2).EQ("MySQL"). */ Evalrule string `json:"evalrule,omitempty"` /** * Version of MSSQL server that is to be monitored. - */ + */ Mssqlprotocolversion string `json:"mssqlprotocolversion,omitempty"` /** * SNMP OID for SNMP monitors. - */ + */ Snmpoid string `json:"Snmpoid,omitempty"` /** * Community name for SNMP monitors. - */ + */ Snmpcommunity string `json:"snmpcommunity,omitempty"` /** * Threshold for SNMP monitors. - */ + */ Snmpthreshold string `json:"snmpthreshold,omitempty"` /** * SNMP version to be used for SNMP monitors. - */ + */ Snmpversion string `json:"snmpversion,omitempty"` /** * Metric table to which to bind metrics. - */ + */ Metrictable string `json:"metrictable,omitempty"` /** * Name of the application used to determine the state of the service. Applicable to monitors of type CITRIX-XML-SERVICE. - */ + */ Application string `json:"application,omitempty"` /** * URL of the logon page. For monitors of type CITRIX-WEB-INTERFACE, to monitor a dynamic page under the site path, terminate the site path with a slash (/). Applicable to CITRIX-WEB-INTERFACE, CITRIX-WI-EXTENDED and CITRIX-XDM monitors. - */ + */ Sitepath string `json:"sitepath,omitempty"` /** * Store Name. For monitors of type STOREFRONT, STORENAME is an optional argument defining storefront service store name. Applicable to STOREFRONT monitors. - */ + */ Storename string `json:"storename,omitempty"` /** * Enable/Disable probing for Account Service. Applicable only to Store Front monitors. For multi-tenancy configuration users my skip account service - */ + */ Storefrontacctservice string `json:"storefrontacctservice,omitempty"` /** * Hostname in the FQDN format (Example: porche.cars.org). Applicable to STOREFRONT monitors. - */ + */ Hostname string `json:"hostname,omitempty"` /** * Name of the network profile. - */ + */ Netprofile string `json:"netprofile,omitempty"` /** * Origin-Host value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. - */ + */ Originhost string `json:"originhost,omitempty"` /** * Origin-Realm value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. - */ + */ Originrealm string `json:"originrealm,omitempty"` /** * Host-IP-Address value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. If Host-IP-Address is not specified, the appliance inserts the mapped IP (MIP) address or subnet IP (SNIP) address from which the CER request (the monitoring probe) is sent. - */ + */ Hostipaddress string `json:"hostipaddress,omitempty"` /** * Vendor-Id value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. - */ + */ Vendorid int `json:"vendorid,omitempty"` /** * Product-Name value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. - */ + */ Productname string `json:"productname,omitempty"` /** * Firmware-Revision value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. - */ + */ Firmwarerevision int `json:"firmwarerevision,omitempty"` /** * List of Auth-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring CER message. - */ + */ Authapplicationid []int `json:"authapplicationid,omitempty"` /** * List of Acct-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. - */ + */ Acctapplicationid []int `json:"acctapplicationid,omitempty"` /** * Inband-Security-Id for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. - */ + */ Inbandsecurityid string `json:"inbandsecurityid,omitempty"` /** * List of Supported-Vendor-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum eight of these AVPs are supported in a monitoring message. - */ + */ Supportedvendorids []int `json:"supportedvendorids,omitempty"` /** * Vendor-Id to use in the Vendor-Specific-Application-Id grouped attribute-value pair (AVP) in the monitoring CER message. To specify Auth-Application-Id or Acct-Application-Id in Vendor-Specific-Application-Id, use vendorSpecificAuthApplicationIds or vendorSpecificAcctApplicationIds, respectively. Only one Vendor-Id is supported for all the Vendor-Specific-Application-Id AVPs in a CER monitoring message. - */ + */ Vendorspecificvendorid int `json:"vendorspecificvendorid,omitempty"` /** * List of Vendor-Specific-Auth-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. The specified value is combined with the value of vendorSpecificVendorId to obtain the Vendor-Specific-Application-Id AVP in the CER monitoring message. - */ + */ Vendorspecificauthapplicationids []int `json:"vendorspecificauthapplicationids,omitempty"` /** * List of Vendor-Specific-Acct-Application-Id attribute value pairs (AVPs) to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. The specified value is combined with the value of vendorSpecificVendorId to obtain the Vendor-Specific-Application-Id AVP in the CER monitoring message. - */ + */ Vendorspecificacctapplicationids []int `json:"vendorspecificacctapplicationids,omitempty"` /** * KCD Account used by MSSQL monitor - */ + */ Kcdaccount string `json:"kcdaccount,omitempty"` /** * Store the database list populated with the responses to monitor probes. Used in database specific load balancing if MSSQL-ECV/MYSQL-ECV monitor is configured. - */ + */ Storedb string `json:"storedb,omitempty"` /** * This option will enable monitoring of services running on storefront server. Storefront services are monitored by probing to a Windows service that runs on the Storefront server and exposes details of which storefront services are running. - */ + */ Storefrontcheckbackendservices string `json:"storefrontcheckbackendservices,omitempty"` /** * Code expected when the server is under maintenance - */ + */ Trofscode int `json:"trofscode,omitempty"` /** * String expected from the server for the service to be marked as trofs. Applicable to HTTP-ECV/TCP-ECV monitors. - */ + */ Trofsstring string `json:"trofsstring,omitempty"` /** * SSL Profile associated with the monitor - */ + */ Sslprofile string `json:"sslprofile,omitempty"` /** * Client id to be used in Connect command - */ + */ Mqttclientidentifier string `json:"mqttclientidentifier,omitempty"` /** * Version of MQTT protocol used in connect message, default is version 3.1.1 [4] - */ + */ Mqttversion int `json:"mqttversion,omitempty"` /** * Metric name in the metric table, whose setting is changed. A value zero disables the metric and it will not be used for load calculation - */ + */ Metric string `json:"metric,omitempty"` /** * Threshold to be used for that metric. - */ + */ Metricthreshold int `json:"metricthreshold,omitempty"` /** * The weight for the specified service metric with respect to others. - */ + */ Metricweight int `json:"metricweight,omitempty"` /** * The name of the service to which the monitor is bound. - */ + */ Servicename string `json:"servicename,omitempty"` /** * The name of the service group to which the monitor is to be bound. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` //------- Read only Parameter ---------; - Lrtmconf string `json:"lrtmconf,omitempty"` - Lrtmconfstr string `json:"lrtmconfstr,omitempty"` + Lrtmconf string `json:"lrtmconf,omitempty"` + Lrtmconfstr string `json:"lrtmconfstr,omitempty"` Dynamicresponsetimeout string `json:"dynamicresponsetimeout,omitempty"` - Dynamicinterval string `json:"dynamicinterval,omitempty"` - Multimetrictable string `json:"multimetrictable,omitempty"` - Dupstate string `json:"dup_state,omitempty"` - Dupweight string `json:"dup_weight,omitempty"` - Weight string `json:"weight,omitempty"` - + Dynamicinterval string `json:"dynamicinterval,omitempty"` + Multimetrictable string `json:"multimetrictable,omitempty"` + Dupstate string `json:"dup_state,omitempty"` + Dupweight string `json:"dup_weight,omitempty"` + Weight string `json:"weight,omitempty"` } diff --git a/resource/config/lb/lbmonitor_binding.go b/resource/config/lbmonitor_binding.go similarity index 90% rename from resource/config/lb/lbmonitor_binding.go rename to resource/config/lbmonitor_binding.go index eb70130..4267cfd 100644 --- a/resource/config/lb/lbmonitor_binding.go +++ b/resource/config/lbmonitor_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** -* Binding object which returns the resources bound to lbmonitor_binding. -*/ +* Binding object which returns the resources bound to lbmonitor_binding. + */ type Lbmonitorbinding struct { /** - * Name of the monitor.
Minimum value = - */ + * Name of the monitor.
Minimum value = + */ Monitorname string `json:"monitorname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonitor_certkey_binding.go b/resource/config/lbmonitor_certkey_binding.go similarity index 97% rename from resource/config/lb/lbmonitor_certkey_binding.go rename to resource/config/lbmonitor_certkey_binding.go index 78d9e80..0b1c271 100644 --- a/resource/config/lb/lbmonitor_certkey_binding.go +++ b/resource/config/lbmonitor_certkey_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the certkey that can be bound to lbmonitor. -*/ + */ type Lbmonitorcertkeybinding struct { /** * The name of the certificate bound to the monitor. - */ + */ Certkeyname string `json:"certkeyname,omitempty"` /** * The rule for use of CRL corresponding to this CA certificate during client authentication. If crlCheck is set to Mandatory, the system will deny all SSL clients if the CRL is missing, expired - NextUpdate date is in the past, or is incomplete with remote CRL refresh enabled. If crlCheck is set to optional, the system will allow SSL clients in the above error cases.However, in any case if the client certificate is revoked in the CRL, the SSL client will be denied access. - */ + */ Ca bool `json:"ca,omitempty"` /** * The state of the CRL check parameter. (Mandatory/Optional) - */ + */ Crlcheck string `json:"crlcheck,omitempty"` /** * The state of the OCSP check parameter. (Mandatory/Optional) - */ + */ Ocspcheck string `json:"ocspcheck,omitempty"` /** * Name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonitor_metric_binding.go b/resource/config/lbmonitor_metric_binding.go similarity index 96% rename from resource/config/lb/lbmonitor_metric_binding.go rename to resource/config/lbmonitor_metric_binding.go index d8ad222..f5f67ac 100644 --- a/resource/config/lb/lbmonitor_metric_binding.go +++ b/resource/config/lbmonitor_metric_binding.go @@ -12,38 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the metric that can be bound to lbmonitor. -*/ + */ type Lbmonitormetricbinding struct { /** * Metric name in the metric table, whose setting is changed. A value zero disables the metric and it will not be used for load calculation - */ + */ Metric string `json:"metric,omitempty"` /** * Metric table to which to bind metrics. - */ + */ Metrictable string `json:"metrictable,omitempty"` /** * Giving the unit of the metric - */ + */ Metricunit string `json:"metric_unit,omitempty"` /** * The weight for the specified service metric with respect to others. - */ + */ Metricweight int `json:"metricweight,omitempty"` /** * Threshold to be used for that metric. - */ + */ Metricthreshold int `json:"metricthreshold,omitempty"` /** * Name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonitor_service_binding.go b/resource/config/lbmonitor_service_binding.go similarity index 96% rename from resource/config/lb/lbmonitor_service_binding.go rename to resource/config/lbmonitor_service_binding.go index 50ab5a0..c0c89b9 100644 --- a/resource/config/lb/lbmonitor_service_binding.go +++ b/resource/config/lbmonitor_service_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the service that can be bound to lbmonitor. -*/ + */ type Lbmonitorservicebinding struct { /** * Name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` /** * Name of the service or service group. - */ + */ Servicename string `json:"servicename,omitempty"` /** * State of the monitor. The state setting for a monitor of a given type affects all monitors of that type. For example, if an HTTP monitor is enabled, all HTTP monitors on the appliance are (or remain) enabled. If an HTTP monitor is disabled, all HTTP monitors on the appliance are disabled. - */ + */ Dupstate string `json:"dup_state,omitempty"` /** * Weight to assign to the binding between the monitor and service. - */ + */ Dupweight int `json:"dup_weight,omitempty"` /** * Name of the service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * State of the monitor. The state setting for a monitor of a given type affects all monitors of that type. For example, if an HTTP monitor is enabled, all HTTP monitors on the appliance are (or remain) enabled. If an HTTP monitor is disabled, all HTTP monitors on the appliance are disabled. - */ + */ State string `json:"state,omitempty"` /** * Weight to assign to the binding between the monitor and service. - */ + */ Weight int `json:"weight,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonitor_servicegroup_binding.go b/resource/config/lbmonitor_servicegroup_binding.go similarity index 96% rename from resource/config/lb/lbmonitor_servicegroup_binding.go rename to resource/config/lbmonitor_servicegroup_binding.go index 8464704..4157191 100644 --- a/resource/config/lb/lbmonitor_servicegroup_binding.go +++ b/resource/config/lbmonitor_servicegroup_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the servicegroup that can be bound to lbmonitor. -*/ + */ type Lbmonitorservicegroupbinding struct { /** * Name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` /** * Name of the service or service group. - */ + */ Servicename string `json:"servicename,omitempty"` /** * State of the monitor. The state setting for a monitor of a given type affects all monitors of that type. For example, if an HTTP monitor is enabled, all HTTP monitors on the appliance are (or remain) enabled. If an HTTP monitor is disabled, all HTTP monitors on the appliance are disabled. - */ + */ Dupstate string `json:"dup_state,omitempty"` /** * Weight to assign to the binding between the monitor and service. - */ + */ Dupweight int `json:"dup_weight,omitempty"` /** * Name of the service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * State of the monitor. The state setting for a monitor of a given type affects all monitors of that type. For example, if an HTTP monitor is enabled, all HTTP monitors on the appliance are (or remain) enabled. If an HTTP monitor is disabled, all HTTP monitors on the appliance are disabled. - */ + */ State string `json:"state,omitempty"` /** * Weight to assign to the binding between the monitor and service. - */ + */ Weight int `json:"weight,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbmonitor_sslcertkey_binding.go b/resource/config/lbmonitor_sslcertkey_binding.go similarity index 97% rename from resource/config/lb/lbmonitor_sslcertkey_binding.go rename to resource/config/lbmonitor_sslcertkey_binding.go index b2d4195..4d52020 100644 --- a/resource/config/lb/lbmonitor_sslcertkey_binding.go +++ b/resource/config/lbmonitor_sslcertkey_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the sslcertkey that can be bound to lbmonitor. -*/ + */ type Lbmonitorsslcertkeybinding struct { /** * The name of the certificate bound to the monitor. - */ + */ Certkeyname string `json:"certkeyname,omitempty"` /** * The rule for use of CRL corresponding to this CA certificate during client authentication. If crlCheck is set to Mandatory, the system will deny all SSL clients if the CRL is missing, expired - NextUpdate date is in the past, or is incomplete with remote CRL refresh enabled. If crlCheck is set to optional, the system will allow SSL clients in the above error cases.However, in any case if the client certificate is revoked in the CRL, the SSL client will be denied access. - */ + */ Ca bool `json:"ca,omitempty"` /** * The state of the CRL check parameter. (Mandatory/Optional) - */ + */ Crlcheck string `json:"crlcheck,omitempty"` /** * The state of the OCSP check parameter. (Mandatory/Optional) - */ + */ Ocspcheck string `json:"ocspcheck,omitempty"` /** * Name of the monitor. - */ + */ Monitorname string `json:"monitorname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbparameter.go b/resource/config/lbparameter.go similarity index 95% rename from resource/config/lb/lbparameter.go rename to resource/config/lbparameter.go index 8f321d3..be88ecc 100644 --- a/resource/config/lb/lbparameter.go +++ b/resource/config/lbparameter.go @@ -12,46 +12,46 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for LB parameter resource. -*/ + */ type Lbparameter struct { /** * Include the HttpOnly attribute in persistence cookies. The HttpOnly attribute limits the scope of a cookie to HTTP requests and helps mitigate the risk of cross-site scripting attacks. - */ + */ Httponlycookieflag string `json:"httponlycookieflag,omitempty"` /** * Encode persistence cookie values using SHA2 hash. - */ + */ Usesecuredpersistencecookie string `json:"usesecuredpersistencecookie,omitempty"` /** * Encode persistence cookie values using SHA2 hash. - */ + */ Useencryptedpersistencecookie string `json:"useencryptedpersistencecookie,omitempty"` /** * Use this parameter to specify the passphrase used to generate secured persistence cookie value. It specifies the passphrase with a maximum of 31 characters. - */ + */ Cookiepassphrase string `json:"cookiepassphrase,omitempty"` /** * To find the service with the fewest connections, the virtual server uses the consolidated connection statistics from all the packet engines. The NO setting allows consideration of only the number of connections on the packet engine that received the new connection. - */ + */ Consolidatedlconn string `json:"consolidatedlconn,omitempty"` /** * Include the port number of the service when creating a hash for hash based load balancing methods. With the NO setting, only the IP address of the service is considered when creating a hash. - */ + */ Useportforhashlb string `json:"useportforhashlb,omitempty"` /** * Perform route lookup for traffic received by the Citrix ADC, and forward the traffic according to configured routes. Do not set this parameter if you want a wildcard virtual server to direct packets received by the appliance to an intermediary device, such as a firewall, even if their destination is directly connected to the appliance. Route lookup is performed after the packets have been processed and returned by the intermediary device. - */ + */ Preferdirectroute string `json:"preferdirectroute,omitempty"` /** * Number of requests, per service, for which to apply the round robin load balancing method before switching to the configured load balancing method, thus allowing services to ramp up gradually to full load. Until the specified number of requests is distributed, the Citrix ADC is said to be implementing the slow start mode (or startup round robin). Implemented for a virtual server when one of the following is true: * The virtual server is newly created. - * One or more services are newly bound to the virtual server. + * One or more services are newly bound to the virtual server. * One or more services bound to the virtual server are enabled. * The load balancing method is changed. This parameter applies to all the load balancing virtual servers configured on the Citrix ADC, except for those virtual servers for which the virtual server-level slow start parameters (New Service Startup Request Rate and Increment Interval) are configured. If the global slow start parameter and the slow start parameters for a given virtual server are not set, the appliance implements a default slow start for the virtual server, as follows: @@ -62,11 +62,11 @@ type Lbparameter struct { Startuprrfactor int `json:"startuprrfactor,omitempty"` /** * When a monitor initiates a connection to a service, do not check to determine whether the number of connections to the service has reached the limit specified by the service's Max Clients setting. Enables monitoring to continue even if the service has reached its connection limit. - */ + */ Monitorskipmaxclient string `json:"monitorskipmaxclient,omitempty"` /** * Close monitoring connections by sending the service a connection termination message with the specified bit set. - */ + */ Monitorconnectionclose string `json:"monitorconnectionclose,omitempty"` /** * Allow a MAC-mode virtual server to accept traffic returned by an intermediary device, such as a firewall, to which the traffic was previously forwarded by another MAC-mode virtual server. The second virtual server can then distribute that traffic across the destination server farm. Also useful when load balancing Branch Repeater appliances. @@ -75,19 +75,19 @@ type Lbparameter struct { Vserverspecificmac string `json:"vserverspecificmac,omitempty"` /** * This is used, to enable/disable the option of svc/svcgroup removal, if it is bound to one or more vserver. If it is enabled, the svc/svcgroup can be removed, even if it bound to vservers. If disabled, an error will be thrown, when the user tries to remove a svc/svcgroup without unbinding from its vservers. - */ + */ Allowboundsvcremoval string `json:"allowboundsvcremoval,omitempty"` /** * This option is used to retain the original state of service or servicegroup member when an enable server command is issued. - */ + */ Retainservicestate string `json:"retainservicestate,omitempty"` /** * Specify the TTL for DNS record for domain based service. The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors - */ + */ Dbsttl int `json:"dbsttl,omitempty"` /** * Maximum number of concurrent requests to allow on a single client connection, which is identified by the - tuple. This parameter is applicable to ANY service type and all UDP service types (except DNS) and only when "svrTimeout" is set to zero. A value of 0 (zero) applies no limit to the number of concurrent requests allowed on a single client connection - */ + */ Maxpipelinenat int `json:"maxpipelinenat,omitempty"` /** * String configured as LiteralADCCookieAttribute will be appended as attribute for Citrix ADC cookie (for example: LB cookie persistence , GSLB site persistence, CS cookie persistence, LB group cookie persistence). @@ -108,27 +108,26 @@ type Lbparameter struct { Computedadccookieattribute string `json:"computedadccookieattribute,omitempty"` /** * This option allows to store the MQTT clientid and username in transactional logs - */ + */ Storemqttclientidandusername string `json:"storemqttclientidandusername,omitempty"` /** * When this option is enabled, MQTT messages of length greater than 64k will be dropped and the client/server connections will be reset. - */ + */ Dropmqttjumbomessage string `json:"dropmqttjumbomessage,omitempty"` /** * This option dictates the hashing algorithm used for hash based LB methods (URLHASH, DOMAINHASH, SOURCEIPHASH, DESTINATIONIPHASH, SRCIPDESTIPHASH, SRCIPSRCPORTHASH, TOKEN, USER_TOKEN, CALLIDHASH). - */ + */ Lbhashalgorithm string `json:"lbhashalgorithm,omitempty"` /** * This option is used to specify the number of fingers to be used in PRAC and JARH algorithms for hash based LB methods. Increasing the number of fingers might give better distribution of traffic at the expense of additional memory - */ + */ Lbhashfingers int `json:"lbhashfingers,omitempty"` //------- Read only Parameter ---------; - Sessionsthreshold string `json:"sessionsthreshold,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Sessionsthreshold string `json:"sessionsthreshold,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Adccookieattributewarningmsg string `json:"adccookieattributewarningmsg,omitempty"` - Lbhashalgowinsize string `json:"lbhashalgowinsize,omitempty"` - + Lbhashalgowinsize string `json:"lbhashalgowinsize,omitempty"` } diff --git a/resource/config/lb/lbpersistentsessions.go b/resource/config/lbpersistentsessions.go similarity index 62% rename from resource/config/lb/lbpersistentsessions.go rename to resource/config/lbpersistentsessions.go index 2977bc4..bc04b3e 100644 --- a/resource/config/lb/lbpersistentsessions.go +++ b/resource/config/lbpersistentsessions.go @@ -12,41 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for persistence session resource. -*/ + */ type Lbpersistentsessions struct { /** * The name of the virtual server. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` /** * The persistence parameter whose persistence sessions are to be flushed. - */ + */ Persistenceparameter string `json:"persistenceparameter,omitempty"` //------- Read only Parameter ---------; - Type string `json:"type,omitempty"` - Typestring string `json:"typestring,omitempty"` - Srcip string `json:"srcip,omitempty"` - Srcipv6 string `json:"srcipv6,omitempty"` - Destip string `json:"destip,omitempty"` - Destipv6 string `json:"destipv6,omitempty"` - Flags string `json:"flags,omitempty"` - Destport string `json:"destport,omitempty"` - Vservername string `json:"vservername,omitempty"` - Timeout string `json:"timeout,omitempty"` - Referencecount string `json:"referencecount,omitempty"` + Type string `json:"type,omitempty"` + Typestring string `json:"typestring,omitempty"` + Srcip string `json:"srcip,omitempty"` + Srcipv6 string `json:"srcipv6,omitempty"` + Destip string `json:"destip,omitempty"` + Destipv6 string `json:"destipv6,omitempty"` + Flags string `json:"flags,omitempty"` + Destport string `json:"destport,omitempty"` + Vservername string `json:"vservername,omitempty"` + Timeout string `json:"timeout,omitempty"` + Referencecount string `json:"referencecount,omitempty"` Persistenceparam string `json:"persistenceparam,omitempty"` - Cnamepersparam string `json:"cnamepersparam,omitempty"` - + Cnamepersparam string `json:"cnamepersparam,omitempty"` } diff --git a/resource/config/lb/lbprofile.go b/resource/config/lbprofile.go similarity index 95% rename from resource/config/lb/lbprofile.go rename to resource/config/lbprofile.go index 7dc239c..4b66738 100644 --- a/resource/config/lb/lbprofile.go +++ b/resource/config/lbprofile.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for LB profile resource. -*/ + */ type Lbprofile struct { /** * Name of the LB profile. - */ + */ Lbprofilename string `json:"lbprofilename,omitempty"` /** * Enable database specific load balancing for MySQL and MSSQL service types. - */ + */ Dbslb string `json:"dbslb,omitempty"` /** * By turning on this option packets destined to a vserver in a cluster will not under go any steering. Turn this option for single pa @@ -35,19 +35,19 @@ type Lbprofile struct { Processlocal string `json:"processlocal,omitempty"` /** * Include the HttpOnly attribute in persistence cookies. The HttpOnly attribute limits the scope of a cookie to HTTP requests and helps mitigate the risk of cross-site scripting attacks. - */ + */ Httponlycookieflag string `json:"httponlycookieflag,omitempty"` /** * Use this parameter to specify the passphrase used to generate secured persistence cookie value. It specifies the passphrase with a maximum of 31 characters. - */ + */ Cookiepassphrase string `json:"cookiepassphrase,omitempty"` /** * Encode persistence cookie values using SHA2 hash. - */ + */ Usesecuredpersistencecookie string `json:"usesecuredpersistencecookie,omitempty"` /** * Encode persistence cookie values using SHA2 hash. - */ + */ Useencryptedpersistencecookie string `json:"useencryptedpersistencecookie,omitempty"` /** * String configured as LiteralADCCookieAttribute will be appended as attribute for Citrix ADC cookie (for example: LB cookie persistence , GSLB site persistence, CS cookie persistence, LB group cookie persistence). @@ -68,21 +68,20 @@ type Lbprofile struct { Computedadccookieattribute string `json:"computedadccookieattribute,omitempty"` /** * This option allows to store the MQTT clientid and username in transactional logs - */ + */ Storemqttclientidandusername string `json:"storemqttclientidandusername,omitempty"` /** * This option dictates the hashing algorithm used for hash based LB methods (URLHASH, DOMAINHASH, SOURCEIPHASH, DESTINATIONIPHASH, SRCIPDESTIPHASH, SRCIPSRCPORTHASH, TOKEN, USER_TOKEN, CALLIDHASH). - */ + */ Lbhashalgorithm string `json:"lbhashalgorithm,omitempty"` /** * This option is used to specify the number of fingers to be used in PRAC and JARH algorithms for hash based LB methods. Increasing the number of fingers might give better distribution of traffic at the expense of additional memory. - */ + */ Lbhashfingers int `json:"lbhashfingers,omitempty"` //------- Read only Parameter ---------; - Vsvrcount string `json:"vsvrcount,omitempty"` + Vsvrcount string `json:"vsvrcount,omitempty"` Adccookieattributewarningmsg string `json:"adccookieattributewarningmsg,omitempty"` - Lbhashalgowinsize string `json:"lbhashalgowinsize,omitempty"` - + Lbhashalgowinsize string `json:"lbhashalgowinsize,omitempty"` } diff --git a/resource/config/lb/lbroute.go b/resource/config/lbroute.go similarity index 96% rename from resource/config/lb/lbroute.go rename to resource/config/lbroute.go index e19d57c..fb20c44 100644 --- a/resource/config/lb/lbroute.go +++ b/resource/config/lbroute.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for LB route resource. -*/ + */ type Lbroute struct { /** * The IP address of the network to which the route belongs. - */ + */ Network string `json:"network,omitempty"` /** * The netmask to which the route belongs. - */ + */ Netmask string `json:"netmask,omitempty"` /** * The name of the route. - */ + */ Gatewayname string `json:"gatewayname,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` //------- Read only Parameter ---------; Flags string `json:"flags,omitempty"` - } diff --git a/resource/config/lb/lbroute6.go b/resource/config/lbroute6.go similarity index 96% rename from resource/config/lb/lbroute6.go rename to resource/config/lbroute6.go index 8414364..bce345f 100644 --- a/resource/config/lb/lbroute6.go +++ b/resource/config/lbroute6.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for LB route6 resource. -*/ + */ type Lbroute6 struct { /** * The destination network. - */ + */ Network string `json:"network,omitempty"` /** * The name of the route. - */ + */ Gatewayname string `json:"gatewayname,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` //------- Read only Parameter ---------; Flags string `json:"flags,omitempty"` - } diff --git a/resource/config/lb/lbsipparameters.go b/resource/config/lbsipparameters.go similarity index 98% rename from resource/config/lb/lbsipparameters.go rename to resource/config/lbsipparameters.go index f0b2c5f..bd72e19 100644 --- a/resource/config/lb/lbsipparameters.go +++ b/resource/config/lbsipparameters.go @@ -12,46 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for SIP parameters resource. -*/ + */ type Lbsipparameters struct { /** * Port number with which to match the source port in server-initiated SIP traffic. The rport parameter is added, without a value, to SIP packets that have a matching source port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. - */ + */ Rnatsrcport int `json:"rnatsrcport,omitempty"` /** * Port number with which to match the destination port in server-initiated SIP traffic. The rport parameter is added, without a value, to SIP packets that have a matching destination port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. - */ + */ Rnatdstport int `json:"rnatdstport,omitempty"` /** * Time, in seconds, for which a client must wait before initiating a connection after receiving a 503 Service Unavailable response from the SIP server. The time value is sent in the "Retry-After" header in the 503 response. - */ + */ Retrydur int `json:"retrydur,omitempty"` /** * Add the rport parameter to the VIA headers of SIP requests that virtual servers receive from clients or servers. - */ + */ Addrportvip string `json:"addrportvip,omitempty"` /** * Maximum number of 503 Service Unavailable responses to generate, once every 10 milliseconds, when a SIP virtual server becomes unavailable. - */ + */ Sip503ratethreshold int `json:"sip503ratethreshold,omitempty"` /** * Port number with which to match the source port in server-initiated SIP over SSL traffic. The rport parameter is added, without a value, to SIP packets that have a matching source port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. - */ + */ Rnatsecuresrcport int `json:"rnatsecuresrcport,omitempty"` /** * Port number with which to match the destination port in server-initiated SIP over SSL traffic. The rport parameter is added, without a value, to SIP packets that have a matching destination port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. - */ + */ Rnatsecuredstport int `json:"rnatsecuredstport,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/lb/lbvserver.go b/resource/config/lbvserver.go similarity index 90% rename from resource/config/lb/lbvserver.go rename to resource/config/lbvserver.go index a6083a8..b960d29 100644 --- a/resource/config/lb/lbvserver.go +++ b/resource/config/lbvserver.go @@ -12,48 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for Load Balancing Virtual Server resource. -*/ + */ type Lbvserver struct { /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Protocol used by the service (also called the service type). - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * IPv4 or IPv6 address to assign to the virtual server. - */ + */ Ipv46 string `json:"ipv46,omitempty"` /** - * IP address pattern, in dotted decimal notation, for identifying packets to be accepted by the virtual server. The IP Mask parameter specifies which part of the destination IP address is matched against the pattern. Mutually exclusive with the IP Address parameter. + * IP address pattern, in dotted decimal notation, for identifying packets to be accepted by the virtual server. The IP Mask parameter specifies which part of the destination IP address is matched against the pattern. Mutually exclusive with the IP Address parameter. For example, if the IP pattern assigned to the virtual server is 198.51.100.0 and the IP mask is 255.255.240.0 (a forward mask), the first 20 bits in the destination IP addresses are matched with the first 20 bits in the pattern. The virtual server accepts requests with IP addresses that range from 198.51.96.1 to 198.51.111.254. You can also use a pattern such as 0.0.2.2 and a mask such as 0.0.255.255 (a reverse mask). If a destination IP address matches more than one IP pattern, the pattern with the longest match is selected, and the associated virtual server processes the request. For example, if virtual servers vs1 and vs2 have the same IP pattern, 0.0.100.128, but different IP masks of 0.0.255.255 and 0.0.224.255, a destination IP address of 198.51.100.128 has the longest match with the IP pattern of vs1. If a destination IP address matches two or more virtual servers to the same extent, the request is processed by the virtual server whose port number matches the port number in the request. */ Ippattern string `json:"ippattern,omitempty"` /** * IP mask, in dotted decimal notation, for the IP Pattern parameter. Can have leading or trailing non-zero octets (for example, 255.255.240.0 or 0.0.255.255). Accordingly, the mask specifies whether the first n bits or the last n bits of the destination IP address in a client request are to be matched with the corresponding bits in the IP pattern. The former is called a forward mask. The latter is called a reverse mask. - */ + */ Ipmask string `json:"ipmask,omitempty"` /** * Port number for the virtual server. - */ + */ Port int `json:"port,omitempty"` /** * The list of IPv4/IPv6 addresses bound to ipset would form a part of listening service on the current lb vserver - */ + */ Ipset string `json:"ipset,omitempty"` /** - * Number of IP addresses that the appliance must generate and assign to the virtual server. The virtual server then functions as a network virtual server, accepting traffic on any of the generated IP addresses. The IP addresses are generated automatically, as follows: - * For a range of n, the last octet of the address specified by the IP Address parameter increments n-1 times. + * Number of IP addresses that the appliance must generate and assign to the virtual server. The virtual server then functions as a network virtual server, accepting traffic on any of the generated IP addresses. The IP addresses are generated automatically, as follows: + * For a range of n, the last octet of the address specified by the IP Address parameter increments n-1 times. * If the last octet exceeds 255, it rolls over to 0 and the third octet increments by 1. Note: The Range parameter assigns multiple IP addresses to one virtual server. To generate an array of virtual servers, each of which owns only one IP address, use brackets in the IP Address and Name parameters to specify the range. For example: add lb vserver my_vserver[1-3] HTTP 192.0.2.[1-3] 80 @@ -62,11 +62,11 @@ type Lbvserver struct { /** * Type of persistence for the virtual server. Available settings function as follows: * SOURCEIP - Connections from the same client IP address belong to the same persistence session. - * COOKIEINSERT - Connections that have the same HTTP Cookie, inserted by a Set-Cookie directive from a server, belong to the same persistence session. + * COOKIEINSERT - Connections that have the same HTTP Cookie, inserted by a Set-Cookie directive from a server, belong to the same persistence session. * SSLSESSION - Connections that have the same SSL Session ID belong to the same persistence session. * CUSTOMSERVERID - Connections with the same server ID form part of the same session. For this persistence type, set the Server ID (CustomServerID) parameter for each service and configure the Rule parameter to identify the server ID in a request. - * RULE - All connections that match a user defined rule belong to the same persistence session. - * URLPASSIVE - Requests that have the same server ID in the URL query belong to the same persistence session. The server ID is the hexadecimal representation of the IP address and port of the service to which the request must be forwarded. This persistence type requires a rule to identify the server ID in the request. + * RULE - All connections that match a user defined rule belong to the same persistence session. + * URLPASSIVE - Requests that have the same server ID in the URL query belong to the same persistence session. The server ID is the hexadecimal representation of the IP address and port of the service to which the request must be forwarded. This persistence type requires a rule to identify the server ID in the request. * DESTIP - Connections to the same destination IP address belong to the same persistence session. * SRCIPDESTIP - Connections that have the same source IP address and destination IP address belong to the same persistence session. * CALLID - Connections that have the same CALL-ID SIP header belong to the same persistence session. @@ -77,48 +77,48 @@ type Lbvserver struct { Persistencetype string `json:"persistencetype,omitempty"` /** * Time period for which a persistence session is in effect. - */ + */ Timeout int `json:"timeout,omitempty"` /** * Backup persistence type for the virtual server. Becomes operational if the primary persistence mechanism fails. - */ + */ Persistencebackup string `json:"persistencebackup,omitempty"` /** * Time period for which backup persistence is in effect. - */ + */ Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` /** * Load balancing method. The available settings function as follows: * ROUNDROBIN - Distribute requests in rotation, regardless of the load. Weights can be assigned to services to enforce weighted round robin distribution. - * LEASTCONNECTION (default) - Select the service with the fewest connections. - * LEASTRESPONSETIME - Select the service with the lowest average response time. + * LEASTCONNECTION (default) - Select the service with the fewest connections. + * LEASTRESPONSETIME - Select the service with the lowest average response time. * LEASTBANDWIDTH - Select the service currently handling the least traffic. * LEASTPACKETS - Select the service currently serving the lowest number of packets per second. * CUSTOMLOAD - Base service selection on the SNMP metrics obtained by custom load monitors. * LRTM - Select the service with the lowest response time. Response times are learned through monitoring probes. This method also takes the number of active connections into account. - Also available are a number of hashing methods, in which the appliance extracts a predetermined portion of the request, creates a hash of the portion, and then checks whether any previous requests had the same hash value. If it finds a match, it forwards the request to the service that served those previous requests. Following are the hashing methods: + Also available are a number of hashing methods, in which the appliance extracts a predetermined portion of the request, creates a hash of the portion, and then checks whether any previous requests had the same hash value. If it finds a match, it forwards the request to the service that served those previous requests. Following are the hashing methods: * URLHASH - Create a hash of the request URL (or part of the URL). * DOMAINHASH - Create a hash of the domain name in the request (or part of the domain name). The domain name is taken from either the URL or the Host header. If the domain name appears in both locations, the URL is preferred. If the request does not contain a domain name, the load balancing method defaults to LEASTCONNECTION. - * DESTINATIONIPHASH - Create a hash of the destination IP address in the IP header. - * SOURCEIPHASH - Create a hash of the source IP address in the IP header. - * TOKEN - Extract a token from the request, create a hash of the token, and then select the service to which any previous requests with the same token hash value were sent. - * SRCIPDESTIPHASH - Create a hash of the string obtained by concatenating the source IP address and destination IP address in the IP header. - * SRCIPSRCPORTHASH - Create a hash of the source IP address and source port in the IP header. + * DESTINATIONIPHASH - Create a hash of the destination IP address in the IP header. + * SOURCEIPHASH - Create a hash of the source IP address in the IP header. + * TOKEN - Extract a token from the request, create a hash of the token, and then select the service to which any previous requests with the same token hash value were sent. + * SRCIPDESTIPHASH - Create a hash of the string obtained by concatenating the source IP address and destination IP address in the IP header. + * SRCIPSRCPORTHASH - Create a hash of the source IP address and source port in the IP header. * CALLIDHASH - Create a hash of the SIP Call-ID header. * USER_TOKEN - Same as TOKEN LB method but token needs to be provided from an extension. */ Lbmethod string `json:"lbmethod,omitempty"` /** * Number of bytes to consider for the hash value used in the URLHASH and DOMAINHASH load balancing methods. - */ + */ Hashlength int `json:"hashlength,omitempty"` /** * IPv4 subnet mask to apply to the destination IP address or source IP address when the load balancing method is DESTINATIONIPHASH or SOURCEIPHASH. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Number of bits to consider in an IPv6 destination or source IP address, for creating the hash that is required by the DESTINATIONIPHASH and SOURCEIPHASH load balancing methods. - */ + */ V6netmasklen int `json:"v6netmasklen,omitempty"` /** * Backup load balancing method. Becomes operational if the primary load balancing me @@ -128,23 +128,23 @@ type Lbvserver struct { Backuplbmethod string `json:"backuplbmethod,omitempty"` /** * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. - */ + */ Cookiename string `json:"cookiename,omitempty"` /** * Expression, or name of a named expression, against which traffic is evaluated. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. - * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. */ Rule string `json:"rule,omitempty"` /** * Expression identifying traffic accepted by the virtual server. Can be either an expression (for example, CLIENT.IP.DST.IN_SUBNET(192.0.2.0/24) or the name of a named expression. In the above example, the virtual server accepts all requests whose destination IP address is in the 192.0.2.0/24 subnet. - */ + */ Listenpolicy string `json:"listenpolicy,omitempty"` /** * Integer specifying the priority of the listen policy. A higher number specifies a lower priority. If a request matches the listen policies of more than one virtual server the virtual server whose listen policy has the highest priority (the lowest priority number) accepts the request. - */ + */ Listenpriority int `json:"listenpriority,omitempty"` /** * Expression specifying which part of a server's response to use for creating rule based persistence sessions (persistence type RULE). Can be either an expression or the name of a named expression. @@ -154,121 +154,121 @@ type Lbvserver struct { Resrule string `json:"resrule,omitempty"` /** * Persistence mask for IP based persistence types, for IPv4 virtual servers. - */ + */ Persistmask string `json:"persistmask,omitempty"` /** * Persistence mask for IP based persistence types, for IPv6 virtual servers. - */ + */ V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Use priority queuing on the virtual server. based persistence types, for IPv6 virtual servers. - */ + */ Pq string `json:"pq,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Use network address translation (NAT) for RTSP data connections. - */ + */ Rtspnat string `json:"rtspnat,omitempty"` /** * Redirection mode for load balancing. Available settings function as follows: - * IP - Before forwarding a request to a server, change the destination IP address to the server's IP address. - * MAC - Before forwarding a request to a server, change the destination MAC address to the server's MAC address. The destination IP address is not changed. MAC-based redirection mode is used mostly in firewall load balancing deployments. - * IPTUNNEL - Perform IP-in-IP encapsulation for client IP packets. In the outer IP headers, set the destination IP address to the IP address of the server and the source IP address to the subnet IP (SNIP). The client IP packets are not modified. Applicable to both IPv4 and IPv6 packets. - * TOS - Encode the virtual server's TOS ID in the TOS field of the IP header. + * IP - Before forwarding a request to a server, change the destination IP address to the server's IP address. + * MAC - Before forwarding a request to a server, change the destination MAC address to the server's MAC address. The destination IP address is not changed. MAC-based redirection mode is used mostly in firewall load balancing deployments. + * IPTUNNEL - Perform IP-in-IP encapsulation for client IP packets. In the outer IP headers, set the destination IP address to the IP address of the server and the source IP address to the subnet IP (SNIP). The client IP packets are not modified. Applicable to both IPv4 and IPv6 packets. + * TOS - Encode the virtual server's TOS ID in the TOS field of the IP header. You can use either the IPTUNNEL or the TOS option to implement Direct Server Return (DSR). */ M string `json:"m,omitempty"` /** * TOS ID of the virtual server. Applicable only when the load balancing redirection mode is set to TOS. - */ + */ Tosid int `json:"tosid,omitempty"` /** * Length of the token to be extracted from the data segment of an incoming packet, for use in the token method of load balancing. The length of the token, specified in bytes, must not be greater than 24 KB. Applicable to virtual servers of type TCP. - */ + */ Datalength int `json:"datalength,omitempty"` /** * Offset to be considered when extracting a token from the TCP payload. Applicable to virtual servers, of type TCP, using the token method of load balancing. Must be within the first 24 KB of the TCP payload. - */ + */ Dataoffset int `json:"dataoffset,omitempty"` /** * Perform load balancing on a per-packet basis, without establishing sessions. Recommended for load balancing of intrusion detection system (IDS) servers and scenarios involving direct server return (DSR), where session information is unnecessary. - */ + */ Sessionless string `json:"sessionless,omitempty"` /** * When value is ENABLED, Trofs persistence is honored. When value is DISABLED, Trofs persistence is not honored. - */ + */ Trofspersistence string `json:"trofspersistence,omitempty"` /** * State of the load balancing virtual server. - */ + */ State string `json:"state,omitempty"` /** * Mode in which the connection failover feature must operate for the virtual server. After a failover, established TCP connections and UDP packet flows are kept active and resumed on the secondary appliance. Clients remain connected to the same servers. Available settings function as follows: - * STATEFUL - The primary appliance shares state information with the secondary appliance, in real time, resulting in some runtime processing overhead. - * STATELESS - State information is not shared, and the new primary appliance tries to re-create the packet flow on the basis of the information contained in the packets it receives. + * STATEFUL - The primary appliance shares state information with the secondary appliance, in real time, resulting in some runtime processing overhead. + * STATELESS - State information is not shared, and the new primary appliance tries to re-create the packet flow on the basis of the information contained in the packets it receives. * DISABLED - Connection failover does not occur. */ Connfailover string `json:"connfailover,omitempty"` /** - * URL to which to redirect traffic if the virtual server becomes unavailable. + * URL to which to redirect traffic if the virtual server becomes unavailable. WARNING! Make sure that the domain in the URL does not match the domain specified for a content switching policy. If it does, requests are continuously redirected to the unavailable virtual server. */ Redirurl string `json:"redirurl,omitempty"` /** * Route cacheable requests to a cache redirection virtual server. The load balancing virtual server can forward requests only to a transparent cache redirection virtual server that has an IP address and port combination of *:80, so such a cache redirection virtual server must be configured on the appliance. - */ + */ Cacheable string `json:"cacheable,omitempty"` /** * Idle time, in seconds, after which a client connection is terminated. - */ + */ Clttimeout int `json:"clttimeout,omitempty"` /** * Type of threshold that, when exceeded, triggers spillover. Available settings function as follows: * CONNECTION - Spillover occurs when the number of client connections exceeds the threshold. * DYNAMICCONNECTION - Spillover occurs when the number of client connections at the virtual server exceeds the sum of the maximum client (Max Clients) settings for bound services. Do not specify a spillover threshold for this setting, because the threshold is implied by the Max Clients settings of bound services. - * BANDWIDTH - Spillover occurs when the bandwidth consumed by the virtual server's incoming and outgoing traffic exceeds the threshold. - * HEALTH - Spillover occurs when the percentage of weights of the services that are UP drops below the threshold. For example, if services svc1, svc2, and svc3 are bound to a virtual server, with weights 1, 2, and 3, and the spillover threshold is 50%, spillover occurs if svc1 and svc3 or svc2 and svc3 transition to DOWN. + * BANDWIDTH - Spillover occurs when the bandwidth consumed by the virtual server's incoming and outgoing traffic exceeds the threshold. + * HEALTH - Spillover occurs when the percentage of weights of the services that are UP drops below the threshold. For example, if services svc1, svc2, and svc3 are bound to a virtual server, with weights 1, 2, and 3, and the spillover threshold is 50%, spillover occurs if svc1 and svc3 or svc2 and svc3 transition to DOWN. * NONE - Spillover does not occur. */ Somethod string `json:"somethod,omitempty"` /** * If spillover occurs, maintain source IP address based persistence for both primary and backup virtual servers. - */ + */ Sopersistence string `json:"sopersistence,omitempty"` /** * Timeout for spillover persistence, in minutes. - */ + */ Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` /** * Threshold in percent of active services below which vserver state is made down. If this threshold is 0, vserver state will be up even if one bound service is up. - */ + */ Healththreshold int `json:"healththreshold,omitempty"` /** * Threshold at which spillover occurs. Specify an integer for the CONNECTION spillover method, a bandwidth value in kilobits per second for the BANDWIDTH method (do not enter the units), or a percentage for the HEALTH method (do not enter the percentage symbol). - */ + */ Sothreshold int `json:"sothreshold,omitempty"` /** * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists - */ + */ Sobackupaction string `json:"sobackupaction,omitempty"` /** * Rewrite the port and change the protocol to ensure successful HTTP redirects from services. - */ + */ Redirectportrewrite string `json:"redirectportrewrite,omitempty"` /** * Flush all active transactions associated with a virtual server whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. - */ + */ Downstateflush string `json:"downstateflush,omitempty"` /** * Name of the backup virtual server to which to forward requests if the primary virtual server goes DOWN or reaches its spillover threshold. - */ + */ Backupvserver string `json:"backupvserver,omitempty"` /** * If the primary virtual server goes down, do not allow it to return to primary status until manually enabled. - */ + */ Disableprimaryondown string `json:"disableprimaryondown,omitempty"` /** * Insert an HTTP header, whose value is the IP address and port number of the virtual server, before forwarding a request to the server. The format of the header is : _, where vipHeader is the name that you specify for the header. If the virtual server has an IPv6 address, the address in the header is enclosed in brackets ([ and ]) to separate it from the port number. If you have mapped an IPv4 address to a virtual server's IPv6 address, the value of this parameter determines which IP address is inserted in the header, as follows: @@ -279,91 +279,91 @@ type Lbvserver struct { Insertvserveripport string `json:"insertvserveripport,omitempty"` /** * Name for the inserted header. The default name is vip-header. - */ + */ Vipheader string `json:"vipheader,omitempty"` /** * Fully qualified domain name (FQDN) of the authentication virtual server to which the user must be redirected for authentication. Make sure that the Authentication parameter is set to ENABLED. - */ + */ Authenticationhost string `json:"authenticationhost,omitempty"` /** * Enable or disable user authentication. - */ + */ Authentication string `json:"authentication,omitempty"` /** * Enable or disable user authentication with HTTP 401 responses. - */ + */ Authn401 string `json:"authn401,omitempty"` /** * Name of an authentication virtual server with which to authenticate users. - */ + */ Authnvsname string `json:"authnvsname,omitempty"` /** * Process traffic with the push virtual server that is bound to this load balancing virtual server. - */ + */ Push string `json:"push,omitempty"` /** * Name of the load balancing virtual server, of type PUSH or SSL_PUSH, to which the server pushes updates received on the load balancing virtual server that you are configuring. - */ + */ Pushvserver string `json:"pushvserver,omitempty"` /** * Expression for extracting a label from the server's response. Can be either an expression or the name of a named expression. - */ + */ Pushlabel string `json:"pushlabel,omitempty"` /** * Allow multiple Web 2.0 connections from the same client to connect to the virtual server and expect updates. - */ + */ Pushmulticlients string `json:"pushmulticlients,omitempty"` /** * Name of the TCP profile whose settings are to be applied to the virtual server. - */ + */ Tcpprofilename string `json:"tcpprofilename,omitempty"` /** * Name of the HTTP profile whose settings are to be applied to the virtual server. - */ + */ Httpprofilename string `json:"httpprofilename,omitempty"` /** * Name of the DB profile whose settings are to be applied to the virtual server. - */ + */ Dbprofilename string `json:"dbprofilename,omitempty"` /** * Any comments that you might want to associate with the virtual server. - */ + */ Comment string `json:"comment,omitempty"` /** * Use Layer 2 parameters (channel number, MAC address, and VLAN ID) in addition to the 4-tuple (::::) that is used to identify a connection. Allows multiple TCP and non-TCP connections with the same 4-tuple to co-exist on the Citrix ADC. - */ + */ L2conn string `json:"l2conn,omitempty"` /** * Oracle server version - */ + */ Oracleserverversion string `json:"oracleserverversion,omitempty"` /** * For a load balancing virtual server of type MSSQL, the Microsoft SQL Server version. Set this parameter if you expect some clients to run a version different from the version of the database. This setting provides compatibility between the client-side and server-side connections by ensuring that all communication conforms to the server's version. - */ + */ Mssqlserverversion string `json:"mssqlserverversion,omitempty"` /** * MySQL protocol version that the virtual server advertises to clients. - */ + */ Mysqlprotocolversion int `json:"mysqlprotocolversion,omitempty"` /** * MySQL server version string that the virtual server advertises to clients. - */ + */ Mysqlserverversion string `json:"mysqlserverversion,omitempty"` /** * Character set that the virtual server advertises to clients. - */ + */ Mysqlcharacterset int `json:"mysqlcharacterset,omitempty"` /** * Server capabilities that the virtual server advertises to clients. - */ + */ Mysqlservercapabilities int `json:"mysqlservercapabilities,omitempty"` /** * Apply AppFlow logging to the virtual server. - */ + */ Appflowlog string `json:"appflowlog,omitempty"` /** * Name of the network profile to associate with the virtual server. If you set this parameter, the virtual server uses only the IP addresses in the network profile as source IP addresses when initiating connections with servers. - */ + */ Netprofile string `json:"netprofile,omitempty"` /** * How the Citrix ADC responds to ping requests received for an IP address that is common to one or more virtual servers. Available settings function as follows: @@ -382,168 +382,167 @@ type Lbvserver struct { Rhistate string `json:"rhistate,omitempty"` /** * Number of requests, or percentage of the load on existing services, by which to increase the load on a new service at each interval in slow-start mode. A non-zero value indicates that slow-start is applicable. A zero value indicates that the global RR startup parameter is applied. Changing the value to zero will cause services currently in slow start to take the full traffic as determined by the LB method. Subsequently, any new services added will use the global RR factor. - */ + */ Newservicerequest int `json:"newservicerequest,omitempty"` /** * Units in which to increment load at each interval in slow-start mode. - */ + */ Newservicerequestunit string `json:"newservicerequestunit,omitempty"` /** * Interval, in seconds, between successive increments in the load on a new service or a service whose state has just changed from DOWN to UP. A value of 0 (zero) specifies manual slow start. - */ + */ Newservicerequestincrementinterval int `json:"newservicerequestincrementinterval,omitempty"` /** * Minimum number of members expected to be present when vserver is used in Autoscale. - */ + */ Minautoscalemembers int `json:"minautoscalemembers,omitempty"` /** * Maximum number of members expected to be present when vserver is used in Autoscale. - */ + */ Maxautoscalemembers int `json:"maxautoscalemembers,omitempty"` /** - * Persist AVP number for Diameter Persistency. - In case this AVP is not defined in Base RFC 3588 and it is nested inside a Grouped AVP, - define a sequence of AVP numbers (max 3) in order of parent to child. So say persist AVP number X + * Persist AVP number for Diameter Persistency. + In case this AVP is not defined in Base RFC 3588 and it is nested inside a Grouped AVP, + define a sequence of AVP numbers (max 3) in order of parent to child. So say persist AVP number X is nested inside AVP Y which is nested in Z, then define the list as Z Y X */ Persistavpno []int `json:"persistavpno,omitempty"` /** * This argument decides the behavior incase the service which is selected from an existing persistence session has reached threshold. - */ + */ Skippersistency string `json:"skippersistency,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Name of the authentication profile to be used when authentication is turned on. - */ + */ Authnprofile string `json:"authnprofile,omitempty"` /** * This option is used to retain vlan information of incoming packet when macmode is enabled - */ + */ Macmoderetainvlan string `json:"macmoderetainvlan,omitempty"` /** * Enable database specific load balancing for MySQL and MSSQL service types. - */ + */ Dbslb string `json:"dbslb,omitempty"` /** * This argument is for enabling/disabling the dns64 on lbvserver - */ + */ Dns64 string `json:"dns64,omitempty"` /** * If this option is enabled while resolving DNS64 query AAAA queries are not sent to back end dns server - */ + */ Bypassaaaa string `json:"bypassaaaa,omitempty"` /** * When set to YES, this option causes the DNS replies from this vserver to have the RA bit turned on. Typically one would set this option to YES, when the vserver is load balancing a set of DNS servers thatsupport recursive queries. - */ + */ Recursionavailable string `json:"recursionavailable,omitempty"` /** * By turning on this option packets destined to a vserver in a cluster will not under go any steering. Turn this option for single packet request response mode or when the upstream device is performing a proper RSS for connection based distribution. - */ + */ Processlocal string `json:"processlocal,omitempty"` /** * Name of the DNS profile to be associated with the VServer. DNS profile properties will be applied to the transactions processed by a VServer. This parameter is valid only for DNS and DNS-TCP VServers. - */ + */ Dnsprofilename string `json:"dnsprofilename,omitempty"` /** * Name of the LB profile which is associated to the vserver - */ + */ Lbprofilename string `json:"lbprofilename,omitempty"` /** * Port number for the virtual server, from which we absorb the traffic for http redirect - */ + */ Redirectfromport int `json:"redirectfromport,omitempty"` /** * URL to which all HTTP traffic received on the port specified in the -redirectFromPort parameter is redirected. - */ + */ Httpsredirecturl string `json:"httpsredirecturl,omitempty"` /** * This option enables you to retain existing connections on a node joining a Cluster system or when a node is being configured for passive timeout. By default, this option is disabled. - */ + */ Retainconnectionsoncluster string `json:"retainconnectionsoncluster,omitempty"` /** * Name of the adfsProxy profile to be used to support ADFSPIP protocol for ADFS servers. - */ + */ Adfsproxyprofile string `json:"adfsproxyprofile,omitempty"` /** * Port number for external TCP probe. NetScaler provides support for external TCP health check of the vserver status over the selected port. This option is only supported for vservers assigned with an IPAddress or ipset. - */ + */ Tcpprobeport int `json:"tcpprobeport,omitempty"` /** * Name of QUIC profile which will be attached to the VServer. - */ + */ Quicprofilename string `json:"quicprofilename,omitempty"` /** * Name of the QUIC Bridge profile whose settings are to be applied to the virtual server. - */ + */ Quicbridgeprofilename string `json:"quicbridgeprofilename,omitempty"` /** * Citrix ADC provides support for external health check of the vserver status. Select HTTP or TCP probes for healthcheck - */ + */ Probeprotocol string `json:"probeprotocol,omitempty"` /** * HTTP code to return in SUCCESS case. - */ + */ Probesuccessresponsecode string `json:"probesuccessresponsecode,omitempty"` /** * Citrix ADC provides support for external health check of the vserver status. Select port for HTTP/TCP monitring - */ + */ Probeport int `json:"probeport,omitempty"` /** * Weight to assign to the specified service. - */ + */ Weight int `json:"weight,omitempty"` /** * Service to bind to the virtual server. - */ + */ Servicename string `json:"servicename,omitempty"` /** * The redirect URL to be unset. - */ + */ Redirurlflags bool `json:"redirurlflags,omitempty"` /** * New name for the virtual server. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Value string `json:"value,omitempty"` - Ipmapping string `json:"ipmapping,omitempty"` - Ngname string `json:"ngname,omitempty"` - Type string `json:"type,omitempty"` - Curstate string `json:"curstate,omitempty"` - Effectivestate string `json:"effectivestate,omitempty"` - Status string `json:"status,omitempty"` - Lbrrreason string `json:"lbrrreason,omitempty"` - Redirect string `json:"redirect,omitempty"` - Precedence string `json:"precedence,omitempty"` - Homepage string `json:"homepage,omitempty"` - Dnsvservername string `json:"dnsvservername,omitempty"` - Domain string `json:"domain,omitempty"` - Cachevserver string `json:"cachevserver,omitempty"` - Health string `json:"health,omitempty"` - Ruletype string `json:"ruletype,omitempty"` - Groupname string `json:"groupname,omitempty"` - Cookiedomain string `json:"cookiedomain,omitempty"` - Map string `json:"map,omitempty"` - Gt2gb string `json:"gt2gb,omitempty"` - Consolidatedlconn string `json:"consolidatedlconn,omitempty"` - Consolidatedlconngbl string `json:"consolidatedlconngbl,omitempty"` - Thresholdvalue string `json:"thresholdvalue,omitempty"` - Bindpoint string `json:"bindpoint,omitempty"` - Version string `json:"version,omitempty"` - Totalservices string `json:"totalservices,omitempty"` - Activeservices string `json:"activeservices,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Statechangetimeseconds string `json:"statechangetimeseconds,omitempty"` - Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Value string `json:"value,omitempty"` + Ipmapping string `json:"ipmapping,omitempty"` + Ngname string `json:"ngname,omitempty"` + Type string `json:"type,omitempty"` + Curstate string `json:"curstate,omitempty"` + Effectivestate string `json:"effectivestate,omitempty"` + Status string `json:"status,omitempty"` + Lbrrreason string `json:"lbrrreason,omitempty"` + Redirect string `json:"redirect,omitempty"` + Precedence string `json:"precedence,omitempty"` + Homepage string `json:"homepage,omitempty"` + Dnsvservername string `json:"dnsvservername,omitempty"` + Domain string `json:"domain,omitempty"` + Cachevserver string `json:"cachevserver,omitempty"` + Health string `json:"health,omitempty"` + Ruletype string `json:"ruletype,omitempty"` + Groupname string `json:"groupname,omitempty"` + Cookiedomain string `json:"cookiedomain,omitempty"` + Map string `json:"map,omitempty"` + Gt2gb string `json:"gt2gb,omitempty"` + Consolidatedlconn string `json:"consolidatedlconn,omitempty"` + Consolidatedlconngbl string `json:"consolidatedlconngbl,omitempty"` + Thresholdvalue string `json:"thresholdvalue,omitempty"` + Bindpoint string `json:"bindpoint,omitempty"` + Version string `json:"version,omitempty"` + Totalservices string `json:"totalservices,omitempty"` + Activeservices string `json:"activeservices,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Statechangetimeseconds string `json:"statechangetimeseconds,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` - Isgslb string `json:"isgslb,omitempty"` - Vsvrdynconnsothreshold string `json:"vsvrdynconnsothreshold,omitempty"` - Backupvserverstatus string `json:"backupvserverstatus,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - + Isgslb string `json:"isgslb,omitempty"` + Vsvrdynconnsothreshold string `json:"vsvrdynconnsothreshold,omitempty"` + Backupvserverstatus string `json:"backupvserverstatus,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` } diff --git a/resource/config/lb/lbvserver_analyticsprofile_binding.go b/resource/config/lbvserver_analyticsprofile_binding.go similarity index 96% rename from resource/config/lb/lbvserver_analyticsprofile_binding.go rename to resource/config/lbvserver_analyticsprofile_binding.go index c9b5de4..be5fb01 100644 --- a/resource/config/lb/lbvserver_analyticsprofile_binding.go +++ b/resource/config/lbvserver_analyticsprofile_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the analyticsprofile that can be bound to lbvserver. -*/ + */ type Lbvserveranalyticsprofilebinding struct { /** * Name of the analytics profile bound to the LB vserver. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_appflowpolicy_binding.go b/resource/config/lbvserver_appflowpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_appflowpolicy_binding.go rename to resource/config/lbvserver_appflowpolicy_binding.go index edb5bb4..79f3254 100644 --- a/resource/config/lb/lbvserver_appflowpolicy_binding.go +++ b/resource/config/lbvserver_appflowpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the appflowpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverappflowpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_appfwpolicy_binding.go b/resource/config/lbvserver_appfwpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_appfwpolicy_binding.go rename to resource/config/lbvserver_appfwpolicy_binding.go index e9b37ca..94902e2 100644 --- a/resource/config/lb/lbvserver_appfwpolicy_binding.go +++ b/resource/config/lbvserver_appfwpolicy_binding.go @@ -12,51 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the appfwpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverappfwpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_appqoepolicy_binding.go b/resource/config/lbvserver_appqoepolicy_binding.go similarity index 96% rename from resource/config/lb/lbvserver_appqoepolicy_binding.go rename to resource/config/lbvserver_appqoepolicy_binding.go index 3ece2d0..37753fb 100644 --- a/resource/config/lb/lbvserver_appqoepolicy_binding.go +++ b/resource/config/lbvserver_appqoepolicy_binding.go @@ -12,38 +12,38 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the appqoepolicy that can be bound to lbvserver. -*/ + */ type Lbvserverappqoepolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -54,8 +54,6 @@ type Lbvserverappqoepolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_auditnslogpolicy_binding.go b/resource/config/lbvserver_auditnslogpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_auditnslogpolicy_binding.go rename to resource/config/lbvserver_auditnslogpolicy_binding.go index 4786fe6..6151d08 100644 --- a/resource/config/lb/lbvserver_auditnslogpolicy_binding.go +++ b/resource/config/lbvserver_auditnslogpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the auditnslogpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverauditnslogpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** @@ -55,11 +55,11 @@ type Lbvserverauditnslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -70,8 +70,6 @@ type Lbvserverauditnslogpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_auditsyslogpolicy_binding.go b/resource/config/lbvserver_auditsyslogpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_auditsyslogpolicy_binding.go rename to resource/config/lbvserver_auditsyslogpolicy_binding.go index f3693c9..6e28e37 100644 --- a/resource/config/lb/lbvserver_auditsyslogpolicy_binding.go +++ b/resource/config/lbvserver_auditsyslogpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the auditsyslogpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverauditsyslogpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** @@ -55,11 +55,11 @@ type Lbvserverauditsyslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -70,8 +70,6 @@ type Lbvserverauditsyslogpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_authorizationpolicy_binding.go b/resource/config/lbvserver_authorizationpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_authorizationpolicy_binding.go rename to resource/config/lbvserver_authorizationpolicy_binding.go index b87397c..fcbba5c 100644 --- a/resource/config/lb/lbvserver_authorizationpolicy_binding.go +++ b/resource/config/lbvserver_authorizationpolicy_binding.go @@ -12,51 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the authorizationpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverauthorizationpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_binding.go b/resource/config/lbvserver_binding.go similarity index 94% rename from resource/config/lb/lbvserver_binding.go rename to resource/config/lbvserver_binding.go index d1dd057..516cf05 100644 --- a/resource/config/lb/lbvserver_binding.go +++ b/resource/config/lbvserver_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** -* Binding object which returns the resources bound to lbvserver_binding. -*/ +* Binding object which returns the resources bound to lbvserver_binding. + */ type Lbvserverbinding struct { /** - * Name of the virtual server. If no name is provided, statistical data of all configured virtual servers is displayed.
Minimum value = - */ + * Name of the virtual server. If no name is provided, statistical data of all configured virtual servers is displayed.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_botpolicy_binding.go b/resource/config/lbvserver_botpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_botpolicy_binding.go rename to resource/config/lbvserver_botpolicy_binding.go index 2d29cd4..890e5a5 100644 --- a/resource/config/lb/lbvserver_botpolicy_binding.go +++ b/resource/config/lbvserver_botpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the botpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverbotpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_cachepolicy_binding.go b/resource/config/lbvserver_cachepolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_cachepolicy_binding.go rename to resource/config/lbvserver_cachepolicy_binding.go index c9e432c..a400833 100644 --- a/resource/config/lb/lbvserver_cachepolicy_binding.go +++ b/resource/config/lbvserver_cachepolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the cachepolicy that can be bound to lbvserver. -*/ + */ type Lbvservercachepolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_cmppolicy_binding.go b/resource/config/lbvserver_cmppolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_cmppolicy_binding.go rename to resource/config/lbvserver_cmppolicy_binding.go index 6071ff1..8cae1a6 100644 --- a/resource/config/lb/lbvserver_cmppolicy_binding.go +++ b/resource/config/lbvserver_cmppolicy_binding.go @@ -12,51 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the cmppolicy that can be bound to lbvserver. -*/ + */ type Lbvservercmppolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_contentinspectionpolicy_binding.go b/resource/config/lbvserver_contentinspectionpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_contentinspectionpolicy_binding.go rename to resource/config/lbvserver_contentinspectionpolicy_binding.go index 8802302..7b67c2e 100644 --- a/resource/config/lb/lbvserver_contentinspectionpolicy_binding.go +++ b/resource/config/lbvserver_contentinspectionpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the contentinspectionpolicy that can be bound to lbvserver. -*/ + */ type Lbvservercontentinspectionpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_csvserver_binding.go b/resource/config/lbvserver_csvserver_binding.go similarity index 92% rename from resource/config/lb/lbvserver_csvserver_binding.go rename to resource/config/lbvserver_csvserver_binding.go index 5370fd9..b48fc6b 100644 --- a/resource/config/lb/lbvserver_csvserver_binding.go +++ b/resource/config/lbvserver_csvserver_binding.go @@ -12,44 +12,42 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the csvserver that can be bound to lbvserver. -*/ + */ type Lbvservercsvserverbinding struct { /** * Cache virtual server. - */ + */ Cachevserver string `json:"cachevserver,omitempty"` /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Cache type. - */ + */ Cachetype string `json:"cachetype,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Number of hits. - */ + */ Hits int `json:"hits,omitempty"` /** * Number of hits. - */ - Pipolicyhits int `json:"pipolicyhits,omitempty"` + */ + Pipolicyhits int `json:"pipolicyhits,omitempty"` Policysubtype int `json:"policysubtype,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_detectionpolicy_binding.go b/resource/config/lbvserver_detectionpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_detectionpolicy_binding.go rename to resource/config/lbvserver_detectionpolicy_binding.go index 116b463..8ceac07 100644 --- a/resource/config/lb/lbvserver_detectionpolicy_binding.go +++ b/resource/config/lbvserver_detectionpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the detectionpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverdetectionpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_dnspolicy64_binding.go b/resource/config/lbvserver_dnspolicy64_binding.go similarity index 96% rename from resource/config/lb/lbvserver_dnspolicy64_binding.go rename to resource/config/lbvserver_dnspolicy64_binding.go index 97f98cb..a507fd5 100644 --- a/resource/config/lb/lbvserver_dnspolicy64_binding.go +++ b/resource/config/lbvserver_dnspolicy64_binding.go @@ -12,38 +12,38 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the dnspolicy64 that can be bound to lbvserver. -*/ + */ type Lbvserverdnspolicy64binding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -54,8 +54,6 @@ type Lbvserverdnspolicy64binding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_dospolicy_binding.go b/resource/config/lbvserver_dospolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_dospolicy_binding.go rename to resource/config/lbvserver_dospolicy_binding.go index bf7c0f7..8f2e534 100644 --- a/resource/config/lb/lbvserver_dospolicy_binding.go +++ b/resource/config/lbvserver_dospolicy_binding.go @@ -12,27 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the dospolicy that can be bound to lbvserver. -*/ + */ type Lbvserverdospolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_feopolicy_binding.go b/resource/config/lbvserver_feopolicy_binding.go similarity index 96% rename from resource/config/lb/lbvserver_feopolicy_binding.go rename to resource/config/lbvserver_feopolicy_binding.go index fa0e10c..120d4f4 100644 --- a/resource/config/lb/lbvserver_feopolicy_binding.go +++ b/resource/config/lbvserver_feopolicy_binding.go @@ -12,38 +12,38 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the feopolicy that can be bound to lbvserver. -*/ + */ type Lbvserverfeopolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -54,8 +54,6 @@ type Lbvserverfeopolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_filterpolicy_binding.go b/resource/config/lbvserver_filterpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_filterpolicy_binding.go rename to resource/config/lbvserver_filterpolicy_binding.go index 247c891..d0b8d60 100644 --- a/resource/config/lb/lbvserver_filterpolicy_binding.go +++ b/resource/config/lbvserver_filterpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the filterpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverfilterpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** @@ -55,11 +55,11 @@ type Lbvserverfilterpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -70,8 +70,6 @@ type Lbvserverfilterpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_nslogpolicy_binding.go b/resource/config/lbvserver_nslogpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_nslogpolicy_binding.go rename to resource/config/lbvserver_nslogpolicy_binding.go index 4b2b6dc..4198ada 100644 --- a/resource/config/lb/lbvserver_nslogpolicy_binding.go +++ b/resource/config/lbvserver_nslogpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the nslogpolicy that can be bound to lbvserver. -*/ + */ type Lbvservernslogpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** @@ -55,11 +55,11 @@ type Lbvservernslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -70,8 +70,6 @@ type Lbvservernslogpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_pacingpolicy_binding.go b/resource/config/lbvserver_pacingpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_pacingpolicy_binding.go rename to resource/config/lbvserver_pacingpolicy_binding.go index 0141088..3ac85aa 100644 --- a/resource/config/lb/lbvserver_pacingpolicy_binding.go +++ b/resource/config/lbvserver_pacingpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the pacingpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverpacingpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_policy64_binding.go b/resource/config/lbvserver_policy64_binding.go similarity index 96% rename from resource/config/lb/lbvserver_policy64_binding.go rename to resource/config/lbvserver_policy64_binding.go index 6e3347a..48066c6 100644 --- a/resource/config/lb/lbvserver_policy64_binding.go +++ b/resource/config/lbvserver_policy64_binding.go @@ -12,38 +12,38 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the policy64 that can be bound to lbvserver. -*/ + */ type Lbvserverpolicy64binding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -54,8 +54,6 @@ type Lbvserverpolicy64binding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_policy_binding.go b/resource/config/lbvserver_policy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_policy_binding.go rename to resource/config/lbvserver_policy_binding.go index bc43c2d..760fff3 100644 --- a/resource/config/lb/lbvserver_policy_binding.go +++ b/resource/config/lbvserver_policy_binding.go @@ -12,51 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the policy that can be bound to lbvserver. -*/ + */ type Lbvserverpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_pqpolicy_binding.go b/resource/config/lbvserver_pqpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_pqpolicy_binding.go rename to resource/config/lbvserver_pqpolicy_binding.go index f9089b8..b1ef5eb 100644 --- a/resource/config/lb/lbvserver_pqpolicy_binding.go +++ b/resource/config/lbvserver_pqpolicy_binding.go @@ -12,26 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the pqpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverpqpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Integer specifying the policy's priority. The lower the priority number, the higher the policy's priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: @@ -51,11 +51,11 @@ type Lbvserverpqpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -66,8 +66,6 @@ type Lbvserverpqpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_profile_binding.go b/resource/config/lbvserver_profile_binding.go similarity index 96% rename from resource/config/lb/lbvserver_profile_binding.go rename to resource/config/lbvserver_profile_binding.go index 5faf746..1b4fb1d 100644 --- a/resource/config/lb/lbvserver_profile_binding.go +++ b/resource/config/lbvserver_profile_binding.go @@ -12,23 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the profile that can be bound to lbvserver. -*/ + */ type Lbvserverprofilebinding struct { /** * Name of the analytics profile bound to the LB vserver. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_responderpolicy_binding.go b/resource/config/lbvserver_responderpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_responderpolicy_binding.go rename to resource/config/lbvserver_responderpolicy_binding.go index 79f57b2..b4c8ce7 100644 --- a/resource/config/lb/lbvserver_responderpolicy_binding.go +++ b/resource/config/lbvserver_responderpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the responderpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverresponderpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_rewritepolicy_binding.go b/resource/config/lbvserver_rewritepolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_rewritepolicy_binding.go rename to resource/config/lbvserver_rewritepolicy_binding.go index d5d5f47..bd37356 100644 --- a/resource/config/lb/lbvserver_rewritepolicy_binding.go +++ b/resource/config/lbvserver_rewritepolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the rewritepolicy that can be bound to lbvserver. -*/ + */ type Lbvserverrewritepolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_scpolicy_binding.go b/resource/config/lbvserver_scpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_scpolicy_binding.go rename to resource/config/lbvserver_scpolicy_binding.go index 7e5f951..2ab6b8e 100644 --- a/resource/config/lb/lbvserver_scpolicy_binding.go +++ b/resource/config/lbvserver_scpolicy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the scpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverscpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** @@ -51,11 +51,11 @@ type Lbvserverscpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -66,8 +66,6 @@ type Lbvserverscpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_service_binding.go b/resource/config/lbvserver_service_binding.go similarity index 95% rename from resource/config/lb/lbvserver_service_binding.go rename to resource/config/lbvserver_service_binding.go index a2e1364..245f390 100644 --- a/resource/config/lb/lbvserver_service_binding.go +++ b/resource/config/lbvserver_service_binding.go @@ -12,71 +12,69 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the service that can be bound to lbvserver. -*/ + */ type Lbvserverservicebinding struct { /** * Service to bind to the virtual server. - */ + */ Servicename string `json:"servicename,omitempty"` /** * IPv4 or IPv6 address to assign to the virtual server. - */ + */ Ipv46 string `json:"ipv46,omitempty"` /** * Port number for the virtual server. - */ + */ Port int `json:"port,omitempty"` /** * Protocol used by the service (also called the service type). - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * Current LB vserver state. - */ + */ Curstate string `json:"curstate,omitempty"` /** * Weight to assign to the specified service. - */ + */ Weight int `json:"weight,omitempty"` /** * Dynamic weight - */ + */ Dynamicweight int `json:"dynamicweight,omitempty"` /** * Encryped Ip address and port of the service that is inserted into the set-cookie http header - */ + */ Cookieipport string `json:"cookieipport,omitempty"` /** * Vserver Id - */ + */ Vserverid string `json:"vserverid,omitempty"` /** * used for showing the ip of bound entities - */ + */ Vsvrbindsvcip string `json:"vsvrbindsvcip,omitempty"` /** * used for showing ports of bound entities - */ + */ Vsvrbindsvcport int `json:"vsvrbindsvcport,omitempty"` /** * Used for displaying the location of bound services. - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Name of the service group. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_servicegroup_binding.go b/resource/config/lbvserver_servicegroup_binding.go similarity index 96% rename from resource/config/lb/lbvserver_servicegroup_binding.go rename to resource/config/lbvserver_servicegroup_binding.go index 99fcdde..cacbb5f 100644 --- a/resource/config/lb/lbvserver_servicegroup_binding.go +++ b/resource/config/lbvserver_servicegroup_binding.go @@ -12,31 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the servicegroup that can be bound to lbvserver. -*/ + */ type Lbvserverservicegroupbinding struct { /** * The service group name bound to the selected load balancing virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * Service to bind to the virtual server. - */ + */ Servicename string `json:"servicename,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Integer specifying the weight of the service. A larger number specifies a greater weight. Defines the capacity of the service relative to the other services in the load balancing configuration. Determines the priority given to the service in load balancing decisions. - */ + */ Weight int `json:"weight,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_servicegroupmember_binding.go b/resource/config/lbvserver_servicegroupmember_binding.go similarity index 96% rename from resource/config/lb/lbvserver_servicegroupmember_binding.go rename to resource/config/lbvserver_servicegroupmember_binding.go index eebbc2c..7237b05 100644 --- a/resource/config/lb/lbvserver_servicegroupmember_binding.go +++ b/resource/config/lbvserver_servicegroupmember_binding.go @@ -12,63 +12,61 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the servicegroupmember that can be bound to lbvserver. -*/ + */ type Lbvserverservicegroupmemberbinding struct { /** * The service group name bound to the selected load balancing virtual server. - */ + */ Servicegroupname string `json:"servicegroupname,omitempty"` /** * IPv4 or IPv6 address to assign to the virtual server. - */ + */ Ipv46 string `json:"ipv46,omitempty"` /** * Port number for the virtual server. - */ + */ Port int `json:"port,omitempty"` /** * Protocol used by the service (also called the service type). - */ + */ Servicetype string `json:"servicetype,omitempty"` /** * Current LB vserver state. - */ + */ Curstate string `json:"curstate,omitempty"` /** * Weight to assign to the specified service. - */ + */ Weight int `json:"weight,omitempty"` /** * Dynamic weight - */ + */ Dynamicweight int `json:"dynamicweight,omitempty"` /** * Encryped Ip address and port of the service that is inserted into the set-cookie http header - */ + */ Cookieipport string `json:"cookieipport,omitempty"` /** * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. - */ + */ Cookiename string `json:"cookiename,omitempty"` /** * Vserver Id - */ + */ Vserverid string `json:"vserverid,omitempty"` /** * Used for displaying the location of bound services. - */ + */ Preferredlocation string `json:"preferredlocation,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_spilloverpolicy_binding.go b/resource/config/lbvserver_spilloverpolicy_binding.go similarity index 96% rename from resource/config/lb/lbvserver_spilloverpolicy_binding.go rename to resource/config/lbvserver_spilloverpolicy_binding.go index 6421be9..13c9b0c 100644 --- a/resource/config/lb/lbvserver_spilloverpolicy_binding.go +++ b/resource/config/lbvserver_spilloverpolicy_binding.go @@ -12,38 +12,38 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the spilloverpolicy that can be bound to lbvserver. -*/ + */ type Lbvserverspilloverpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -54,8 +54,6 @@ type Lbvserverspilloverpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_syslogpolicy_binding.go b/resource/config/lbvserver_syslogpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_syslogpolicy_binding.go rename to resource/config/lbvserver_syslogpolicy_binding.go index c8c5723..2861210 100644 --- a/resource/config/lb/lbvserver_syslogpolicy_binding.go +++ b/resource/config/lbvserver_syslogpolicy_binding.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the syslogpolicy that can be bound to lbvserver. -*/ + */ type Lbvserversyslogpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Use SureConnect on the virtual server. - */ + */ Sc string `json:"sc,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** @@ -55,11 +55,11 @@ type Lbvserversyslogpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -70,8 +70,6 @@ type Lbvserversyslogpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_tmtrafficpolicy_binding.go b/resource/config/lbvserver_tmtrafficpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_tmtrafficpolicy_binding.go rename to resource/config/lbvserver_tmtrafficpolicy_binding.go index cbc4397..772041b 100644 --- a/resource/config/lb/lbvserver_tmtrafficpolicy_binding.go +++ b/resource/config/lbvserver_tmtrafficpolicy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the tmtrafficpolicy that can be bound to lbvserver. -*/ + */ type Lbvservertmtrafficpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** @@ -51,11 +51,11 @@ type Lbvservertmtrafficpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -66,8 +66,6 @@ type Lbvservertmtrafficpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_trafficpolicy_binding.go b/resource/config/lbvserver_trafficpolicy_binding.go similarity index 98% rename from resource/config/lb/lbvserver_trafficpolicy_binding.go rename to resource/config/lbvserver_trafficpolicy_binding.go index 571f85c..76a4a8f 100644 --- a/resource/config/lb/lbvserver_trafficpolicy_binding.go +++ b/resource/config/lbvserver_trafficpolicy_binding.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the trafficpolicy that can be bound to lbvserver. -*/ + */ type Lbvservertrafficpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** @@ -51,11 +51,11 @@ type Lbvservertrafficpolicybinding struct { Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Bind point to which to bind the policy. - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: @@ -66,8 +66,6 @@ type Lbvservertrafficpolicybinding struct { Labeltype string `json:"labeltype,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_transformpolicy_binding.go b/resource/config/lbvserver_transformpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_transformpolicy_binding.go rename to resource/config/lbvserver_transformpolicy_binding.go index 9807442..2760d3f 100644 --- a/resource/config/lb/lbvserver_transformpolicy_binding.go +++ b/resource/config/lbvserver_transformpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the transformpolicy that can be bound to lbvserver. -*/ + */ type Lbvservertransformpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go b/resource/config/lbvserver_videooptimizationdetectionpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go rename to resource/config/lbvserver_videooptimizationdetectionpolicy_binding.go index 20b9515..6474999 100644 --- a/resource/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go +++ b/resource/config/lbvserver_videooptimizationdetectionpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the videooptimizationdetectionpolicy that can be bound to lbvserver. -*/ + */ type Lbvservervideooptimizationdetectionpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go b/resource/config/lbvserver_videooptimizationpacingpolicy_binding.go similarity index 95% rename from resource/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go rename to resource/config/lbvserver_videooptimizationpacingpolicy_binding.go index e33f59b..2f039f8 100644 --- a/resource/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go +++ b/resource/config/lbvserver_videooptimizationpacingpolicy_binding.go @@ -12,47 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the videooptimizationpacingpolicy that can be bound to lbvserver. -*/ + */ type Lbvservervideooptimizationpacingpolicybinding struct { /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Priority. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * The bindpoint to which the policy is bound - */ + */ Bindpoint string `json:"bindpoint,omitempty"` /** * Invoke policies bound to a virtual server or policy label. - */ + */ Invoke bool `json:"invoke,omitempty"` /** * The invocation type. - */ + */ Labeltype string `json:"labeltype,omitempty"` /** * Name of the label invoked. - */ + */ Labelname string `json:"labelname,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbvserver_vserver_binding.go b/resource/config/lbvserver_vserver_binding.go similarity index 92% rename from resource/config/lb/lbvserver_vserver_binding.go rename to resource/config/lbvserver_vserver_binding.go index a4e9957..8df1be9 100644 --- a/resource/config/lb/lbvserver_vserver_binding.go +++ b/resource/config/lbvserver_vserver_binding.go @@ -12,48 +12,46 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the vserver that can be bound to lbvserver. -*/ + */ type Lbvservervserverbinding struct { /** * Cache virtual server. - */ + */ Cachevserver string `json:"cachevserver,omitempty"` /** * Name of the policy bound to the LB vserver. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Cache type. - */ + */ Cachetype string `json:"cachetype,omitempty"` /** * Priority. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Number of hits. - */ + */ Hits uint32 `json:"hits,omitempty"` /** * Number of hits. - */ - Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` + */ + Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` Policysubtype uint32 `json:"policysubtype,omitempty"` /** * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. - CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). */ Name string `json:"name,omitempty"` /** * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. - */ + */ Labelname string `json:"labelname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbwlm.go b/resource/config/lbwlm.go similarity index 93% rename from resource/config/lb/lbwlm.go rename to resource/config/lbwlm.go index b4df223..dada680 100644 --- a/resource/config/lb/lbwlm.go +++ b/resource/config/lbwlm.go @@ -12,38 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Configuration for web log manager resource. -*/ + */ type Lbwlm struct { /** * The name of the Work Load Manager. - */ + */ Wlmname string `json:"wlmname,omitempty"` /** * The IP address of the WLM. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * The port of the WLM. - */ + */ Port int `json:"port,omitempty"` /** * The LBUID for the Load Balancer to communicate to the Work Load Manager. - */ + */ Lbuid string `json:"lbuid,omitempty"` /** * The idle time period after which Citrix ADC would probe the WLM. The value ranges from 1 to 1440 minutes. - */ + */ Katimeout int `json:"katimeout,omitempty"` //------- Read only Parameter ---------; Secure string `json:"secure,omitempty"` - State string `json:"state,omitempty"` - + State string `json:"state,omitempty"` } diff --git a/resource/config/lb/lbwlm_binding.go b/resource/config/lbwlm_binding.go similarity index 89% rename from resource/config/lb/lbwlm_binding.go rename to resource/config/lbwlm_binding.go index 0e656eb..8b4bbc9 100644 --- a/resource/config/lb/lbwlm_binding.go +++ b/resource/config/lbwlm_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** -* Binding object which returns the resources bound to lbwlm_binding. -*/ +* Binding object which returns the resources bound to lbwlm_binding. + */ type Lbwlmbinding struct { /** - * The name of the work load manager.
Minimum value = - */ + * The name of the work load manager.
Minimum value = + */ Wlmname string `json:"wlmname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbwlm_lbvserver_binding.go b/resource/config/lbwlm_lbvserver_binding.go similarity index 96% rename from resource/config/lb/lbwlm_lbvserver_binding.go rename to resource/config/lbwlm_lbvserver_binding.go index e620dfc..925a34b 100644 --- a/resource/config/lb/lbwlm_lbvserver_binding.go +++ b/resource/config/lbwlm_lbvserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the lbvserver that can be bound to lbwlm. -*/ + */ type Lbwlmlbvserverbinding struct { /** * Name of the virtual server which is to be bound to the WLM. - */ + */ Vservername string `json:"vservername,omitempty"` /** * The name of the Work Load Manager. - */ + */ Wlmname string `json:"wlmname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lb/lbwlm_vserver_binding.go b/resource/config/lbwlm_vserver_binding.go similarity index 96% rename from resource/config/lb/lbwlm_vserver_binding.go rename to resource/config/lbwlm_vserver_binding.go index c0a515e..3a626fc 100644 --- a/resource/config/lb/lbwlm_vserver_binding.go +++ b/resource/config/lbwlm_vserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lb +package config /** * Binding class showing the vserver that can be bound to lbwlm. -*/ + */ type Lbwlmvserverbinding struct { /** * Name of the virtual server which is to be bound to the WLM. - */ + */ Vservername string `json:"vservername,omitempty"` /** * The name of the Work Load Manager. - */ + */ Wlmname string `json:"wlmname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/linkset.go b/resource/config/linkset.go similarity index 96% rename from resource/config/network/linkset.go rename to resource/config/linkset.go index 28f7caf..3132bf8 100644 --- a/resource/config/network/linkset.go +++ b/resource/config/linkset.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for link set resource. -*/ + */ type Linkset struct { /** * Unique identifier for the linkset. Must be of the form LS/x, where x can be an integer from 1 to 32. - */ + */ Id string `json:"id,omitempty"` //------- Read only Parameter ---------; Ifnum string `json:"ifnum,omitempty"` - } diff --git a/resource/config/network/linkset_binding.go b/resource/config/linkset_binding.go similarity index 96% rename from resource/config/network/linkset_binding.go rename to resource/config/linkset_binding.go index 364de80..41e5704 100644 --- a/resource/config/network/linkset_binding.go +++ b/resource/config/linkset_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to linkset_binding. -*/ +* Binding object which returns the resources bound to linkset_binding. + */ type Linksetbinding struct { /** * ID of the linkset for which to display information. If an ID is not provided, the display includes information about all linksets that are available in the cluster. - */ + */ Id string `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/linkset_channel_binding.go b/resource/config/linkset_channel_binding.go similarity index 96% rename from resource/config/network/linkset_channel_binding.go rename to resource/config/linkset_channel_binding.go index 28bacba..7628d1a 100644 --- a/resource/config/network/linkset_channel_binding.go +++ b/resource/config/linkset_channel_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the channel that can be bound to linkset. -*/ + */ type Linksetchannelbinding struct { /** * The interfaces to be bound to the linkset. - */ + */ Ifnum string `json:"ifnum,omitempty"` /** * ID of the linkset to which to bind the interfaces. - */ + */ Id string `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/linkset_interface_binding.go b/resource/config/linkset_interface_binding.go similarity index 96% rename from resource/config/network/linkset_interface_binding.go rename to resource/config/linkset_interface_binding.go index 6bf2b13..9b2644e 100644 --- a/resource/config/network/linkset_interface_binding.go +++ b/resource/config/linkset_interface_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the interface that can be bound to linkset. -*/ + */ type Linksetinterfacebinding struct { /** * The interfaces to be bound to the linkset. - */ + */ Ifnum string `json:"ifnum,omitempty"` /** * ID of the linkset to which to bind the interfaces. - */ + */ Id string `json:"id,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lldp/lldpneighbors.go b/resource/config/lldp/lldpneighbors.go deleted file mode 100644 index 25af747..0000000 --- a/resource/config/lldp/lldpneighbors.go +++ /dev/null @@ -1,65 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package lldp - -/** -* Configuration for lldp neighbors resource. -*/ -type Lldpneighbors struct { - /** - * Interface Name - */ - Ifnum string `json:"ifnum,omitempty"` - /** - * Unique number that identifies the cluster node. - */ - Nodeid int `json:"nodeid,omitempty"` - - //------- Read only Parameter ---------; - - Chassisidsubtype string `json:"chassisidsubtype,omitempty"` - Chassisid string `json:"chassisid,omitempty"` - Portidsubtype string `json:"portidsubtype,omitempty"` - Portid string `json:"portid,omitempty"` - Ttl string `json:"ttl,omitempty"` - Portdescription string `json:"portdescription,omitempty"` - Sys string `json:"sys,omitempty"` - Sysdesc string `json:"sysdesc,omitempty"` - Mgmtaddresssubtype string `json:"mgmtaddresssubtype,omitempty"` - Mgmtaddress string `json:"mgmtaddress,omitempty"` - Iftype string `json:"iftype,omitempty"` - Ifnumber string `json:"ifnumber,omitempty"` - Vlan string `json:"vlan,omitempty"` - Vlanid string `json:"vlanid,omitempty"` - Portprotosupported string `json:"portprotosupported,omitempty"` - Portprotoenabled string `json:"portprotoenabled,omitempty"` - Portprotoid string `json:"portprotoid,omitempty"` - Portvlanid string `json:"portvlanid,omitempty"` - Protocolid string `json:"protocolid,omitempty"` - Linkaggrcapable string `json:"linkaggrcapable,omitempty"` - Linkaggrenabled string `json:"linkaggrenabled,omitempty"` - Linkaggrid string `json:"linkaggrid,omitempty"` - Flag string `json:"flag,omitempty"` - Syscapabilities string `json:"syscapabilities,omitempty"` - Syscapenabled string `json:"syscapenabled,omitempty"` - Autonegsupport string `json:"autonegsupport,omitempty"` - Autonegenabled string `json:"autonegenabled,omitempty"` - Autonegadvertised string `json:"autonegadvertised,omitempty"` - Autonegmautype string `json:"autonegmautype,omitempty"` - Mtu string `json:"mtu,omitempty"` - -} diff --git a/resource/config/lldpneighbors.go b/resource/config/lldpneighbors.go new file mode 100644 index 0000000..42dd50c --- /dev/null +++ b/resource/config/lldpneighbors.go @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for lldp neighbors resource. + */ +type Lldpneighbors struct { + /** + * Interface Name + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid int `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Chassisidsubtype string `json:"chassisidsubtype,omitempty"` + Chassisid string `json:"chassisid,omitempty"` + Portidsubtype string `json:"portidsubtype,omitempty"` + Portid string `json:"portid,omitempty"` + Ttl string `json:"ttl,omitempty"` + Portdescription string `json:"portdescription,omitempty"` + Sys string `json:"sys,omitempty"` + Sysdesc string `json:"sysdesc,omitempty"` + Mgmtaddresssubtype string `json:"mgmtaddresssubtype,omitempty"` + Mgmtaddress string `json:"mgmtaddress,omitempty"` + Iftype string `json:"iftype,omitempty"` + Ifnumber string `json:"ifnumber,omitempty"` + Vlan string `json:"vlan,omitempty"` + Vlanid string `json:"vlanid,omitempty"` + Portprotosupported string `json:"portprotosupported,omitempty"` + Portprotoenabled string `json:"portprotoenabled,omitempty"` + Portprotoid string `json:"portprotoid,omitempty"` + Portvlanid string `json:"portvlanid,omitempty"` + Protocolid string `json:"protocolid,omitempty"` + Linkaggrcapable string `json:"linkaggrcapable,omitempty"` + Linkaggrenabled string `json:"linkaggrenabled,omitempty"` + Linkaggrid string `json:"linkaggrid,omitempty"` + Flag string `json:"flag,omitempty"` + Syscapabilities string `json:"syscapabilities,omitempty"` + Syscapenabled string `json:"syscapenabled,omitempty"` + Autonegsupport string `json:"autonegsupport,omitempty"` + Autonegenabled string `json:"autonegenabled,omitempty"` + Autonegadvertised string `json:"autonegadvertised,omitempty"` + Autonegmautype string `json:"autonegmautype,omitempty"` + Mtu string `json:"mtu,omitempty"` +} diff --git a/resource/config/lldp/lldpparam.go b/resource/config/lldpparam.go similarity index 97% rename from resource/config/lldp/lldpparam.go rename to resource/config/lldpparam.go index 7b91ef7..c40e2c7 100644 --- a/resource/config/lldp/lldpparam.go +++ b/resource/config/lldpparam.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lldp +package config /** * Configuration for lldp params resource. -*/ + */ type Lldpparam struct { /** * A multiplier for calculating the duration for which the receiving device stores the LLDP information in its database before discarding or removing it. The duration is calculated as the holdtimeTxMult (Holdtime Multiplier) parameter value multiplied by the timer (Timer) parameter value. - */ + */ Holdtimetxmult int `json:"holdtimetxmult,omitempty"` /** * Interval, in seconds, between LLDP packet data units (LLDPDUs). that the Citrix ADC sends to a directly connected device. - */ + */ Timer int `json:"timer,omitempty"` /** * Global mode of Link Layer Discovery Protocol (LLDP) on the Citrix ADC. The resultant LLDP mode of an interface depends on the LLDP mode configured at the global and the interface levels. - */ + */ Mode string `json:"mode,omitempty"` - } diff --git a/resource/config/basic/location.go b/resource/config/location.go similarity index 94% rename from resource/config/basic/location.go rename to resource/config/location.go index 0690aa5..8df6230 100644 --- a/resource/config/basic/location.go +++ b/resource/config/location.go @@ -12,34 +12,34 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for location resource. -*/ + */ type Location struct { /** * First IP address in the range, in dotted decimal notation. - */ + */ Ipfrom string `json:"ipfrom,omitempty"` /** * Last IP address in the range, in dotted decimal notation. - */ + */ Ipto string `json:"ipto,omitempty"` /** - * String of qualifiers, in dotted notation, describing the geographical location of the IP address range. Each qualifier is more specific than the one that precedes it, as in continent.country.region.city.isp.organization. For example, "NA.US.CA.San Jose.ATT.citrix". + * String of qualifiers, in dotted notation, describing the geographical location of the IP address range. Each qualifier is more specific than the one that precedes it, as in continent.country.region.city.isp.organization. For example, "NA.US.CA.San Jose.ATT.citrix". Note: A qualifier that includes a dot (.) or space ( ) must be enclosed in double quotation marks. */ Preferredlocation string `json:"preferredlocation,omitempty"` /** - * Numerical value, in degrees, specifying the longitude of the geographical location of the IP address-range. + * Numerical value, in degrees, specifying the longitude of the geographical location of the IP address-range. Note: Longitude and latitude parameters are used for selecting a service with the static proximity GSLB method. If they are not specified, selection is based on the qualifiers specified for the location. */ Longitude int `json:"longitude,omitempty"` /** - * Numerical value, in degrees, specifying the latitude of the geographical location of the IP address-range. + * Numerical value, in degrees, specifying the latitude of the geographical location of the IP address-range. Note: Longitude and latitude parameters are used for selecting a service with the static proximity GSLB method. If they are not specified, selection is based on the qualifiers specified for the location. */ Latitude int `json:"latitude,omitempty"` @@ -52,5 +52,4 @@ type Location struct { Q4label string `json:"q4label,omitempty"` Q5label string `json:"q5label,omitempty"` Q6label string `json:"q6label,omitempty"` - } diff --git a/resource/config/basic/locationdata.go b/resource/config/locationdata.go similarity index 96% rename from resource/config/basic/locationdata.go rename to resource/config/locationdata.go index a4a1203..fb85a0c 100644 --- a/resource/config/basic/locationdata.go +++ b/resource/config/locationdata.go @@ -12,13 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for location data resource. -*/ + */ type Locationdata struct { - } diff --git a/resource/config/basic/locationfile.go b/resource/config/locationfile.go similarity index 97% rename from resource/config/basic/locationfile.go rename to resource/config/locationfile.go index 275b181..ea00e7d 100644 --- a/resource/config/basic/locationfile.go +++ b/resource/config/locationfile.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for location file resource. -*/ + */ type Locationfile struct { /** * Name of the location file, with or without absolute path. If the path is not included, the default path (/var/netscaler/locdb) is assumed. In a high availability setup, the static database must be stored in the same location on both Citrix ADCs. - */ + */ Locationfile string `json:"Locationfile,omitempty"` /** * Format of the location file. Required for the Citrix ADC to identify how to read the location file. - */ + */ Format string `json:"format,omitempty"` /** * URL \(protocol, host, path, and file name\) from where the location file will be imported. NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. */ Src string `json:"src,omitempty"` - } diff --git a/resource/config/basic/locationfile6.go b/resource/config/locationfile6.go similarity index 97% rename from resource/config/basic/locationfile6.go rename to resource/config/locationfile6.go index 40f8cf4..62dfa9a 100644 --- a/resource/config/basic/locationfile6.go +++ b/resource/config/locationfile6.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for location file6 resource. -*/ + */ type Locationfile6 struct { /** * Name of the IPv6 location file, with or without absolute path. If the path is not included, the default path (/var/netscaler/locdb) is assumed. In a high availability setup, the static database must be stored in the same location on both Citrix ADCs. - */ + */ Locationfile string `json:"Locationfile,omitempty"` /** * Format of the IPv6 location file. Required for the Citrix ADC to identify how to read the location file. - */ + */ Format string `json:"format,omitempty"` /** * URL \(protocol, host, path, and file name\) from where the location file will be imported. NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. */ Src string `json:"src,omitempty"` - } diff --git a/resource/config/basic/locationparameter.go b/resource/config/locationparameter.go similarity index 69% rename from resource/config/basic/locationparameter.go rename to resource/config/locationparameter.go index cf0355e..c996dff 100644 --- a/resource/config/basic/locationparameter.go +++ b/resource/config/locationparameter.go @@ -12,41 +12,41 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for location parameter resource. -*/ + */ type Locationparameter struct { /** * Context for describing locations. In geographic context, qualifier labels are assigned by default in the following sequence: Continent.Country.Region.City.ISP.Organization. In custom context, the qualifiers labels can have any meaning that you designate. - */ + */ Context string `json:"context,omitempty"` /** * Label specifying the meaning of the first qualifier. Can be specified for custom context only. - */ + */ Q1label string `json:"q1label,omitempty"` /** * Label specifying the meaning of the second qualifier. Can be specified for custom context only. - */ + */ Q2label string `json:"q2label,omitempty"` /** * Label specifying the meaning of the third qualifier. Can be specified for custom context only. - */ + */ Q3label string `json:"q3label,omitempty"` /** * Label specifying the meaning of the fourth qualifier. Can be specified for custom context only. - */ + */ Q4label string `json:"q4label,omitempty"` /** * Label specifying the meaning of the fifth qualifier. Can be specified for custom context only. - */ + */ Q5label string `json:"q5label,omitempty"` /** * Label specifying the meaning of the sixth qualifier. Can be specified for custom context only. - */ + */ Q6label string `json:"q6label,omitempty"` /** * Indicates whether wildcard qualifiers should match any other @@ -65,28 +65,27 @@ type Locationparameter struct { //------- Read only Parameter ---------; - Locationfile string `json:"Locationfile,omitempty"` - Format string `json:"format,omitempty"` - Custom string `json:"custom,omitempty"` - Static string `json:"Static,omitempty"` - Lines string `json:"lines,omitempty"` - Errors string `json:"errors,omitempty"` - Warnings string `json:"warnings,omitempty"` - Entries string `json:"entries,omitempty"` + Locationfile string `json:"Locationfile,omitempty"` + Format string `json:"format,omitempty"` + Custom string `json:"custom,omitempty"` + Static string `json:"Static,omitempty"` + Lines string `json:"lines,omitempty"` + Errors string `json:"errors,omitempty"` + Warnings string `json:"warnings,omitempty"` + Entries string `json:"entries,omitempty"` Locationfile6 string `json:"locationfile6,omitempty"` - Format6 string `json:"format6,omitempty"` - Custom6 string `json:"custom6,omitempty"` - Static6 string `json:"static6,omitempty"` - Lines6 string `json:"lines6,omitempty"` - Errors6 string `json:"errors6,omitempty"` - Warnings6 string `json:"warnings6,omitempty"` - Entries6 string `json:"entries6,omitempty"` - Flags string `json:"flags,omitempty"` - Status string `json:"status,omitempty"` - Databasemode string `json:"databasemode,omitempty"` - Flushing string `json:"flushing,omitempty"` - Loading string `json:"loading,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Format6 string `json:"format6,omitempty"` + Custom6 string `json:"custom6,omitempty"` + Static6 string `json:"static6,omitempty"` + Lines6 string `json:"lines6,omitempty"` + Errors6 string `json:"errors6,omitempty"` + Warnings6 string `json:"warnings6,omitempty"` + Entries6 string `json:"entries6,omitempty"` + Flags string `json:"flags,omitempty"` + Status string `json:"status,omitempty"` + Databasemode string `json:"databasemode,omitempty"` + Flushing string `json:"flushing,omitempty"` + Loading string `json:"loading,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/lsn/lsnappsattributes.go b/resource/config/lsnappsattributes.go similarity index 98% rename from resource/config/lsn/lsnappsattributes.go rename to resource/config/lsnappsattributes.go index e6c3f2a..7185a5b 100644 --- a/resource/config/lsn/lsnappsattributes.go +++ b/resource/config/lsnappsattributes.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN Application Attributes resource. -*/ + */ type Lsnappsattributes struct { /** * Name for the LSN Application Port ATTRIBUTES. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN application profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn application profile1" or 'lsn application profile1'). - */ + */ Name string `json:"name,omitempty"` /** * Name of the protocol(TCP,UDP) for which the parameters of this LSN application port ATTRIBUTES applies - */ + */ Transportprotocol string `json:"transportprotocol,omitempty"` /** * This is used for Displaying Port/Port range in CLI/Nitro.Lowport, Highport values are populated and used for displaying.Port numbers or range of port numbers to match against the destination port of the incoming packet from a subscriber. When the destination port is matched, the LSN application profile is applied for the LSN session. Separate a range of ports with a hyphen. For example, 40-90. - */ + */ Port string `json:"port,omitempty"` /** * Timeout, in seconds, for an idle LSN session. If an LSN session is idle for a time that exceeds this value, the Citrix ADC removes the session.This timeout does not apply for a TCP LSN session when a FIN or RST message is received from either of the endpoints. - */ + */ Sessiontimeout int `json:"sessiontimeout,omitempty"` - } diff --git a/resource/config/lsn/lsnappsprofile.go b/resource/config/lsnappsprofile.go similarity index 96% rename from resource/config/lsn/lsnappsprofile.go rename to resource/config/lsnappsprofile.go index be0d6fa..ef88c76 100644 --- a/resource/config/lsn/lsnappsprofile.go +++ b/resource/config/lsnappsprofile.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN Application Profile resource. -*/ + */ type Lsnappsprofile struct { /** * Name for the LSN application profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN application profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn application profile1" or 'lsn application profile1'). - */ + */ Appsprofilename string `json:"appsprofilename,omitempty"` /** * Name of the protocol for which the parameters of this LSN application profile applies. - */ + */ Transportprotocol string `json:"transportprotocol,omitempty"` /** * NAT IP address allocation options for sessions associated with the same subscriber. @@ -39,8 +39,8 @@ type Lsnappsprofile struct { /** * Type of LSN mapping to apply to subsequent packets originating from the same subscriber IP address and port. Consider an example of an LSN mapping that includes the mapping of the subscriber IP:port (X:x), NAT IP:port (N:n), and external host IP:port (Y:y). - Available options function as follows: - * ENDPOINT-INDEPENDENT - Reuse the LSN mapping for subsequent packets sent from the same subscriber IP address and port (X:x) to any external IP address and port. + Available options function as follows: + * ENDPOINT-INDEPENDENT - Reuse the LSN mapping for subsequent packets sent from the same subscriber IP address and port (X:x) to any external IP address and port. * ADDRESS-DEPENDENT - Reuse the LSN mapping for subsequent packets sent from the same subscriber IP address and port (X:x) to the same external IP address (Y), regardless of the external port. * ADDRESS-PORT-DEPENDENT - Reuse the LSN mapping for subsequent packets sent from the same internal IP address and port (X:x) to the same external IP address and port (Y:y) while the mapping is still active. */ @@ -56,16 +56,15 @@ type Lsnappsprofile struct { Filtering string `json:"filtering,omitempty"` /** * Enable TCP proxy, which enables the Citrix ADC to optimize the TCP traffic by using Layer 4 features. - */ + */ Tcpproxy string `json:"tcpproxy,omitempty"` /** - * ID of the traffic domain through which the Citrix ADC sends the outbound traffic after performing LSN. + * ID of the traffic domain through which the Citrix ADC sends the outbound traffic after performing LSN. If you do not specify an ID, the ADC sends the outbound traffic through the default traffic domain, which has an ID of 0. */ Td int `json:"td,omitempty"` /** * Enable l2info by creating natpcbs for LSN, which enables the Citrix ADC to use L2CONN/MBF with LSN. - */ + */ L2info string `json:"l2info,omitempty"` - } diff --git a/resource/config/lsn/lsnappsprofile_appsattributes_binding.go b/resource/config/lsnappsprofile_appsattributes_binding.go similarity index 97% rename from resource/config/lsn/lsnappsprofile_appsattributes_binding.go rename to resource/config/lsnappsprofile_appsattributes_binding.go index 17de3df..f5414e8 100644 --- a/resource/config/lsn/lsnappsprofile_appsattributes_binding.go +++ b/resource/config/lsnappsprofile_appsattributes_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the appsattributes that can be bound to lsnappsprofile. -*/ + */ type Lsnappsprofileappsattributesbinding struct { /** * Name of the LSN application port ATTRIBUTES command to bind to the specified LSN Appsprofile. Properties of the Appsprofile will be applicable to this APPSATTRIBUTES - */ + */ Appsattributesname string `json:"appsattributesname,omitempty"` /** * Name for the LSN application profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN application profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn application profile1" or 'lsn application profile1'). - */ + */ Appsprofilename string `json:"appsprofilename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnappsprofile_binding.go b/resource/config/lsnappsprofile_binding.go similarity index 93% rename from resource/config/lsn/lsnappsprofile_binding.go rename to resource/config/lsnappsprofile_binding.go index db190d0..3dfb5b6 100644 --- a/resource/config/lsn/lsnappsprofile_binding.go +++ b/resource/config/lsnappsprofile_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** -* Binding object which returns the resources bound to lsnappsprofile_binding. -*/ +* Binding object which returns the resources bound to lsnappsprofile_binding. + */ type Lsnappsprofilebinding struct { /** - * Name for the LSN application profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN application profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn application profile1" or 'lsn application profile1').
Minimum value = - */ + * Name for the LSN application profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN application profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn application profile1" or 'lsn application profile1').
Minimum value = + */ Appsprofilename string `json:"appsprofilename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnappsprofile_lsnappsattributes_binding.go b/resource/config/lsnappsprofile_lsnappsattributes_binding.go similarity index 97% rename from resource/config/lsn/lsnappsprofile_lsnappsattributes_binding.go rename to resource/config/lsnappsprofile_lsnappsattributes_binding.go index d235ec7..0907500 100644 --- a/resource/config/lsn/lsnappsprofile_lsnappsattributes_binding.go +++ b/resource/config/lsnappsprofile_lsnappsattributes_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsnappsattributes that can be bound to lsnappsprofile. -*/ + */ type Lsnappsprofilelsnappsattributesbinding struct { /** * Name of the LSN application port ATTRIBUTES command to bind to the specified LSN Appsprofile. Properties of the Appsprofile will be applicable to this APPSATTRIBUTES - */ + */ Appsattributesname string `json:"appsattributesname,omitempty"` /** * Name for the LSN application profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN application profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn application profile1" or 'lsn application profile1'). - */ + */ Appsprofilename string `json:"appsprofilename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnappsprofile_port_binding.go b/resource/config/lsnappsprofile_port_binding.go similarity index 97% rename from resource/config/lsn/lsnappsprofile_port_binding.go rename to resource/config/lsnappsprofile_port_binding.go index 990effc..1d4ffa0 100644 --- a/resource/config/lsn/lsnappsprofile_port_binding.go +++ b/resource/config/lsnappsprofile_port_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the port that can be bound to lsnappsprofile. -*/ + */ type Lsnappsprofileportbinding struct { /** * Port numbers or range of port numbers to match against the destination port of the incoming packet from a subscriber. When the destination port is matched, the LSN application profile is applied for the LSN session. Separate a range of ports with a hyphen. For example, 40-90. - */ + */ Lsnport string `json:"lsnport,omitempty"` /** * Name for the LSN application profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN application profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn application profile1" or 'lsn application profile1'). - */ + */ Appsprofilename string `json:"appsprofilename,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnclient.go b/resource/config/lsnclient.go similarity index 93% rename from resource/config/lsn/lsnclient.go rename to resource/config/lsnclient.go index c83f46b..6d29ff3 100644 --- a/resource/config/lsn/lsnclient.go +++ b/resource/config/lsnclient.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for lsn client resource. -*/ + */ type Lsnclient struct { /** - * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). - */ + * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). + */ Clientname string `json:"clientname,omitempty"` - } diff --git a/resource/config/lsn/lsnclient_acl6_binding.go b/resource/config/lsnclient_acl6_binding.go similarity index 91% rename from resource/config/lsn/lsnclient_acl6_binding.go rename to resource/config/lsnclient_acl6_binding.go index 3c65f08..ddef25d 100644 --- a/resource/config/lsn/lsnclient_acl6_binding.go +++ b/resource/config/lsnclient_acl6_binding.go @@ -12,27 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the acl6 that can be bound to lsnclient. -*/ + */ type Lsnclientacl6binding struct { /** * Name of any configured extended ACL6 whose action is ALLOW. The condition specified in the extended ACL6 rule is used as the condition for the LSN client. - */ + */ Acl6name string `json:"acl6name,omitempty"` /** - * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. + * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. If you do not specify an ID, the subscriber or the subscriber network becomes part of the default traffic domain. */ Td uint32 `json:"td,omitempty"` /** - * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). - */ + * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). + */ Clientname string `json:"clientname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnclient_acl_binding.go b/resource/config/lsnclient_acl_binding.go similarity index 90% rename from resource/config/lsn/lsnclient_acl_binding.go rename to resource/config/lsnclient_acl_binding.go index a0d6e98..a1641c1 100644 --- a/resource/config/lsn/lsnclient_acl_binding.go +++ b/resource/config/lsnclient_acl_binding.go @@ -12,28 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the acl that can be bound to lsnclient. -*/ + */ type Lsnclientaclbinding struct { /** * Name(s) of any configured extended ACL(s) whose action is ALLOW. - The condition specified in the extended ACL rule identifies the traffic from an LSN subscriber for which the Citrix ADC is to perform large scale NAT. + The condition specified in the extended ACL rule identifies the traffic from an LSN subscriber for which the Citrix ADC is to perform large scale NAT. */ Aclname string `json:"aclname,omitempty"` /** - * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. + * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. If you do not specify an ID, the subscriber or the subscriber network becomes part of the default traffic domain. */ Td uint32 `json:"td,omitempty"` /** - * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). - */ + * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). + */ Clientname string `json:"clientname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnclient_binding.go b/resource/config/lsnclient_binding.go similarity index 96% rename from resource/config/lsn/lsnclient_binding.go rename to resource/config/lsnclient_binding.go index 29123f1..ea8946d 100644 --- a/resource/config/lsn/lsnclient_binding.go +++ b/resource/config/lsnclient_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** -* Binding object which returns the resources bound to lsnclient_binding. -*/ +* Binding object which returns the resources bound to lsnclient_binding. + */ type Lsnclientbinding struct { /** - * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). .
Minimum value = - */ + * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). .
Minimum value = + */ Clientname string `json:"clientname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnclient_network6_binding.go b/resource/config/lsnclient_network6_binding.go similarity index 92% rename from resource/config/lsn/lsnclient_network6_binding.go rename to resource/config/lsnclient_network6_binding.go index 793b24e..6956c82 100644 --- a/resource/config/lsn/lsnclient_network6_binding.go +++ b/resource/config/lsnclient_network6_binding.go @@ -12,35 +12,33 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the network6 that can be bound to lsnclient. -*/ + */ type Lsnclientnetwork6binding struct { /** * IPv6 address(es) of the LSN subscriber(s) or subscriber network(s) on whose traffic you want the Citrix ADC to perform Large Scale NAT. - */ + */ Network6 string `json:"network6,omitempty"` /** * IPv4 address(es) of the LSN subscriber(s) or subscriber network(s) on whose traffic you want the Citrix ADC to perform Large Scale NAT. - */ + */ Network string `json:"network,omitempty"` /** * Subnet mask for the IPv4 address specified in the Network parameter. - */ + */ Netmask string `json:"netmask,omitempty"` /** - * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. + * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. If you do not specify an ID, the subscriber or the subscriber network becomes part of the default traffic domain. */ Td int `json:"td,omitempty"` /** - * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). - */ + * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). + */ Clientname string `json:"clientname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnclient_network_binding.go b/resource/config/lsnclient_network_binding.go similarity index 91% rename from resource/config/lsn/lsnclient_network_binding.go rename to resource/config/lsnclient_network_binding.go index ad4d51e..7c9bc01 100644 --- a/resource/config/lsn/lsnclient_network_binding.go +++ b/resource/config/lsnclient_network_binding.go @@ -12,31 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the network that can be bound to lsnclient. -*/ + */ type Lsnclientnetworkbinding struct { /** * IPv4 address(es) of the LSN subscriber(s) or subscriber network(s) on whose traffic you want the Citrix ADC to perform Large Scale NAT. - */ + */ Network string `json:"network,omitempty"` /** * Subnet mask for the IPv4 address specified in the Network parameter. - */ + */ Netmask string `json:"netmask,omitempty"` /** - * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. + * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. If you do not specify an ID, the subscriber or the subscriber network becomes part of the default traffic domain. */ Td int `json:"td,omitempty"` /** - * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). - */ + * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). + */ Clientname string `json:"clientname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnclient_nsacl6_binding.go b/resource/config/lsnclient_nsacl6_binding.go similarity index 91% rename from resource/config/lsn/lsnclient_nsacl6_binding.go rename to resource/config/lsnclient_nsacl6_binding.go index e48cd3b..f54d709 100644 --- a/resource/config/lsn/lsnclient_nsacl6_binding.go +++ b/resource/config/lsnclient_nsacl6_binding.go @@ -12,27 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the nsacl6 that can be bound to lsnclient. -*/ + */ type Lsnclientnsacl6binding struct { /** * Name of any configured extended ACL6 whose action is ALLOW. The condition specified in the extended ACL6 rule is used as the condition for the LSN client. - */ + */ Acl6name string `json:"acl6name,omitempty"` /** - * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. + * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. If you do not specify an ID, the subscriber or the subscriber network becomes part of the default traffic domain. */ Td int `json:"td,omitempty"` /** - * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). - */ + * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). + */ Clientname string `json:"clientname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnclient_nsacl_binding.go b/resource/config/lsnclient_nsacl_binding.go similarity index 90% rename from resource/config/lsn/lsnclient_nsacl_binding.go rename to resource/config/lsnclient_nsacl_binding.go index b2cf37c..58cc90f 100644 --- a/resource/config/lsn/lsnclient_nsacl_binding.go +++ b/resource/config/lsnclient_nsacl_binding.go @@ -12,28 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the nsacl that can be bound to lsnclient. -*/ + */ type Lsnclientnsaclbinding struct { /** * Name(s) of any configured extended ACL(s) whose action is ALLOW. - The condition specified in the extended ACL rule identifies the traffic from an LSN subscriber for which the Citrix ADC is to perform large scale NAT. + The condition specified in the extended ACL rule identifies the traffic from an LSN subscriber for which the Citrix ADC is to perform large scale NAT. */ Aclname string `json:"aclname,omitempty"` /** - * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. + * ID of the traffic domain on which this subscriber or the subscriber network (as specified by the network parameter) belongs. If you do not specify an ID, the subscriber or the subscriber network becomes part of the default traffic domain. */ Td int `json:"td,omitempty"` /** - * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). - */ + * Name for the LSN client entity. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN client is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn client1" or 'lsn client1'). + */ Clientname string `json:"clientname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsndeterministicnat.go b/resource/config/lsndeterministicnat.go similarity index 84% rename from resource/config/lsn/lsndeterministicnat.go rename to resource/config/lsndeterministicnat.go index fe54912..2d273cb 100644 --- a/resource/config/lsn/lsndeterministicnat.go +++ b/resource/config/lsndeterministicnat.go @@ -12,43 +12,42 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for deterministic NAT resource. -*/ + */ type Lsndeterministicnat struct { /** * The name of the LSN Client. - */ + */ Clientname string `json:"clientname,omitempty"` /** * IPv6 address of the LSN subscriber or B4 device. - */ + */ Network6 string `json:"network6,omitempty"` /** * The Client IP address. - */ + */ Subscrip string `json:"subscrip,omitempty"` /** * The LSN client TD. - */ + */ Td int `json:"td,omitempty"` /** * The NAT IP address. - */ + */ Natip string `json:"natip,omitempty"` //------- Read only Parameter ---------; Natprefix string `json:"natprefix,omitempty"` Subscrip2 string `json:"subscrip2,omitempty"` - Natip2 string `json:"natip2,omitempty"` + Natip2 string `json:"natip2,omitempty"` Firstport string `json:"firstport,omitempty"` - Lastport string `json:"lastport,omitempty"` - Srctd string `json:"srctd,omitempty"` - Nattype string `json:"nattype,omitempty"` - + Lastport string `json:"lastport,omitempty"` + Srctd string `json:"srctd,omitempty"` + Nattype string `json:"nattype,omitempty"` } diff --git a/resource/config/lsn/lsngroup.go b/resource/config/lsngroup.go similarity index 97% rename from resource/config/lsn/lsngroup.go rename to resource/config/lsngroup.go index 36a66c3..374c620 100644 --- a/resource/config/lsn/lsngroup.go +++ b/resource/config/lsngroup.go @@ -12,26 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN group resource. -*/ + */ type Lsngroup struct { /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` /** * Name of the LSN client entity to be associated with the LSN group. You can associate only one LSN client entity with an LSN group.You cannot remove this association or replace with another LSN client entity once the LSN group is created. - */ + */ Clientname string `json:"clientname,omitempty"` /** * Type of NAT IP address and port allocation (from the bound LSN pools) for subscribers: Available options function as follows: - * Deterministic - Allocate a NAT IP address and a block of ports to each subscriber (of the LSN client bound to the LSN group). The Citrix ADC sequentially allocates NAT resources to these subscribers. The Citrix ADC ADC assigns the first block of ports (block size determined by the port block size parameter of the LSN group) on the beginning NAT IP address to the beginning subscriber IP address. The next range of ports is assigned to the next subscriber, and so on, until the NAT address does not have enough ports for the next subscriber. In this case, the first port block on the next NAT address is used for the subscriber, and so on. Because each subscriber now receives a deterministic NAT IP address and a block of ports, a subscriber can be identified without any need for logging. For a connection, a subscriber can be identified based only on the NAT IP address and port, and the destination IP address and port. The maximum number of LSN subscribers allowed, globally, is 1 million. + * Deterministic - Allocate a NAT IP address and a block of ports to each subscriber (of the LSN client bound to the LSN group). The Citrix ADC sequentially allocates NAT resources to these subscribers. The Citrix ADC ADC assigns the first block of ports (block size determined by the port block size parameter of the LSN group) on the beginning NAT IP address to the beginning subscriber IP address. The next range of ports is assigned to the next subscriber, and so on, until the NAT address does not have enough ports for the next subscriber. In this case, the first port block on the next NAT address is used for the subscriber, and so on. Because each subscriber now receives a deterministic NAT IP address and a block of ports, a subscriber can be identified without any need for logging. For a connection, a subscriber can be identified based only on the NAT IP address and port, and the destination IP address and port. The maximum number of LSN subscribers allowed, globally, is 1 million. * Dynamic - Allocate a random NAT IP address and a port from the LSN NAT pool for a subscriber's connection. If port block allocation is enabled (in LSN pool) and a port block size is specified (in the LSN group), the Citrix ADC allocates a random NAT IP address and a block of ports for a subscriber when it initiates a connection for the first time. The ADC allocates this NAT IP address and a port (from the allocated block of ports) for different connections from this subscriber. If all the ports are allocated (for different subscriber's connections) from the subscriber's allocated port block, the ADC allocates a new random port block for the subscriber. */ Nattype string `json:"nattype,omitempty"` @@ -42,10 +42,10 @@ type Lsngroup struct { To understand better if we assume port blocks of all NAT IPs as two dimensional array, PORTS policy follows "row major order" and IPADDRS policy follows "column major order" while allocating port blocks. Example: Client IPs: 2.2.2.1, 2.2.2.2 and 2.2.2.3 - NAT IPs and PORT Blocks: + NAT IPs and PORT Blocks: 4.4.4.1:PB1, PB2, PB3,., PBn 4.4.4.2: PB1, PB2, PB3,., PBn - PORTS Policy: + PORTS Policy: 2.2.2.1 => 4.4.4.1:PB1 2.2.2.2 => 4.4.4.1:PB2 2.2.2.3 => 4.4.4.1:PB3 @@ -64,7 +64,7 @@ type Lsngroup struct { Portblocksize int `json:"portblocksize,omitempty"` /** * Log mapping entries and sessions created or deleted for this LSN group. The Citrix ADC logs LSN sessions for this LSN group only when both logging and session logging parameters are enabled. - The ADC uses its existing syslog and audit log framework to log LSN information. You must enable global level LSN logging by enabling the LSN parameter in the related NSLOG action and SYLOG action entities. When the Logging parameter is enabled, the Citrix ADC generates log messages related to LSN mappings and LSN sessions of this LSN group. The ADC then sends these log messages to servers associated with the NSLOG action and SYSLOG actions entities. + The ADC uses its existing syslog and audit log framework to log LSN information. You must enable global level LSN logging by enabling the LSN parameter in the related NSLOG action and SYLOG action entities. When the Logging parameter is enabled, the Citrix ADC generates log messages related to LSN mappings and LSN sessions of this LSN group. The ADC then sends these log messages to servers associated with the NSLOG action and SYSLOG actions entities. A log message for an LSN mapping entry consists of the following information: * NSIP address of the Citrix ADC * Time stamp @@ -99,24 +99,24 @@ type Lsngroup struct { Sessionsync string `json:"sessionsync,omitempty"` /** * Maximum number of SNMP Trap messages that can be generated for the LSN group in one minute. - */ + */ Snmptraplimit int `json:"snmptraplimit,omitempty"` /** - * Enable Application Layer Gateway (ALG) for the FTP protocol. For some application-layer protocols, the IP addresses and protocol port numbers are usually communicated in the packet's payload. When acting as an ALG, the Citrix ADC changes the packet's payload to ensure that the protocol continues to work over LSN. + * Enable Application Layer Gateway (ALG) for the FTP protocol. For some application-layer protocols, the IP addresses and protocol port numbers are usually communicated in the packet's payload. When acting as an ALG, the Citrix ADC changes the packet's payload to ensure that the protocol continues to work over LSN. Note: The Citrix ADC also includes ALG for ICMP and TFTP protocols. ALG for the ICMP protocol is enabled by default, and there is no provision to disable it. ALG for the TFTP protocol is disabled by default. ALG is enabled automatically for an LSN group when you bind a UDP LSN application profile, with endpoint-independent-mapping, endpoint-independent filtering, and destination port as 69 (well-known port for TFTP), to the LSN group. */ Ftp string `json:"ftp,omitempty"` /** * Enable the PPTP Application Layer Gateway. - */ + */ Pptp string `json:"pptp,omitempty"` /** * Enable the SIP ALG. - */ + */ Sipalg string `json:"sipalg,omitempty"` /** * Enable the RTSP ALG. - */ + */ Rtspalg string `json:"rtspalg,omitempty"` /** * Name of the LSN ip6 profile to associate with the specified LSN group. An ip6 profile can be associated with a group only during group creation. @@ -125,11 +125,10 @@ type Lsngroup struct { Ip6profile string `json:"ip6profile,omitempty"` /** * Enable the FTP connection mirroring for specified LSN group. Connection mirroring (CM or connection failover) refers to keeping active an established TCP or UDP connection when a failover occurs. - */ + */ Ftpcm string `json:"ftpcm,omitempty"` //------- Read only Parameter ---------; Groupid string `json:"groupid,omitempty"` - } diff --git a/resource/config/lsn/lsngroup_appsprofile_binding.go b/resource/config/lsngroup_appsprofile_binding.go similarity index 98% rename from resource/config/lsn/lsngroup_appsprofile_binding.go rename to resource/config/lsngroup_appsprofile_binding.go index 83c162a..82029dd 100644 --- a/resource/config/lsn/lsngroup_appsprofile_binding.go +++ b/resource/config/lsngroup_appsprofile_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the appsprofile that can be bound to lsngroup. -*/ + */ type Lsngroupappsprofilebinding struct { /** * Name of the LSN application profile to bind to the specified LSN group. For each set of destination ports, bind a profile for each protocol for which you want to specify settings. @@ -28,8 +28,6 @@ type Lsngroupappsprofilebinding struct { Appsprofilename string `json:"appsprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_binding.go b/resource/config/lsngroup_binding.go similarity index 92% rename from resource/config/lsn/lsngroup_binding.go rename to resource/config/lsngroup_binding.go index 23fb672..b636bcc 100644 --- a/resource/config/lsn/lsngroup_binding.go +++ b/resource/config/lsngroup_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** -* Binding object which returns the resources bound to lsngroup_binding. -*/ +* Binding object which returns the resources bound to lsngroup_binding. + */ type Lsngroupbinding struct { /** - * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1').
Minimum value = - */ + * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1').
Minimum value = + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_httphdrlogprofile_binding.go b/resource/config/lsngroup_httphdrlogprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_httphdrlogprofile_binding.go rename to resource/config/lsngroup_httphdrlogprofile_binding.go index 9943a5f..98074d8 100644 --- a/resource/config/lsn/lsngroup_httphdrlogprofile_binding.go +++ b/resource/config/lsngroup_httphdrlogprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the httphdrlogprofile that can be bound to lsngroup. -*/ + */ type Lsngrouphttphdrlogprofilebinding struct { /** * The name of the LSN HTTP header logging Profile. - */ + */ Httphdrlogprofilename string `json:"httphdrlogprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_ipsecalgprofile_binding.go b/resource/config/lsngroup_ipsecalgprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_ipsecalgprofile_binding.go rename to resource/config/lsngroup_ipsecalgprofile_binding.go index 0b12ca1..2ce0267 100644 --- a/resource/config/lsn/lsngroup_ipsecalgprofile_binding.go +++ b/resource/config/lsngroup_ipsecalgprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the ipsecalgprofile that can be bound to lsngroup. -*/ + */ type Lsngroupipsecalgprofilebinding struct { /** * Name of the IPSec ALG profile to bind to the specified LSN group. - */ + */ Ipsecalgprofile string `json:"ipsecalgprofile,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_logprofile_binding.go b/resource/config/lsngroup_logprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_logprofile_binding.go rename to resource/config/lsngroup_logprofile_binding.go index 3e22512..d31534f 100644 --- a/resource/config/lsn/lsngroup_logprofile_binding.go +++ b/resource/config/lsngroup_logprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the logprofile that can be bound to lsngroup. -*/ + */ type Lsngrouplogprofilebinding struct { /** * The name of the LSN logging Profile. - */ + */ Logprofilename string `json:"logprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_lsnappsprofile_binding.go b/resource/config/lsngroup_lsnappsprofile_binding.go similarity index 98% rename from resource/config/lsn/lsngroup_lsnappsprofile_binding.go rename to resource/config/lsngroup_lsnappsprofile_binding.go index ed71c8f..2159c1b 100644 --- a/resource/config/lsn/lsngroup_lsnappsprofile_binding.go +++ b/resource/config/lsngroup_lsnappsprofile_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsnappsprofile that can be bound to lsngroup. -*/ + */ type Lsngrouplsnappsprofilebinding struct { /** * Name of the LSN application profile to bind to the specified LSN group. For each set of destination ports, bind a profile for each protocol for which you want to specify settings. @@ -28,8 +28,6 @@ type Lsngrouplsnappsprofilebinding struct { Appsprofilename string `json:"appsprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_lsnhttphdrlogprofile_binding.go b/resource/config/lsngroup_lsnhttphdrlogprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_lsnhttphdrlogprofile_binding.go rename to resource/config/lsngroup_lsnhttphdrlogprofile_binding.go index eea75b7..e38fe5a 100644 --- a/resource/config/lsn/lsngroup_lsnhttphdrlogprofile_binding.go +++ b/resource/config/lsngroup_lsnhttphdrlogprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsnhttphdrlogprofile that can be bound to lsngroup. -*/ + */ type Lsngrouplsnhttphdrlogprofilebinding struct { /** * The name of the LSN HTTP header logging Profile. - */ + */ Httphdrlogprofilename string `json:"httphdrlogprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_lsnlogprofile_binding.go b/resource/config/lsngroup_lsnlogprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_lsnlogprofile_binding.go rename to resource/config/lsngroup_lsnlogprofile_binding.go index 0b5fc78..9445af7 100644 --- a/resource/config/lsn/lsngroup_lsnlogprofile_binding.go +++ b/resource/config/lsngroup_lsnlogprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsnlogprofile that can be bound to lsngroup. -*/ + */ type Lsngrouplsnlogprofilebinding struct { /** * The name of the LSN logging Profile. - */ + */ Logprofilename string `json:"logprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_lsnpool_binding.go b/resource/config/lsngroup_lsnpool_binding.go similarity index 98% rename from resource/config/lsn/lsngroup_lsnpool_binding.go rename to resource/config/lsngroup_lsnpool_binding.go index 6c1ea41..dfde415 100644 --- a/resource/config/lsn/lsngroup_lsnpool_binding.go +++ b/resource/config/lsngroup_lsnpool_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsnpool that can be bound to lsngroup. -*/ + */ type Lsngrouplsnpoolbinding struct { /** * Name of the LSN pool to bind to the specified LSN group. Only LSN Pools and LSN groups with the same NAT type settings can be bound together. Multiples LSN pools can be bound to an LSN group. @@ -27,8 +27,6 @@ type Lsngrouplsnpoolbinding struct { Poolname string `json:"poolname,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_lsnrtspalgprofile_binding.go b/resource/config/lsngroup_lsnrtspalgprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_lsnrtspalgprofile_binding.go rename to resource/config/lsngroup_lsnrtspalgprofile_binding.go index d51728a..004d9c9 100644 --- a/resource/config/lsn/lsngroup_lsnrtspalgprofile_binding.go +++ b/resource/config/lsngroup_lsnrtspalgprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsnrtspalgprofile that can be bound to lsngroup. -*/ + */ type Lsngrouplsnrtspalgprofilebinding struct { /** * The name of the LSN RTSP ALG Profile. - */ + */ Rtspalgprofilename string `json:"rtspalgprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_lsnsipalgprofile_binding.go b/resource/config/lsngroup_lsnsipalgprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_lsnsipalgprofile_binding.go rename to resource/config/lsngroup_lsnsipalgprofile_binding.go index a7c7835..ba420f1 100644 --- a/resource/config/lsn/lsngroup_lsnsipalgprofile_binding.go +++ b/resource/config/lsngroup_lsnsipalgprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsnsipalgprofile that can be bound to lsngroup. -*/ + */ type Lsngrouplsnsipalgprofilebinding struct { /** * The name of the LSN SIP ALG Profile. - */ + */ Sipalgprofilename string `json:"sipalgprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_lsntransportprofile_binding.go b/resource/config/lsngroup_lsntransportprofile_binding.go similarity index 98% rename from resource/config/lsn/lsngroup_lsntransportprofile_binding.go rename to resource/config/lsngroup_lsntransportprofile_binding.go index 1033b6c..e14f7a8 100644 --- a/resource/config/lsn/lsngroup_lsntransportprofile_binding.go +++ b/resource/config/lsngroup_lsntransportprofile_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsntransportprofile that can be bound to lsngroup. -*/ + */ type Lsngrouplsntransportprofilebinding struct { /** * Name of the LSN transport profile to bind to the specified LSN group. Bind a profile for each protocol for which you want to specify settings. @@ -28,8 +28,6 @@ type Lsngrouplsntransportprofilebinding struct { Transportprofilename string `json:"transportprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_pcpserver_binding.go b/resource/config/lsngroup_pcpserver_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_pcpserver_binding.go rename to resource/config/lsngroup_pcpserver_binding.go index 8ecfe19..85fe5a3 100644 --- a/resource/config/lsn/lsngroup_pcpserver_binding.go +++ b/resource/config/lsngroup_pcpserver_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the pcpserver that can be bound to lsngroup. -*/ + */ type Lsngrouppcpserverbinding struct { /** * Name of the PCP server to be associated with lsn group. - */ + */ Pcpserver string `json:"pcpserver,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_pool_binding.go b/resource/config/lsngroup_pool_binding.go similarity index 98% rename from resource/config/lsn/lsngroup_pool_binding.go rename to resource/config/lsngroup_pool_binding.go index c341d19..52faf36 100644 --- a/resource/config/lsn/lsngroup_pool_binding.go +++ b/resource/config/lsngroup_pool_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the pool that can be bound to lsngroup. -*/ + */ type Lsngrouppoolbinding struct { /** * Name of the LSN pool to bind to the specified LSN group. Only LSN Pools and LSN groups with the same NAT type settings can be bound together. Multiples LSN pools can be bound to an LSN group. @@ -27,8 +27,6 @@ type Lsngrouppoolbinding struct { Poolname string `json:"poolname,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_profile_binding.go b/resource/config/lsngroup_profile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_profile_binding.go rename to resource/config/lsngroup_profile_binding.go index 6855603..d048ad5 100644 --- a/resource/config/lsn/lsngroup_profile_binding.go +++ b/resource/config/lsngroup_profile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the profile that can be bound to lsngroup. -*/ + */ type Lsngroupprofilebinding struct { /** * Name of the IPSec ALG profile to bind to the specified LSN group. - */ + */ Ipsecalgprofile string `json:"ipsecalgprofile,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_rtspalgprofile_binding.go b/resource/config/lsngroup_rtspalgprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_rtspalgprofile_binding.go rename to resource/config/lsngroup_rtspalgprofile_binding.go index 9ce68ee..5602943 100644 --- a/resource/config/lsn/lsngroup_rtspalgprofile_binding.go +++ b/resource/config/lsngroup_rtspalgprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the rtspalgprofile that can be bound to lsngroup. -*/ + */ type Lsngrouprtspalgprofilebinding struct { /** * The name of the LSN RTSP ALG Profile. - */ + */ Rtspalgprofilename string `json:"rtspalgprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_server_binding.go b/resource/config/lsngroup_server_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_server_binding.go rename to resource/config/lsngroup_server_binding.go index ed430a3..e36fa30 100644 --- a/resource/config/lsn/lsngroup_server_binding.go +++ b/resource/config/lsngroup_server_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the server that can be bound to lsngroup. -*/ + */ type Lsngroupserverbinding struct { /** * Name of the PCP server to be associated with lsn group. - */ + */ Pcpserver string `json:"pcpserver,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_sipalgprofile_binding.go b/resource/config/lsngroup_sipalgprofile_binding.go similarity index 97% rename from resource/config/lsn/lsngroup_sipalgprofile_binding.go rename to resource/config/lsngroup_sipalgprofile_binding.go index 668afd0..ea4e6ad 100644 --- a/resource/config/lsn/lsngroup_sipalgprofile_binding.go +++ b/resource/config/lsngroup_sipalgprofile_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the sipalgprofile that can be bound to lsngroup. -*/ + */ type Lsngroupsipalgprofilebinding struct { /** * The name of the LSN SIP ALG Profile. - */ + */ Sipalgprofilename string `json:"sipalgprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsngroup_transportprofile_binding.go b/resource/config/lsngroup_transportprofile_binding.go similarity index 98% rename from resource/config/lsn/lsngroup_transportprofile_binding.go rename to resource/config/lsngroup_transportprofile_binding.go index 71feb01..3c28bf1 100644 --- a/resource/config/lsn/lsngroup_transportprofile_binding.go +++ b/resource/config/lsngroup_transportprofile_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the transportprofile that can be bound to lsngroup. -*/ + */ type Lsngrouptransportprofilebinding struct { /** * Name of the LSN transport profile to bind to the specified LSN group. Bind a profile for each protocol for which you want to specify settings. @@ -28,8 +28,6 @@ type Lsngrouptransportprofilebinding struct { Transportprofilename string `json:"transportprofilename,omitempty"` /** * Name for the LSN group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn group1" or 'lsn group1'). - */ + */ Groupname string `json:"groupname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnhttphdrlogprofile.go b/resource/config/lsnhttphdrlogprofile.go similarity index 96% rename from resource/config/lsn/lsnhttphdrlogprofile.go rename to resource/config/lsnhttphdrlogprofile.go index e34b0be..55b617e 100644 --- a/resource/config/lsn/lsnhttphdrlogprofile.go +++ b/resource/config/lsnhttphdrlogprofile.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN HTTP header logging Profile resource. -*/ + */ type Lsnhttphdrlogprofile struct { /** * The name of the HTTP header logging Profile. - */ + */ Httphdrlogprofilename string `json:"httphdrlogprofilename,omitempty"` /** * URL information is logged if option is enabled. - */ + */ Logurl string `json:"logurl,omitempty"` /** * HTTP method information is logged if option is enabled. - */ + */ Logmethod string `json:"logmethod,omitempty"` /** * Version information is logged if option is enabled. - */ + */ Logversion string `json:"logversion,omitempty"` /** * Host information is logged if option is enabled. - */ + */ Loghost string `json:"loghost,omitempty"` - } diff --git a/resource/config/lsn/lsnip6profile.go b/resource/config/lsnip6profile.go similarity index 97% rename from resource/config/lsn/lsnip6profile.go rename to resource/config/lsnip6profile.go index 1d9779d..79ff43d 100644 --- a/resource/config/lsn/lsnip6profile.go +++ b/resource/config/lsnip6profile.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN ip6 Profile resource. -*/ + */ type Lsnip6profile struct { /** * Name for the LSN ip6 profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN ip6 profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn ip6 profile1" or 'lsn ip6 profile1'). - */ + */ Name string `json:"name,omitempty"` /** * IPv6 translation type for which to set the LSN IP6 profile parameters. - */ + */ Type string `json:"type,omitempty"` /** * IPv6 address(es) of the LSN subscriber(s) or subscriber network(s) on whose traffic you want the Citrix ADC to perform Large Scale NAT. - */ + */ Natprefix string `json:"natprefix,omitempty"` /** * IPv6 address of the Citrix ADC AFTR device - */ + */ Network6 string `json:"network6,omitempty"` - } diff --git a/resource/config/lsn/lsnlogprofile.go b/resource/config/lsnlogprofile.go similarity index 96% rename from resource/config/lsn/lsnlogprofile.go rename to resource/config/lsnlogprofile.go index 8cd9684..7528827 100644 --- a/resource/config/lsn/lsnlogprofile.go +++ b/resource/config/lsnlogprofile.go @@ -12,37 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN logging Profile resource. -*/ + */ type Lsnlogprofile struct { /** * The name of the logging Profile. - */ + */ Logprofilename string `json:"logprofilename,omitempty"` /** * Subscriber ID information is logged if option is enabled. - */ + */ Logsubscrinfo string `json:"logsubscrinfo,omitempty"` /** * Logs in Compact Logging format if option is enabled. - */ + */ Logcompact string `json:"logcompact,omitempty"` /** * Logs in IPFIX format if option is enabled. - */ + */ Logipfix string `json:"logipfix,omitempty"` /** * Name of the Analytics Profile attached to this lsn profile. - */ + */ Analyticsprofile string `json:"analyticsprofile,omitempty"` /** * LSN Session deletion will not be logged if disabled. - */ + */ Logsessdeletion string `json:"logsessdeletion,omitempty"` - } diff --git a/resource/config/lsn/lsnparameter.go b/resource/config/lsnparameter.go similarity index 96% rename from resource/config/lsn/lsnparameter.go rename to resource/config/lsnparameter.go index 7e8c4d9..f860b66 100644 --- a/resource/config/lsn/lsnparameter.go +++ b/resource/config/lsnparameter.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN parameter resource. -*/ + */ type Lsnparameter struct { /** * Amount of Citrix ADC memory to reserve for the LSN feature, in multiples of 2MB. @@ -34,12 +34,11 @@ type Lsnparameter struct { Sessionsync string `json:"sessionsync,omitempty"` /** * LSN global setting for controlling subscriber aware session removal, when this is enabled, when ever the subscriber info is deleted from subscriber database, sessions corresponding to that subscriber will be removed. if this setting is disabled, subscriber sessions will be timed out as per the idle time out settings. - */ + */ Subscrsessionremoval string `json:"subscrsessionremoval,omitempty"` //------- Read only Parameter ---------; Memlimitactive string `json:"memlimitactive,omitempty"` - Maxmemlimit string `json:"maxmemlimit,omitempty"` - + Maxmemlimit string `json:"maxmemlimit,omitempty"` } diff --git a/resource/config/lsn/lsnpool.go b/resource/config/lsnpool.go similarity index 99% rename from resource/config/lsn/lsnpool.go rename to resource/config/lsnpool.go index 2745f58..006af34 100644 --- a/resource/config/lsn/lsnpool.go +++ b/resource/config/lsnpool.go @@ -12,24 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN pool resource. -*/ + */ type Lsnpool struct { /** * Name for the LSN pool. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN pool is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn pool1" or 'lsn pool1'). - */ + */ Poolname string `json:"poolname,omitempty"` /** * Type of NAT IP address and port allocation (from the LSN pools bound to an LSN group) for subscribers (of the LSN client entity bound to the LSN group): Available options function as follows: * Deterministic - Allocate a NAT IP address and a block of ports to each subscriber (of the LSN client bound to the LSN group). The Citrix ADC sequentially allocates NAT resources to these subscribers. The Citrix ADC ADC assigns the first block of ports (block size determined by the port block size parameter of the LSN group) on the beginning NAT IP address to the beginning subscriber IP address. The next range of ports is assigned to the next subscriber, and so on, until the NAT address does not have enough ports for the next subscriber. In this case, the first port block on the next NAT address is used for the subscriber, and so on. Because each subscriber now receives a deterministic NAT IP address and a block of ports, a subscriber can be identified without any need for logging. For a connection, a subscriber can be identified based only on the NAT IP address and port, and the destination IP address and port. * Dynamic - Allocate a random NAT IP address and a port from the LSN NAT pool for a subscriber's connection. If port block allocation is enabled (in LSN pool) and a port block size is specified (in the LSN group), the Citrix ADC allocates a random NAT IP address and a block of ports for a subscriber when it initiates a connection for the first time. The ADC allocates this NAT IP address and a port (from the allocated block of ports) for different connections from this subscriber. If all the ports are allocated (for different subscriber's connections) from the subscriber's allocated port block, the ADC allocates a new random port block for the subscriber. - Only LSN Pools and LSN groups with the same NAT type settings can be bound together. Multiples LSN pools can be bound to an LSN group. A maximum of 16 LSN pools can be bound to an LSN group. + Only LSN Pools and LSN groups with the same NAT type settings can be bound together. Multiples LSN pools can be bound to an LSN group. A maximum of 16 LSN pools can be bound to an LSN group. */ Nattype string `json:"nattype,omitempty"` /** @@ -51,5 +51,4 @@ type Lsnpool struct { When the queue size is full, the next port deallocated is reallocated immediately for a new LSN session. */ Maxportrealloctmq int `json:"maxportrealloctmq,omitempty"` - } diff --git a/resource/config/lsn/lsnpool_binding.go b/resource/config/lsnpool_binding.go similarity index 92% rename from resource/config/lsn/lsnpool_binding.go rename to resource/config/lsnpool_binding.go index 551d91c..ae659fd 100644 --- a/resource/config/lsn/lsnpool_binding.go +++ b/resource/config/lsnpool_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** -* Binding object which returns the resources bound to lsnpool_binding. -*/ +* Binding object which returns the resources bound to lsnpool_binding. + */ type Lsnpoolbinding struct { /** - * Name for the LSN pool. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN pool is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn pool1" or 'lsn pool1').
Minimum value = - */ + * Name for the LSN pool. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN pool is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn pool1" or 'lsn pool1').
Minimum value = + */ Poolname string `json:"poolname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnpool_lsnip_binding.go b/resource/config/lsnpool_lsnip_binding.go similarity index 98% rename from resource/config/lsn/lsnpool_lsnip_binding.go rename to resource/config/lsnpool_lsnip_binding.go index f674a8a..5adbac9 100644 --- a/resource/config/lsn/lsnpool_lsnip_binding.go +++ b/resource/config/lsnpool_lsnip_binding.go @@ -12,29 +12,27 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the lsnip that can be bound to lsnpool. -*/ + */ type Lsnpoollsnipbinding struct { /** * IPv4 address or a range of IPv4 addresses to be used as NAT IP address(es) for LSN. After the pool is created, these IPv4 addresses are added to the Citrix ADC as Citrix ADC owned IP address of type LSN. A maximum of 4096 IP addresses can be bound to an LSN pool. An LSN IP address associated with an LSN pool cannot be shared with other LSN pools. IP addresses specified for this parameter must not already exist on the Citrix ADC as any Citrix ADC owned IP addresses. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. You can later remove some or all the LSN IP addresses from the pool, and add IP addresses to the LSN pool. By default , arp is enabled on LSN IP address but, you can disable it using command - "set ns ip" - + */ Lsnip string `json:"lsnip,omitempty"` /** * ID(s) of cluster node(s) on which command is to be executed - */ + */ Ownernode int `json:"ownernode,omitempty"` /** * Name for the LSN pool. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN pool is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn pool1" or 'lsn pool1'). - */ + */ Poolname string `json:"poolname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnrtspalgprofile.go b/resource/config/lsnrtspalgprofile.go similarity index 96% rename from resource/config/lsn/lsnrtspalgprofile.go rename to resource/config/lsnrtspalgprofile.go index a4682a6..7ba2740 100644 --- a/resource/config/lsn/lsnrtspalgprofile.go +++ b/resource/config/lsnrtspalgprofile.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN RTSPALG Profile resource. -*/ + */ type Lsnrtspalgprofile struct { /** * The name of the RTSPALG Profile. - */ + */ Rtspalgprofilename string `json:"rtspalgprofilename,omitempty"` /** * Idle timeout for the rtsp sessions in seconds. - */ + */ Rtspidletimeout int `json:"rtspidletimeout,omitempty"` /** * port for the RTSP - */ + */ Rtspportrange string `json:"rtspportrange,omitempty"` /** * RTSP ALG Profile transport protocol type. - */ + */ Rtsptransportprotocol string `json:"rtsptransportprotocol,omitempty"` - } diff --git a/resource/config/lsn/lsnrtspalgsession.go b/resource/config/lsnrtspalgsession.go similarity index 84% rename from resource/config/lsn/lsnrtspalgsession.go rename to resource/config/lsnrtspalgsession.go index 786191c..ea0623f 100644 --- a/resource/config/lsn/lsnrtspalgsession.go +++ b/resource/config/lsnrtspalgsession.go @@ -12,28 +12,27 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN RTSPALG session resource. -*/ + */ type Lsnrtspalgsession struct { /** * Session ID for the RTSP call. - */ + */ Sessionid string `json:"sessionid,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - Callflags string `json:"callflags,omitempty"` - Xlatip string `json:"xlatip,omitempty"` + Callflags string `json:"callflags,omitempty"` + Xlatip string `json:"xlatip,omitempty"` Callrefcount string `json:"callrefcount,omitempty"` - Calltimer string `json:"calltimer,omitempty"` - + Calltimer string `json:"calltimer,omitempty"` } diff --git a/resource/config/lsn/lsnrtspalgsession_binding.go b/resource/config/lsnrtspalgsession_binding.go similarity index 94% rename from resource/config/lsn/lsnrtspalgsession_binding.go rename to resource/config/lsnrtspalgsession_binding.go index 5dc92c9..4d15d0f 100644 --- a/resource/config/lsn/lsnrtspalgsession_binding.go +++ b/resource/config/lsnrtspalgsession_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** -* Binding object which returns the resources bound to lsnrtspalgsession_binding. -*/ +* Binding object which returns the resources bound to lsnrtspalgsession_binding. + */ type Lsnrtspalgsessionbinding struct { /** * Session ID for the RTSP call. - */ + */ Sessionid string `json:"sessionid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnrtspalgsession_datachannel_binding.go b/resource/config/lsnrtspalgsession_datachannel_binding.go similarity index 95% rename from resource/config/lsn/lsnrtspalgsession_datachannel_binding.go rename to resource/config/lsnrtspalgsession_datachannel_binding.go index daee603..2afd94b 100644 --- a/resource/config/lsn/lsnrtspalgsession_datachannel_binding.go +++ b/resource/config/lsnrtspalgsession_datachannel_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the datachannel that can be bound to lsnrtspalgsession. -*/ + */ type Lsnrtspalgsessiondatachannelbinding struct { /** * IP address of the channel. - */ + */ Channelip string `json:"channelip,omitempty"` /** * Natted IP address of the channel. - */ + */ Channelnatip string `json:"channelnatip,omitempty"` /** * port for the channel. - */ + */ Channelport int `json:"channelport,omitempty"` /** * Natted port for the channel. - */ + */ Channelnatport int `json:"channelnatport,omitempty"` /** * Channel transport protocol. - */ + */ Channelprotocol string `json:"channelprotocol,omitempty"` /** * Flags for the call entry. - */ + */ Channelflags int `json:"channelflags,omitempty"` /** * Timeout for the channel. - */ + */ Channeltimeout int `json:"channeltimeout,omitempty"` /** * Session ID for the RTSP call. - */ + */ Sessionid string `json:"sessionid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnsession.go b/resource/config/lsnsession.go similarity index 72% rename from resource/config/lsn/lsnsession.go rename to resource/config/lsnsession.go index 46a15ae..8b518c3 100644 --- a/resource/config/lsn/lsnsession.go +++ b/resource/config/lsnsession.go @@ -12,63 +12,62 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for lsn session resource. -*/ + */ type Lsnsession struct { /** * Type of sessions to be displayed. - */ + */ Nattype string `json:"nattype,omitempty"` /** * Name of the LSN Client entity. - */ + */ Clientname string `json:"clientname,omitempty"` /** * IP address or network address of subscriber(s). - */ + */ Network string `json:"network,omitempty"` /** * Subnet mask for the IP address specified by the network parameter. - */ + */ Netmask string `json:"netmask,omitempty"` /** * IPv6 address of the LSN subscriber or B4 device. - */ + */ Network6 string `json:"network6,omitempty"` /** * Traffic domain ID of the LSN client entity. - */ + */ Td int `json:"td,omitempty"` /** * Mapped NAT IP address used in LSN sessions. - */ + */ Natip string `json:"natip,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` /** * Mapped NAT port used in the LSN sessions. - */ + */ Natport2 int `json:"natport2,omitempty"` //------- Read only Parameter ---------; - Natprefix string `json:"natprefix,omitempty"` - Subscrip string `json:"subscrip,omitempty"` - Subscrport string `json:"subscrport,omitempty"` - Destip string `json:"destip,omitempty"` - Destport string `json:"destport,omitempty"` - Natport string `json:"natport,omitempty"` + Natprefix string `json:"natprefix,omitempty"` + Subscrip string `json:"subscrip,omitempty"` + Subscrport string `json:"subscrport,omitempty"` + Destip string `json:"destip,omitempty"` + Destport string `json:"destport,omitempty"` + Natport string `json:"natport,omitempty"` Transportprotocol string `json:"transportprotocol,omitempty"` - Sessionestdir string `json:"sessionestdir,omitempty"` - Dsttd string `json:"dsttd,omitempty"` - Srctd string `json:"srctd,omitempty"` - Ipv6address string `json:"ipv6address,omitempty"` - + Sessionestdir string `json:"sessionestdir,omitempty"` + Dsttd string `json:"dsttd,omitempty"` + Srctd string `json:"srctd,omitempty"` + Ipv6address string `json:"ipv6address,omitempty"` } diff --git a/resource/config/lsn/lsnsipalgcall.go b/resource/config/lsnsipalgcall.go similarity index 84% rename from resource/config/lsn/lsnsipalgcall.go rename to resource/config/lsnsipalgcall.go index f0c8e3e..0a6a4a7 100644 --- a/resource/config/lsn/lsnsipalgcall.go +++ b/resource/config/lsnsipalgcall.go @@ -12,28 +12,27 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN SIPALG call resource. -*/ + */ type Lsnsipalgcall struct { /** * Call ID for the SIP call. - */ + */ Callid string `json:"callid,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - Callflags string `json:"callflags,omitempty"` - Xlatip string `json:"xlatip,omitempty"` + Callflags string `json:"callflags,omitempty"` + Xlatip string `json:"xlatip,omitempty"` Callrefcount string `json:"callrefcount,omitempty"` - Calltimer string `json:"calltimer,omitempty"` - + Calltimer string `json:"calltimer,omitempty"` } diff --git a/resource/config/lsn/lsnsipalgcall_binding.go b/resource/config/lsnsipalgcall_binding.go similarity index 94% rename from resource/config/lsn/lsnsipalgcall_binding.go rename to resource/config/lsnsipalgcall_binding.go index 616eb82..584ddcf 100644 --- a/resource/config/lsn/lsnsipalgcall_binding.go +++ b/resource/config/lsnsipalgcall_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** -* Binding object which returns the resources bound to lsnsipalgcall_binding. -*/ +* Binding object which returns the resources bound to lsnsipalgcall_binding. + */ type Lsnsipalgcallbinding struct { /** * Call ID for the SIP call. - */ + */ Callid string `json:"callid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnsipalgcall_controlchannel_binding.go b/resource/config/lsnsipalgcall_controlchannel_binding.go similarity index 95% rename from resource/config/lsn/lsnsipalgcall_controlchannel_binding.go rename to resource/config/lsnsipalgcall_controlchannel_binding.go index 8bed0a8..f10c0b2 100644 --- a/resource/config/lsn/lsnsipalgcall_controlchannel_binding.go +++ b/resource/config/lsnsipalgcall_controlchannel_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the controlchannel that can be bound to lsnsipalgcall. -*/ + */ type Lsnsipalgcallcontrolchannelbinding struct { /** * IP address of the channel. - */ + */ Channelip string `json:"channelip,omitempty"` /** * Natted IP address of the channel. - */ + */ Channelnatip string `json:"channelnatip,omitempty"` /** * port for the channel. - */ + */ Channelport int `json:"channelport,omitempty"` /** * Natted port for the channel. - */ + */ Channelnatport int `json:"channelnatport,omitempty"` /** * Channel transport protocol. - */ + */ Channelprotocol string `json:"channelprotocol,omitempty"` /** * Flags for the call entry. - */ + */ Channelflags int `json:"channelflags,omitempty"` /** * Timeout for the channel. - */ + */ Channeltimeout int `json:"channeltimeout,omitempty"` /** * Call ID for the SIP call. - */ + */ Callid string `json:"callid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnsipalgcall_datachannel_binding.go b/resource/config/lsnsipalgcall_datachannel_binding.go similarity index 95% rename from resource/config/lsn/lsnsipalgcall_datachannel_binding.go rename to resource/config/lsnsipalgcall_datachannel_binding.go index fd12331..37cc470 100644 --- a/resource/config/lsn/lsnsipalgcall_datachannel_binding.go +++ b/resource/config/lsnsipalgcall_datachannel_binding.go @@ -12,46 +12,44 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Binding class showing the datachannel that can be bound to lsnsipalgcall. -*/ + */ type Lsnsipalgcalldatachannelbinding struct { /** * IP address of the channel. - */ + */ Channelip string `json:"channelip,omitempty"` /** * Natted IP address of the channel. - */ + */ Channelnatip string `json:"channelnatip,omitempty"` /** * port for the channel. - */ + */ Channelport int `json:"channelport,omitempty"` /** * Natted port for the channel. - */ + */ Channelnatport int `json:"channelnatport,omitempty"` /** * Channel transport protocol. - */ + */ Channelprotocol string `json:"channelprotocol,omitempty"` /** * Flags for the call entry. - */ + */ Channelflags int `json:"channelflags,omitempty"` /** * Timeout for the channel. - */ + */ Channeltimeout int `json:"channeltimeout,omitempty"` /** * Call ID for the SIP call. - */ + */ Callid string `json:"callid,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/lsn/lsnsipalgprofile.go b/resource/config/lsnsipalgprofile.go similarity index 96% rename from resource/config/lsn/lsnsipalgprofile.go rename to resource/config/lsnsipalgprofile.go index 813ec33..f342a79 100644 --- a/resource/config/lsn/lsnsipalgprofile.go +++ b/resource/config/lsnsipalgprofile.go @@ -12,65 +12,64 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN SIPALG Profile resource. -*/ + */ type Lsnsipalgprofile struct { /** * The name of the SIPALG Profile. - */ + */ Sipalgprofilename string `json:"sipalgprofilename,omitempty"` /** * Idle timeout for the data channel sessions in seconds. - */ + */ Datasessionidletimeout int `json:"datasessionidletimeout,omitempty"` /** * SIP control channel session timeout in seconds. - */ + */ Sipsessiontimeout int `json:"sipsessiontimeout,omitempty"` /** * SIP registration timeout in seconds. - */ + */ Registrationtimeout int `json:"registrationtimeout,omitempty"` /** * Source port range for SIP_UDP and SIP_TCP. - */ + */ Sipsrcportrange string `json:"sipsrcportrange,omitempty"` /** * Destination port range for SIP_UDP and SIP_TCP. - */ + */ Sipdstportrange string `json:"sipdstportrange,omitempty"` /** * ENABLE/DISABLE RegisterPinhole creation. - */ + */ Openregisterpinhole string `json:"openregisterpinhole,omitempty"` /** * ENABLE/DISABLE ContactPinhole creation. - */ + */ Opencontactpinhole string `json:"opencontactpinhole,omitempty"` /** * ENABLE/DISABLE ViaPinhole creation. - */ + */ Openviapinhole string `json:"openviapinhole,omitempty"` /** * ENABLE/DISABLE RecordRoutePinhole creation. - */ + */ Openrecordroutepinhole string `json:"openrecordroutepinhole,omitempty"` /** * SIP ALG Profile transport protocol type. - */ + */ Siptransportprotocol string `json:"siptransportprotocol,omitempty"` /** * ENABLE/DISABLE RoutePinhole creation. - */ + */ Openroutepinhole string `json:"openroutepinhole,omitempty"` /** * ENABLE/DISABLE rport. - */ + */ Rport string `json:"rport,omitempty"` - } diff --git a/resource/config/lsn/lsnstatic.go b/resource/config/lsnstatic.go similarity index 95% rename from resource/config/lsn/lsnstatic.go rename to resource/config/lsnstatic.go index 7216fe8..d9934d5 100644 --- a/resource/config/lsn/lsnstatic.go +++ b/resource/config/lsnstatic.go @@ -12,50 +12,50 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for static mapping resource. -*/ + */ type Lsnstatic struct { /** * Name for the LSN static mapping entry. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN group is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn static1" or 'lsn static1'). - */ + */ Name string `json:"name,omitempty"` /** * Protocol for the LSN mapping entry. - */ + */ Transportprotocol string `json:"transportprotocol,omitempty"` /** * IPv4(NAT44 & DS-Lite)/IPv6(NAT64) address of an LSN subscriber for the LSN static mapping entry. - */ + */ Subscrip string `json:"subscrip,omitempty"` /** * Port of the LSN subscriber for the LSN mapping entry. * represents all ports being used. Used in case of static wildcard - */ + */ Subscrport int `json:"subscrport,omitempty"` /** * B4 address in DS-Lite setup - */ + */ Network6 string `json:"network6,omitempty"` /** - * ID of the traffic domain to which the subscriber belongs. + * ID of the traffic domain to which the subscriber belongs. If you do not specify an ID, the subscriber is assumed to be a part of the default traffic domain. */ Td int `json:"td,omitempty"` /** * IPv4 address, already existing on the Citrix ADC as type LSN, to be used as NAT IP address for this mapping entry. - */ + */ Natip string `json:"natip,omitempty"` /** * NAT port for this LSN mapping entry. * represents all ports being used. Used in case of static wildcard - */ + */ Natport int `json:"natport,omitempty"` /** * Destination IP address for the LSN mapping entry. - */ + */ Destip string `json:"destip,omitempty"` /** * ID of the traffic domain through which the destination IP address for this LSN mapping entry is reachable from the Citrix ADC. @@ -64,11 +64,10 @@ type Lsnstatic struct { Dsttd int `json:"dsttd,omitempty"` /** * Type of sessions to be displayed. - */ + */ Nattype string `json:"nattype,omitempty"` //------- Read only Parameter ---------; Status string `json:"status,omitempty"` - } diff --git a/resource/config/lsn/lsntransportprofile.go b/resource/config/lsntransportprofile.go similarity index 95% rename from resource/config/lsn/lsntransportprofile.go rename to resource/config/lsntransportprofile.go index f2b2af3..5143b1d 100644 --- a/resource/config/lsn/lsntransportprofile.go +++ b/resource/config/lsntransportprofile.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package lsn +package config /** * Configuration for LSN Transport Profile resource. -*/ + */ type Lsntransportprofile struct { /** * Name for the LSN transport profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the LSN transport profile is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "lsn transport profile1" or 'lsn transport profile1'). - */ + */ Transportprofilename string `json:"transportprofilename,omitempty"` /** * Protocol for which to set the LSN transport profile parameters. - */ + */ Transportprotocol string `json:"transportprotocol,omitempty"` /** * Timeout, in seconds, for an idle LSN session. If an LSN session is idle for a time that exceeds this value, the Citrix ADC removes the session. - This timeout does not apply for a TCP LSN session when a FIN or RST message is received from either of the endpoints. + This timeout does not apply for a TCP LSN session when a FIN or RST message is received from either of the endpoints. */ Sessiontimeout int `json:"sessiontimeout,omitempty"` /** @@ -41,27 +41,27 @@ type Lsntransportprofile struct { Finrsttimeout int `json:"finrsttimeout,omitempty"` /** * STUN protocol timeout - */ + */ Stuntimeout int `json:"stuntimeout,omitempty"` /** * SYN Idle timeout - */ + */ Synidletimeout int `json:"synidletimeout,omitempty"` /** * Maximum number of LSN NAT ports to be used at a time by each subscriber for the specified protocol. For example, each subscriber can be limited to a maximum of 500 TCP NAT ports. When the LSN NAT mappings for a subscriber reach the limit, the Citrix ADC does not allocate additional NAT ports for that subscriber. - */ + */ Portquota int `json:"portquota,omitempty"` /** - * Maximum number of concurrent LSN sessions allowed for each subscriber for the specified protocol. + * Maximum number of concurrent LSN sessions allowed for each subscriber for the specified protocol. When the number of LSN sessions reaches the limit for a subscriber, the Citrix ADC does not allow the subscriber to open additional sessions. */ Sessionquota int `json:"sessionquota,omitempty"` /** * Maximum number of concurrent LSN sessions(for the specified protocol) allowed for all subscriber of a group to which this profile has bound. This limit will get split across the Citrix ADCs packet engines and rounded down. When the number of LSN sessions reaches the limit for a group in packet engine, the Citrix ADC does not allow the subscriber of that group to open additional sessions through that packet engine. - */ + */ Groupsessionlimit int `json:"groupsessionlimit,omitempty"` /** - * Enable port parity between a subscriber port and its mapped LSN NAT port. For example, if a subscriber initiates a connection from an odd numbered port, the Citrix ADC allocates an odd numbered LSN NAT port for this connection. + * Enable port parity between a subscriber port and its mapped LSN NAT port. For example, if a subscriber initiates a connection from an odd numbered port, the Citrix ADC allocates an odd numbered LSN NAT port for this connection. You must set this parameter for proper functioning of protocols that require the source port to be even or odd numbered, for example, in peer-to-peer applications that use RTP or RTCP protocol. */ Portpreserveparity string `json:"portpreserveparity,omitempty"` @@ -72,12 +72,11 @@ type Lsntransportprofile struct { */ Portpreserverange string `json:"portpreserverange,omitempty"` /** - * Silently drop any non-SYN packets for connections for which there is no LSN-NAT session present on the Citrix ADC. - If you disable this parameter, the Citrix ADC accepts any non-SYN packets and creates a new LSN session entry for this connection. + * Silently drop any non-SYN packets for connections for which there is no LSN-NAT session present on the Citrix ADC. + If you disable this parameter, the Citrix ADC accepts any non-SYN packets and creates a new LSN session entry for this connection. Following are some reasons for the Citrix ADC to receive such packets: * LSN session for a connection existed but the Citrix ADC removed this session because the LSN session was idle for a time that exceeded the configured session timeout. * Such packets can be a part of a DoS attack. */ Syncheck string `json:"syncheck,omitempty"` - } diff --git a/resource/config/network/mapbmr.go b/resource/config/mapbmr.go similarity index 97% rename from resource/config/network/mapbmr.go rename to resource/config/mapbmr.go index 841e4ef..8272e7d 100644 --- a/resource/config/network/mapbmr.go +++ b/resource/config/mapbmr.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for MAP-T Basic Mapping rule resource. -*/ + */ type Mapbmr struct { /** * Name for the Basic Mapping Rule. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Basic Mapping Rule is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapBmr bmr1 -natprefix 2005::/64 -EAbitLength 16 -psidoffset 6 -portsharingratio 8" ). @@ -28,20 +28,19 @@ type Mapbmr struct { Name string `json:"name,omitempty"` /** * IPv6 prefix of Customer Edge(CE) device.MAP-T CE will send ipv6 packets with this ipv6 prefix as source ipv6 address prefix - */ + */ Ruleipv6prefix string `json:"ruleipv6prefix,omitempty"` /** * Start bit position of Port Set Identifier(PSID) value in Embedded Address (EA) bits. - */ + */ Psidoffset int `json:"psidoffset,omitempty"` /** - * The Embedded Address (EA) bit field encodes the CE-specific IPv4 address and port information. The EA bit field, which is unique for a + * The Embedded Address (EA) bit field encodes the CE-specific IPv4 address and port information. The EA bit field, which is unique for a given Rule IPv6 prefix. */ Eabitlength int `json:"eabitlength,omitempty"` /** * Length of Port Set IdentifierPort Set Identifier(PSID) in Embedded Address (EA) bits - */ + */ Psidlength int `json:"psidlength,omitempty"` - } diff --git a/resource/config/network/mapbmr_binding.go b/resource/config/mapbmr_binding.go similarity index 94% rename from resource/config/network/mapbmr_binding.go rename to resource/config/mapbmr_binding.go index 95f0c64..7fdbf00 100644 --- a/resource/config/network/mapbmr_binding.go +++ b/resource/config/mapbmr_binding.go @@ -12,20 +12,18 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to mapbmr_binding. -*/ +* Binding object which returns the resources bound to mapbmr_binding. + */ type Mapbmrbinding struct { /** * Name for the Basic Mapping Rule. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Basic Mapping Rule is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapBmr bmr1 -natprefix 2005::/64 -EAbitLength 16 -psidoffset 6 -portsharingratio 8" ). The Basic Mapping Rule information allows a MAP BR to determine source IPv4 address from the IPv6 packet sent from MAP CE device. - Also it allows to determine destination IPv6 address of MAP CE before sending packets to MAP CE.
Minimum value = + Also it allows to determine destination IPv6 address of MAP CE before sending packets to MAP CE.
Minimum value = */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/mapbmr_bmrv4network_binding.go b/resource/config/mapbmr_bmrv4network_binding.go similarity index 98% rename from resource/config/network/mapbmr_bmrv4network_binding.go rename to resource/config/mapbmr_bmrv4network_binding.go index 4f1b115..338e45f 100644 --- a/resource/config/network/mapbmr_bmrv4network_binding.go +++ b/resource/config/mapbmr_bmrv4network_binding.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the bmrv4network that can be bound to mapbmr. -*/ + */ type Mapbmrbmrv4networkbinding struct { /** * IPv4 NAT address range of Customer Edge (CE). - */ + */ Network string `json:"network,omitempty"` /** * Subnet mask for the IPv4 address specified in the Network parameter. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Name for the Basic Mapping Rule. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Basic Mapping Rule is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapBmr bmr1 -natprefix 2005::/64 -EAbitLength 16 -psidoffset 6 -portsharingratio 8" ). @@ -34,6 +34,4 @@ type Mapbmrbmrv4networkbinding struct { Also it allows to determine destination IPv6 address of MAP CE before sending packets to MAP CE */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/mapdmr.go b/resource/config/mapdmr.go similarity index 98% rename from resource/config/network/mapdmr.go rename to resource/config/mapdmr.go index e5af22c..5353ba1 100644 --- a/resource/config/network/mapdmr.go +++ b/resource/config/mapdmr.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for MAP-T Default Mapping rule resource. -*/ + */ type Mapdmr struct { /** * Name for the Default Mapping Rule. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Default Mapping Rule is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDmr map1 -BRIpv6Prefix 2003::/96"). @@ -27,7 +27,6 @@ type Mapdmr struct { Name string `json:"name,omitempty"` /** * IPv6 prefix of Border Relay (Citrix ADC) device.MAP-T CE will send ipv6 packets to this ipv6 prefix.The DMR IPv6 prefix length SHOULD be 64 bits long by default and in any case MUST NOT exceed 96 bits - */ + */ Bripv6prefix string `json:"bripv6prefix,omitempty"` - } diff --git a/resource/config/network/mapdomain.go b/resource/config/mapdomain.go similarity index 97% rename from resource/config/network/mapdomain.go rename to resource/config/mapdomain.go index 073f726..c89dcf0 100644 --- a/resource/config/network/mapdomain.go +++ b/resource/config/mapdomain.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for MAP-T Map Domain resource. -*/ + */ type Mapdomain struct { /** * Name for the MAP Domain. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Domain is created . The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDomain map1"). - */ + */ Name string `json:"name,omitempty"` /** * Default Mapping rule name. - */ + */ Mapdmrname string `json:"mapdmrname,omitempty"` - } diff --git a/resource/config/network/mapdomain_binding.go b/resource/config/mapdomain_binding.go similarity index 92% rename from resource/config/network/mapdomain_binding.go rename to resource/config/mapdomain_binding.go index 789b804..f0408b8 100644 --- a/resource/config/network/mapdomain_binding.go +++ b/resource/config/mapdomain_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to mapdomain_binding. -*/ +* Binding object which returns the resources bound to mapdomain_binding. + */ type Mapdomainbinding struct { /** - * Name for the MAP Domain. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Domain is created . The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDomain map1").
Minimum value = - */ + * Name for the MAP Domain. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Domain is created . The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDomain map1").
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/mapdomain_mapbmr_binding.go b/resource/config/mapdomain_mapbmr_binding.go similarity index 97% rename from resource/config/network/mapdomain_mapbmr_binding.go rename to resource/config/mapdomain_mapbmr_binding.go index 923bc86..6d6e3ad 100644 --- a/resource/config/network/mapdomain_mapbmr_binding.go +++ b/resource/config/mapdomain_mapbmr_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the mapbmr that can be bound to mapdomain. -*/ + */ type Mapdomainmapbmrbinding struct { /** * Basic Mapping rule name. - */ + */ Mapbmrname string `json:"mapbmrname,omitempty"` /** * Name for the MAP Domain. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Domain is created . The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDomain map1"). - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/nat64.go b/resource/config/nat64.go similarity index 97% rename from resource/config/network/nat64.go rename to resource/config/nat64.go index a99ed92..84b3e3c 100644 --- a/resource/config/network/nat64.go +++ b/resource/config/nat64.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for nat64 config resource. -*/ + */ type Nat64 struct { /** * Name for the NAT64 rule. Must begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the rule is created. Choose a name that helps identify the NAT64 rule. - */ + */ Name string `json:"name,omitempty"` /** * Name of any configured ACL6 whose action is ALLOW. IPv6 Packets matching the condition of this ACL6 rule and destination IP address of these packets matching the NAT64 IPv6 prefix are considered for NAT64 translation. - */ + */ Acl6name string `json:"acl6name,omitempty"` /** * Name of the configured netprofile. The Citrix ADC selects one of the IP address in the netprofile as the source IP address of the translated IPv4 packet to be sent to the IPv4 server. - */ + */ Netprofile string `json:"netprofile,omitempty"` - } diff --git a/resource/config/network/nat64param.go b/resource/config/nat64param.go similarity index 96% rename from resource/config/network/nat64param.go rename to resource/config/nat64param.go index 8c9f04b..5f09a5b 100644 --- a/resource/config/network/nat64param.go +++ b/resource/config/nat64param.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for NAT64 parameter resource. -*/ + */ type Nat64param struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Ignore TOS. - */ + */ Nat64ignoretos string `json:"nat64ignoretos,omitempty"` /** * Calculate checksum for UDP packets with zero checksum - */ + */ Nat64zerochecksum string `json:"nat64zerochecksum,omitempty"` /** * MTU setting for the IPv6 side. If the incoming IPv4 packet greater than this, either fragment or send icmp need fragmentation error. - */ + */ Nat64v6mtu int `json:"nat64v6mtu,omitempty"` /** * When disabled, translator will not insert IPv6 fragmentation header for non fragmented IPv4 packets - */ + */ Nat64fragheader string `json:"nat64fragheader,omitempty"` - } diff --git a/resource/config/network/nd6.go b/resource/config/nd6.go similarity index 88% rename from resource/config/network/nd6.go rename to resource/config/nd6.go index d3654f1..3931ec7 100644 --- a/resource/config/network/nd6.go +++ b/resource/config/nd6.go @@ -12,53 +12,52 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for nd6 resource. -*/ + */ type Nd6 struct { /** * Link-local IPv6 address of the adjacent network device to add to the ND6 table. - */ + */ Neighbor string `json:"neighbor,omitempty"` /** * MAC address of the adjacent network device. - */ + */ Mac string `json:"mac,omitempty"` /** * Interface through which the adjacent network device is available, specified in slot/port notation (for example, 1/3). Use spaces to separate multiple entries. - */ + */ Ifnum string `json:"ifnum,omitempty"` /** * Integer value that uniquely identifies the VLAN on which the adjacent network device exists. - */ + */ Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN on which the IPv6 address of this ND6 entry is reachable. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * IP address of the VXLAN tunnel endpoint (VTEP) through which the IPv6 address of this ND6 entry is reachable. - */ + */ Vtep string `json:"vtep,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - State string `json:"state,omitempty"` - Timeout string `json:"timeout,omitempty"` - Flags string `json:"flags,omitempty"` + State string `json:"state,omitempty"` + Timeout string `json:"timeout,omitempty"` + Flags string `json:"flags,omitempty"` Controlplane string `json:"controlplane,omitempty"` - Channel string `json:"channel,omitempty"` - + Channel string `json:"channel,omitempty"` } diff --git a/resource/config/network/nd6ravariables.go b/resource/config/nd6ravariables.go similarity index 94% rename from resource/config/network/nd6ravariables.go rename to resource/config/nd6ravariables.go index 6e9f2be..36b585f 100644 --- a/resource/config/network/nd6ravariables.go +++ b/resource/config/nd6ravariables.go @@ -12,74 +12,73 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for nd6 Router Advertisment configuration variables resource. -*/ + */ type Nd6ravariables struct { /** * The VLAN number. - */ + */ Vlan int `json:"vlan,omitempty"` /** * Cease router advertisements on this vlan. - */ + */ Ceaserouteradv string `json:"ceaserouteradv,omitempty"` /** * whether the router sends periodic RAs and responds to Router Solicitations. - */ + */ Sendrouteradv string `json:"sendrouteradv,omitempty"` /** * Include source link layer address option in RA messages. - */ + */ Srclinklayeraddroption string `json:"srclinklayeraddroption,omitempty"` /** * Send only Unicast Router Advertisements in respond to Router Solicitations. - */ + */ Onlyunicastrtadvresponse string `json:"onlyunicastrtadvresponse,omitempty"` /** * Value to be placed in the Managed address configuration flag field. - */ + */ Managedaddrconfig string `json:"managedaddrconfig,omitempty"` /** * Value to be placed in the Other configuration flag field. - */ + */ Otheraddrconfig string `json:"otheraddrconfig,omitempty"` /** * Current Hop limit. - */ + */ Currhoplimit int `json:"currhoplimit,omitempty"` /** * Maximum time allowed between unsolicited multicast RAs, in seconds. - */ + */ Maxrtadvinterval int `json:"maxrtadvinterval,omitempty"` /** * Minimum time interval between RA messages, in seconds. - */ + */ Minrtadvinterval int `json:"minrtadvinterval,omitempty"` /** * The Link MTU. - */ + */ Linkmtu int `json:"linkmtu,omitempty"` /** * Reachable time, in milliseconds. - */ + */ Reachabletime int `json:"reachabletime,omitempty"` /** * Retransmission time, in milliseconds. - */ + */ Retranstime int `json:"retranstime,omitempty"` /** * Default life time, in seconds. - */ + */ Defaultlifetime int `json:"defaultlifetime,omitempty"` //------- Read only Parameter ---------; - Lastrtadvtime string `json:"lastrtadvtime,omitempty"` + Lastrtadvtime string `json:"lastrtadvtime,omitempty"` Nextrtadvdelay string `json:"nextrtadvdelay,omitempty"` - } diff --git a/resource/config/network/nd6ravariables_binding.go b/resource/config/nd6ravariables_binding.go similarity index 94% rename from resource/config/network/nd6ravariables_binding.go rename to resource/config/nd6ravariables_binding.go index d39b1bd..fc88331 100644 --- a/resource/config/network/nd6ravariables_binding.go +++ b/resource/config/nd6ravariables_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to nd6ravariables_binding. -*/ +* Binding object which returns the resources bound to nd6ravariables_binding. + */ type Nd6ravariablesbinding struct { /** * The VLAN number.
Minimum value = 1
Maximum value = 4094 - */ + */ Vlan int `json:"vlan,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go b/resource/config/nd6ravariables_onlinkipv6prefix_binding.go similarity index 96% rename from resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go rename to resource/config/nd6ravariables_onlinkipv6prefix_binding.go index 9df26be..fc1c65e 100644 --- a/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go +++ b/resource/config/nd6ravariables_onlinkipv6prefix_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the onlinkipv6prefix that can be bound to nd6ravariables. -*/ + */ type Nd6ravariablesonlinkipv6prefixbinding struct { /** * Onlink prefixes for RA messages. - */ + */ Ipv6prefix string `json:"ipv6prefix,omitempty"` /** * The VLAN number. - */ + */ Vlan int `json:"vlan,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netbridge.go b/resource/config/netbridge.go similarity index 96% rename from resource/config/network/netbridge.go rename to resource/config/netbridge.go index 25adc6c..bae3316 100644 --- a/resource/config/network/netbridge.go +++ b/resource/config/netbridge.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for network bridge resource. -*/ + */ type Netbridge struct { /** * The name of the network bridge. - */ + */ Name string `json:"name,omitempty"` /** * The vlan to vxlan mapping to be applied to this netbridge. - */ + */ Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` - } diff --git a/resource/config/network/netbridge_binding.go b/resource/config/netbridge_binding.go similarity index 95% rename from resource/config/network/netbridge_binding.go rename to resource/config/netbridge_binding.go index 789d1dc..857f2cb 100644 --- a/resource/config/network/netbridge_binding.go +++ b/resource/config/netbridge_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to netbridge_binding. -*/ +* Binding object which returns the resources bound to netbridge_binding. + */ type Netbridgebinding struct { /** * The name of the network bridge. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netbridge_ip6_binding.go b/resource/config/netbridge_ip6_binding.go similarity index 96% rename from resource/config/network/netbridge_ip6_binding.go rename to resource/config/netbridge_ip6_binding.go index 5eff6df..b55e7b8 100644 --- a/resource/config/network/netbridge_ip6_binding.go +++ b/resource/config/netbridge_ip6_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the ip6 that can be bound to netbridge. -*/ + */ type Netbridgeip6binding struct { /** * The subnet that is extended by this network bridge. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * The network mask for the subnet. - */ + */ Netmask string `json:"netmask,omitempty"` /** * The name of the network bridge. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netbridge_ip_binding.go b/resource/config/netbridge_ip_binding.go similarity index 96% rename from resource/config/network/netbridge_ip_binding.go rename to resource/config/netbridge_ip_binding.go index 2342cc8..fb0d3d1 100644 --- a/resource/config/network/netbridge_ip_binding.go +++ b/resource/config/netbridge_ip_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the ip that can be bound to netbridge. -*/ + */ type Netbridgeipbinding struct { /** * The subnet that is extended by this network bridge. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * The network mask for the subnet. - */ + */ Netmask string `json:"netmask,omitempty"` /** * The name of the network bridge. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netbridge_iptunnel_binding.go b/resource/config/netbridge_iptunnel_binding.go similarity index 96% rename from resource/config/network/netbridge_iptunnel_binding.go rename to resource/config/netbridge_iptunnel_binding.go index 8fcc8d0..471d301 100644 --- a/resource/config/network/netbridge_iptunnel_binding.go +++ b/resource/config/netbridge_iptunnel_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the iptunnel that can be bound to netbridge. -*/ + */ type Netbridgeiptunnelbinding struct { /** * The name of the tunnel that is a part of this bridge. - */ + */ Tunnel string `json:"tunnel,omitempty"` /** * The name of the network bridge. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netbridge_nsip6_binding.go b/resource/config/netbridge_nsip6_binding.go similarity index 96% rename from resource/config/network/netbridge_nsip6_binding.go rename to resource/config/netbridge_nsip6_binding.go index 8c7bed0..92f73ef 100644 --- a/resource/config/network/netbridge_nsip6_binding.go +++ b/resource/config/netbridge_nsip6_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the nsip6 that can be bound to netbridge. -*/ + */ type Netbridgensip6binding struct { /** * The subnet that is extended by this network bridge. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * The network mask for the subnet. - */ + */ Netmask string `json:"netmask,omitempty"` /** * The name of the network bridge. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netbridge_nsip_binding.go b/resource/config/netbridge_nsip_binding.go similarity index 96% rename from resource/config/network/netbridge_nsip_binding.go rename to resource/config/netbridge_nsip_binding.go index 77068bd..2d34fb4 100644 --- a/resource/config/network/netbridge_nsip_binding.go +++ b/resource/config/netbridge_nsip_binding.go @@ -12,26 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the nsip that can be bound to netbridge. -*/ + */ type Netbridgensipbinding struct { /** * The subnet that is extended by this network bridge. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * The network mask for the subnet. - */ + */ Netmask string `json:"netmask,omitempty"` /** * The name of the network bridge. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netbridge_vlan_binding.go b/resource/config/netbridge_vlan_binding.go similarity index 96% rename from resource/config/network/netbridge_vlan_binding.go rename to resource/config/netbridge_vlan_binding.go index 8e2b2df..9accd66 100644 --- a/resource/config/network/netbridge_vlan_binding.go +++ b/resource/config/netbridge_vlan_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the vlan that can be bound to netbridge. -*/ + */ type Netbridgevlanbinding struct { /** * The VLAN that is extended by this network bridge. - */ + */ Vlan int `json:"vlan,omitempty"` /** * The name of the network bridge. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netprofile.go b/resource/config/netprofile.go similarity index 96% rename from resource/config/network/netprofile.go rename to resource/config/netprofile.go index 60efc83..96818c3 100644 --- a/resource/config/network/netprofile.go +++ b/resource/config/netprofile.go @@ -12,50 +12,49 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for Network profile resource. -*/ + */ type Netprofile struct { /** * Name for the net profile. Must begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the profile is created. Choose a name that helps identify the net profile. - */ + */ Name string `json:"name,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * IP address or the name of an IP set. - */ + */ Srcip string `json:"srcip,omitempty"` /** * When the net profile is associated with a virtual server or its bound services, this option enables the Citrix ADC to use the same address, specified in the net profile, to communicate to servers for all sessions initiated from a particular client to the virtual server. - */ + */ Srcippersistency string `json:"srcippersistency,omitempty"` /** * USNIP/USIP settings override LSN settings for configured - service/virtual server traffic.. + service/virtual server traffic.. */ Overridelsn string `json:"overridelsn,omitempty"` /** * Response will be sent using learnt info if enabled. When creating a netprofile, if you do not set this parameter, the netprofile inherits the global MBF setting (available in the enable ns mode and disable ns mode CLI commands, or in the System > Settings > Configure modes > Configure Modes dialog box). However, you can override this setting after you create the netprofile - */ + */ Mbf string `json:"mbf,omitempty"` /** * Proxy Protocol Action (Enabled/Disabled) - */ + */ Proxyprotocol string `json:"proxyprotocol,omitempty"` /** * Proxy Protocol Version (V1/V2) - */ + */ Proxyprotocoltxversion string `json:"proxyprotocoltxversion,omitempty"` /** * ADC doesnt look for proxy header before TLS handshake, if enabled. Proxy protocol parsed after TLS handshake - */ + */ Proxyprotocolaftertlshandshake string `json:"proxyprotocolaftertlshandshake,omitempty"` - } diff --git a/resource/config/network/netprofile_binding.go b/resource/config/netprofile_binding.go similarity index 93% rename from resource/config/network/netprofile_binding.go rename to resource/config/netprofile_binding.go index 27bfe37..fd515ae 100644 --- a/resource/config/network/netprofile_binding.go +++ b/resource/config/netprofile_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** -* Binding object which returns the resources bound to netprofile_binding. -*/ +* Binding object which returns the resources bound to netprofile_binding. + */ type Netprofilebinding struct { /** - * Name of the net profile whose details you want to display.
Minimum value = - */ + * Name of the net profile whose details you want to display.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netprofile_natrule_binding.go b/resource/config/netprofile_natrule_binding.go similarity index 88% rename from resource/config/network/netprofile_natrule_binding.go rename to resource/config/netprofile_natrule_binding.go index ca765da..34ffdda 100644 --- a/resource/config/network/netprofile_natrule_binding.go +++ b/resource/config/netprofile_natrule_binding.go @@ -12,24 +12,22 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the natrule that can be bound to netprofile. -*/ + */ type Netprofilenatrulebinding struct { /** * IPv4 network address on whose traffic you want the Citrix ADC to do rewrite ip prefix. - */ - Natrule string `json:"natrule,omitempty"` - Netmask string `json:"netmask,omitempty"` + */ + Natrule string `json:"natrule,omitempty"` + Netmask string `json:"netmask,omitempty"` Rewriteip string `json:"rewriteip,omitempty"` /** * Name of the netprofile to which to bind port ranges. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/network/netprofile_srcportset_binding.go b/resource/config/netprofile_srcportset_binding.go similarity index 96% rename from resource/config/network/netprofile_srcportset_binding.go rename to resource/config/netprofile_srcportset_binding.go index 3d6a5d0..cfedd20 100644 --- a/resource/config/network/netprofile_srcportset_binding.go +++ b/resource/config/netprofile_srcportset_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Binding class showing the srcportset that can be bound to netprofile. -*/ + */ type Netprofilesrcportsetbinding struct { /** * When the source port range is configured and associated with the netprofile bound to a service group, Citrix ADC will choose a port from the range configured for connection establishment at the backend servers. - */ + */ Srcportrange string `json:"srcportrange,omitempty"` /** * Name of the netprofile to which to bind port ranges. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nsconnectiontable.go b/resource/config/ns/nsconnectiontable.go deleted file mode 100644 index d623484..0000000 --- a/resource/config/ns/nsconnectiontable.go +++ /dev/null @@ -1,301 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package ns - -/** -* Configuration for TCP/IP connection table resource. -*/ -type Nsconnectiontable struct { - /** - * The maximum length of filter expression is 255 and it can be of following format: - [ ] - = ( && | || ) - =: - CONNECTION...() - = SRCIP - = [ EQ | NE ] - = A valid IPv4 address - example = CONNECTION.SRCIP.EQ(127.0.0.1) - = DSTIP - = [ EQ | NE ] - = A valid IPv4 address. - example = CONNECTION.DSTIP.EQ(127.0.0.1) - = IP - = [ EQ | NE ] - = A valid IPv4 address. - example = CONNECTION.IP.EQ(127.0.0.1) - = SRCIPv6 - = [ EQ | NE ] - = A valid IPv6 address. - example = CONNECTION.SRCIPv6.EQ(2001:db8:0:0:1::1) - = DSTIPv6 - = [ EQ | NE ] - = A valid IPv6 address. - example = CONNECTION.DSTIPv6.EQ(2001:db8:0:0:1::1) - = IPv6 - = [ EQ | NE ] - = A valid IPv6 address. - example = CONNECTION.IPv6.EQ(2001:db8:0:0:1::1) - = SRCPORT - = [ EQ | NE | GT | GE | LT | LE - | BETWEEN ] - = A valid port number. - example = CONNECTION.SRCPORT.EQ(80) - = DSTPORT - = [ EQ | NE | GT | GE | LT | LE - | BETWEEN ] - = A valid port number. - example = CONNECTION.DSTPORT.EQ(80) - = PORT - = [ EQ | NE | GT | GE | LT | LE - | BETWEEN ] - = A valid port number. - example = CONNECTION.PORT.EQ(80) - = SVCNAME - = [ EQ | NE | CONTAINS | STARTSWITH - | ENDSWITH ] - = service name. - example = CONNECTION.SVCNAME.EQ("name") - = LB_VSERVER.NAME - = [ EQ | NE | CONTAINS | STARTSWITH - | ENDSWITH ] - = LB vserver name. - example = CONNECTION.LB_VSERVER.NAME.EQ("name") - = CS_VSERVER.NAME - = [ EQ | NE | CONTAINS | STARTSWITH - | ENDSWITH ] - = CS vserver name. - example = CONNECTION.CS_VSERVER.NAME.EQ("name") - = INTF - = [ EQ | NE ] - = A valid interface id in the form of - x/y (n/x/y in case of cluster interface). - examle = CONNECTION.INTF.EQ("0/1/1") - = VLANID - = [ EQ | NE | GT | GE | LT | LE - | BETWEEN ] - = A valid VLAN ID. - example = CONNECTION.VLANID.EQ(0) - = CONNID - = [ EQ | NE | GT | GE | LT | LE - | BETWEEN ] - = A valid PCB dev number. - example = CONNECTION.CONNID.EQ(0) - = PPEID - = [ EQ | NE | GT | GE | LT | LE - | BETWEEN ] - = A valid core ID. - example = CONNECTION.PPEID.EQ(0) - = IDLETIME - = [ EQ | NE | GT | GE | LT | LE - | BETWEEN ] - = A positive integer indicating the - idletime. - example = CONNECTION.IDLETIME.LT(100) - = TCPSTATE - = [ EQ | NE ] - = ( CLOSE_WAIT | CLOSED | CLOSING | - ESTABLISHED | FIN_WAIT_1 | FIN_WAIT_2 | LAST_ACK | - LISTEN | SYN_RECEIVED | SYN_SENT | TIME_WAIT | - NOT_APPLICABLE) - example = CONNECTION.TCPSTATE.EQ(LISTEN) - = SERVICE_TYPE - = [ EQ | NE ] - = ( SVC_HTTP | FTP | TCP | UDP | SSL | - SSL_BRIDGE | SSL_TCP | NNTP | RPCSVR | RPCSVRS | - RPCCLNT | SVC_DNS | ADNS | SNMP | RTSP | DHCPRA | NAT | ANY | - MONITOR | MONITOR_UDP | MONITOR_PING | SIP_UDP | - SVC_MYSQL | SVC_MSSQL | SERVICE_UNKNOWN ) - example = CONNECTION.SERVICE_TYPE.EQ(ANY) - = TRAFFIC_DOMAIN_ID - = [ EQ | NE | GT | GE | LT | LE - | BETWEEN ] - = A valid traffic domain ID. - example = CONNECTION.TRAFFIC_DOMAIN_ID.EQ(0) - common usecases: - Filtering out loopback connections and view present - connections through netscaler - show connectiontable "CONNECTION.IP.NE(127.0.0.1) && - CONNECTION.TCPSTATE.EQ(ESTABLISHED)" -detail full - show connections from a particular sourceip and targeted - to port 80 - show connectiontable "CONNECTION.SRCIP.EQ(10.102.1.91) && - CONNECTION.DSTPORT.EQ(80)" - show connection particular to a service and its linked - client connections - show connectiontable CONNECTION.SVCNAME.EQ("S1") - -detail link - show connections for a particular servicetype(e.g.http) - show connectiontable CONNECTION.SERVICE_TYPE.EQ(TCP) - viewing connections that have been idle for a long time - show connectiontable CONNECTION.IDLETIME.GT(100) - show connections particular to a service and idle - for a long time - show connectiontable "CONNECTION.SVCNAME.EQ(\\"S1\\") && - CONNECTION.IDLETIME.GT(100)" - show connections for a particular interface - show connectiontable CONNECTION.INTF.EQ("1/1") - show connections for a particular interface and vlan - show connectiontable "CONNECTION.INTF.EQ(\\"1/1\\") && - CONNECTION.VLANID.EQ(1)" - */ - Filterexpression string `json:"filterexpression,omitempty"` - /** - * Display link information if available - */ - Link bool `json:"link,omitempty"` - /** - * Display name instead of IP for local entities - */ - Filtername bool `json:"filtername,omitempty"` - /** - * Specify display options for the connection table. - * LINK - Displays the linked PCB (Protocol Control Block). - * NAME - Displays along with the service name. - * CONNFAILOVER - Displays PCB with connection failover. - * FULL - Displays all available details. - */ - Detail []string `json:"detail,omitempty"` - /** - * Display listening services only - */ - Listen bool `json:"listen,omitempty"` - /** - * Unique number that identifies the cluster node. - */ - Nodeid int `json:"nodeid,omitempty"` - - //------- Read only Parameter ---------; - - Sourceip string `json:"sourceip,omitempty"` - Sourceport string `json:"sourceport,omitempty"` - Destip string `json:"destip,omitempty"` - Destport string `json:"destport,omitempty"` - Svctype string `json:"svctype,omitempty"` - Idletime string `json:"idletime,omitempty"` - State string `json:"state,omitempty"` - Linksourceip string `json:"linksourceip,omitempty"` - Linksourceport string `json:"linksourceport,omitempty"` - Linkdestip string `json:"linkdestip,omitempty"` - Linkdestport string `json:"linkdestport,omitempty"` - Linkservicetype string `json:"linkservicetype,omitempty"` - Linkidletime string `json:"linkidletime,omitempty"` - Linkstate string `json:"linkstate,omitempty"` - Entityname string `json:"entityname,omitempty"` - Linkentityname string `json:"linkentityname,omitempty"` - Connid string `json:"connid,omitempty"` - Linkconnid string `json:"linkconnid,omitempty"` - Connproperties string `json:"connproperties,omitempty"` - Optionflags string `json:"optionflags,omitempty"` - Nswsvalue string `json:"nswsvalue,omitempty"` - Peerwsvalue string `json:"peerwsvalue,omitempty"` - Mss string `json:"mss,omitempty"` - Retxretrycnt string `json:"retxretrycnt,omitempty"` - Rcvwnd string `json:"rcvwnd,omitempty"` - Advwnd string `json:"advwnd,omitempty"` - Sndcwnd string `json:"sndcwnd,omitempty"` - Iss string `json:"iss,omitempty"` - Irs string `json:"irs,omitempty"` - Rcvnxt string `json:"rcvnxt,omitempty"` - Maxack string `json:"maxack,omitempty"` - Sndnxt string `json:"sndnxt,omitempty"` - Sndunack string `json:"sndunack,omitempty"` - Httpendseq string `json:"httpendseq,omitempty"` - Httpstate string `json:"httpstate,omitempty"` - Trcount string `json:"trcount,omitempty"` - Priority string `json:"priority,omitempty"` - Httpreqver string `json:"httpreqver,omitempty"` - Httprequest string `json:"httprequest,omitempty"` - Httprspcode string `json:"httprspcode,omitempty"` - Rttsmoothed string `json:"rttsmoothed,omitempty"` - Rttvariance string `json:"rttvariance,omitempty"` - Outoforderpkts string `json:"outoforderpkts,omitempty"` - Linkoptionflag string `json:"linkoptionflag,omitempty"` - Linknswsvalue string `json:"linknswsvalue,omitempty"` - Linkpeerwsvalue string `json:"linkpeerwsvalue,omitempty"` - Targetnodeidnnm string `json:"targetnodeidnnm,omitempty"` - Sourcenodeidnnm string `json:"sourcenodeidnnm,omitempty"` - Channelidnnm string `json:"channelidnnm,omitempty"` - Msgversionnnm string `json:"msgversionnnm,omitempty"` - Td string `json:"td,omitempty"` - Maxrcvbuf string `json:"maxrcvbuf,omitempty"` - Linkmaxrcvbuf string `json:"linkmaxrcvbuf,omitempty"` - Rxqsize string `json:"rxqsize,omitempty"` - Linkrxqsize string `json:"linkrxqsize,omitempty"` - Maxsndbuf string `json:"maxsndbuf,omitempty"` - Linkmaxsndbuf string `json:"linkmaxsndbuf,omitempty"` - Txqsize string `json:"txqsize,omitempty"` - Linktxqsize string `json:"linktxqsize,omitempty"` - Flavor string `json:"flavor,omitempty"` - Linkflavor string `json:"linkflavor,omitempty"` - Bwestimate string `json:"bwestimate,omitempty"` - Linkbwestimate string `json:"linkbwestimate,omitempty"` - Rttmin string `json:"rttmin,omitempty"` - Linkrttmin string `json:"linkrttmin,omitempty"` - Name string `json:"name,omitempty"` - Linkname string `json:"linkname,omitempty"` - Tcpmode string `json:"tcpmode,omitempty"` - Linktcpmode string `json:"linktcpmode,omitempty"` - Realtimertt string `json:"realtimertt,omitempty"` - Linkrealtimertt string `json:"linkrealtimertt,omitempty"` - Sndbuf string `json:"sndbuf,omitempty"` - Linksndbuf string `json:"linksndbuf,omitempty"` - Nsbtcpwaitq string `json:"nsbtcpwaitq,omitempty"` - Linknsbtcpwaitq string `json:"linknsbtcpwaitq,omitempty"` - Nsbretxq string `json:"nsbretxq,omitempty"` - Linknsbretxq string `json:"linknsbretxq,omitempty"` - Sackblocks string `json:"sackblocks,omitempty"` - Linksackblocks string `json:"linksackblocks,omitempty"` - Congstate string `json:"congstate,omitempty"` - Linkcongstate string `json:"linkcongstate,omitempty"` - Sndrecoverle string `json:"sndrecoverle,omitempty"` - Linksndrecoverle string `json:"linksndrecoverle,omitempty"` - Creditsinbytes string `json:"creditsinbytes,omitempty"` - Linkcredits string `json:"linkcredits,omitempty"` - Rateinbytes string `json:"rateinbytes,omitempty"` - Linkrateinbytes string `json:"linkrateinbytes,omitempty"` - Rateschedulerqueue string `json:"rateschedulerqueue,omitempty"` - Linkrateschedulerqueue string `json:"linkrateschedulerqueue,omitempty"` - Burstratecontrol string `json:"burstratecontrol,omitempty"` - Linkburstratecontrol string `json:"linkburstratecontrol,omitempty"` - Cqabifavg string `json:"cqabifavg,omitempty"` - Cqathruputavg string `json:"cqathruputavg,omitempty"` - Cqarcvwndavg string `json:"cqarcvwndavg,omitempty"` - Cqaiai1mspct string `json:"cqaiai1mspct,omitempty"` - Cqaiai2mspct string `json:"cqaiai2mspct,omitempty"` - Cqasamples string `json:"cqasamples,omitempty"` - Cqaiaisamples string `json:"cqaiaisamples,omitempty"` - Cqanetclass string `json:"cqanetclass,omitempty"` - Cqaccl string `json:"cqaccl,omitempty"` - Cqacsq string `json:"cqacsq,omitempty"` - Cqaiaiavg string `json:"cqaiaiavg,omitempty"` - Cqaisiavg string `json:"cqaisiavg,omitempty"` - Cqarcvwndmin string `json:"cqarcvwndmin,omitempty"` - Cqaretxcorr string `json:"cqaretxcorr,omitempty"` - Cqaretxcong string `json:"cqaretxcong,omitempty"` - Cqaretxpackets string `json:"cqaretxpackets,omitempty"` - Cqaloaddelayavg string `json:"cqaloaddelayavg,omitempty"` - Cqanoisedelayavg string `json:"cqanoisedelayavg,omitempty"` - Cqarttmax string `json:"cqarttmax,omitempty"` - Cqarttmin string `json:"cqarttmin,omitempty"` - Cqarttavg string `json:"cqarttavg,omitempty"` - Adaptivetcpprofname string `json:"adaptivetcpprofname,omitempty"` - Outoforderblocks string `json:"outoforderblocks,omitempty"` - Outoforderflushedcount string `json:"outoforderflushedcount,omitempty"` - Outoforderbytes string `json:"outoforderbytes,omitempty"` - -} diff --git a/resource/config/ns/nsfeature.go b/resource/config/ns/nsfeature.go deleted file mode 100644 index bb32851..0000000 --- a/resource/config/ns/nsfeature.go +++ /dev/null @@ -1,74 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package ns - -/** -* Configuration for feature resource. -*/ -type Nsfeature struct { - /** - * Feature to be enabled. Multiple features can be specified by providing a blank space between each feature. - */ - Feature []string `json:"feature,omitempty"` - - //------- Read only Parameter ---------; - - Wl string `json:"wl,omitempty"` - Sp string `json:"sp,omitempty"` - Lb string `json:"lb,omitempty"` - Cs string `json:"cs,omitempty"` - Cr string `json:"cr,omitempty"` - Sc string `json:"sc,omitempty"` - Cmp string `json:"cmp,omitempty"` - Pq string `json:"pq,omitempty"` - Ssl string `json:"ssl,omitempty"` - Gslb string `json:"gslb,omitempty"` - Hdosp string `json:"hdosp,omitempty"` - Cf string `json:"cf,omitempty"` - Ic string `json:"ic,omitempty"` - Sslvpn string `json:"sslvpn,omitempty"` - Aaa string `json:"aaa,omitempty"` - Ospf string `json:"ospf,omitempty"` - Rip string `json:"rip,omitempty"` - Bgp string `json:"bgp,omitempty"` - Rewrite string `json:"rewrite,omitempty"` - Ipv6pt string `json:"ipv6pt,omitempty"` - Appfw string `json:"appfw,omitempty"` - Responder string `json:"responder,omitempty"` - Htmlinjection string `json:"htmlinjection,omitempty"` - Push string `json:"push,omitempty"` - Appflow string `json:"appflow,omitempty"` - Cloudbridge string `json:"cloudbridge,omitempty"` - Isis string `json:"isis,omitempty"` - Ch string `json:"ch,omitempty"` - Appqoe string `json:"appqoe,omitempty"` - Contentaccelerator string `json:"contentaccelerator,omitempty"` - Feo string `json:"feo,omitempty"` - Lsn string `json:"lsn,omitempty"` - Rdpproxy string `json:"rdpproxy,omitempty"` - Rep string `json:"rep,omitempty"` - Urlfiltering string `json:"urlfiltering,omitempty"` - Videooptimization string `json:"videooptimization,omitempty"` - Forwardproxy string `json:"forwardproxy,omitempty"` - Sslinterception string `json:"sslinterception,omitempty"` - Adaptivetcp string `json:"adaptivetcp,omitempty"` - Cqa string `json:"cqa,omitempty"` - Ci string `json:"ci,omitempty"` - Bot string `json:"bot,omitempty"` - Apigateway string `json:"apigateway,omitempty"` - -} diff --git a/resource/config/ns/nslicense.go b/resource/config/ns/nslicense.go deleted file mode 100644 index 8091247..0000000 --- a/resource/config/ns/nslicense.go +++ /dev/null @@ -1,91 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package ns - -/** -* Configuration for license resource. -*/ -type Nslicense struct { - - //------- Read only Parameter ---------; - - Wl string `json:"wl,omitempty"` - Sp string `json:"sp,omitempty"` - Lb string `json:"lb,omitempty"` - Cs string `json:"cs,omitempty"` - Cr string `json:"cr,omitempty"` - Sc string `json:"sc,omitempty"` - Cmp string `json:"cmp,omitempty"` - Delta string `json:"delta,omitempty"` - Pq string `json:"pq,omitempty"` - Ssl string `json:"ssl,omitempty"` - Gslb string `json:"gslb,omitempty"` - Gslbp string `json:"gslbp,omitempty"` - Hdosp string `json:"hdosp,omitempty"` - Routing string `json:"routing,omitempty"` - Cf string `json:"cf,omitempty"` - Contentaccelerator string `json:"contentaccelerator,omitempty"` - Ic string `json:"ic,omitempty"` - Sslvpn string `json:"sslvpn,omitempty"` - Fsslvpnusers string `json:"f_sslvpn_users,omitempty"` - Ficausers string `json:"f_ica_users,omitempty"` - Aaa string `json:"aaa,omitempty"` - Ospf string `json:"ospf,omitempty"` - Rip string `json:"rip,omitempty"` - Bgp string `json:"bgp,omitempty"` - Rewrite string `json:"rewrite,omitempty"` - Ipv6pt string `json:"ipv6pt,omitempty"` - Appfw string `json:"appfw,omitempty"` - Responder string `json:"responder,omitempty"` - Agee string `json:"agee,omitempty"` - Nsxn string `json:"nsxn,omitempty"` - Htmlinjection string `json:"htmlinjection,omitempty"` - Modelid string `json:"modelid,omitempty"` - Push string `json:"push,omitempty"` - Wionns string `json:"wionns,omitempty"` - Appflow string `json:"appflow,omitempty"` - Cloudbridge string `json:"cloudbridge,omitempty"` - Cloudbridgeappliance string `json:"cloudbridgeappliance,omitempty"` - Cloudextenderappliance string `json:"cloudextenderappliance,omitempty"` - Isis string `json:"isis,omitempty"` - Cluster string `json:"cluster,omitempty"` - Ch string `json:"ch,omitempty"` - Appqoe string `json:"appqoe,omitempty"` - Appflowica string `json:"appflowica,omitempty"` - Isstandardlic string `json:"isstandardlic,omitempty"` - Isenterpriselic string `json:"isenterpriselic,omitempty"` - Isplatinumlic string `json:"isplatinumlic,omitempty"` - Issgwylic string `json:"issgwylic,omitempty"` - Isswglic string `json:"isswglic,omitempty"` - Feo string `json:"feo,omitempty"` - Lsn string `json:"lsn,omitempty"` - Licensingmode string `json:"licensingmode,omitempty"` - Cloudsubscriptionimage string `json:"cloudsubscriptionimage,omitempty"` - Daystoexpiration string `json:"daystoexpiration,omitempty"` - Rdpproxy string `json:"rdpproxy,omitempty"` - Rep string `json:"rep,omitempty"` - Urlfiltering string `json:"urlfiltering,omitempty"` - Videooptimization string `json:"videooptimization,omitempty"` - Forwardproxy string `json:"forwardproxy,omitempty"` - Sslinterception string `json:"sslinterception,omitempty"` - Remotecontentinspection string `json:"remotecontentinspection,omitempty"` - Adaptivetcp string `json:"adaptivetcp,omitempty"` - Cqa string `json:"cqa,omitempty"` - Bot string `json:"bot,omitempty"` - Apigateway string `json:"apigateway,omitempty"` - -} diff --git a/resource/config/ns/nslicenseserverpool.go b/resource/config/ns/nslicenseserverpool.go deleted file mode 100644 index 0c7204b..0000000 --- a/resource/config/ns/nslicenseserverpool.go +++ /dev/null @@ -1,145 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package ns - -/** -* Configuration for licenseserver resource. -*/ -type Nslicenseserverpool struct { - - //------- Read only Parameter ---------; - - Instancetotal string `json:"instancetotal,omitempty"` - Instanceavailable string `json:"instanceavailable,omitempty"` - Standardbandwidthtotal string `json:"standardbandwidthtotal,omitempty"` - Standardbandwidthavailable string `json:"standardbandwidthavailable,omitempty"` - Enterprisebandwidthtotal string `json:"enterprisebandwidthtotal,omitempty"` - Enterprisebandwidthavailable string `json:"enterprisebandwidthavailable,omitempty"` - Platinumbandwidthtotal string `json:"platinumbandwidthtotal,omitempty"` - Platinumbandwidthavailable string `json:"platinumbandwidthavailable,omitempty"` - Standardcputotal string `json:"standardcputotal,omitempty"` - Standardcpuavailable string `json:"standardcpuavailable,omitempty"` - Enterprisecputotal string `json:"enterprisecputotal,omitempty"` - Enterprisecpuavailable string `json:"enterprisecpuavailable,omitempty"` - Platinumcputotal string `json:"platinumcputotal,omitempty"` - Platinumcpuavailable string `json:"platinumcpuavailable,omitempty"` - Cpxinstancetotal string `json:"cpxinstancetotal,omitempty"` - Cpxinstanceavailable string `json:"cpxinstanceavailable,omitempty"` - Vpx1stotal string `json:"vpx1stotal,omitempty"` - Vpx1savailable string `json:"vpx1savailable,omitempty"` - Vpx1ptotal string `json:"vpx1ptotal,omitempty"` - Vpx1pavailable string `json:"vpx1pavailable,omitempty"` - Vpx5stotal string `json:"vpx5stotal,omitempty"` - Vpx5savailable string `json:"vpx5savailable,omitempty"` - Vpx5ptotal string `json:"vpx5ptotal,omitempty"` - Vpx5pavailable string `json:"vpx5pavailable,omitempty"` - Vpx10stotal string `json:"vpx10stotal,omitempty"` - Vpx10savailable string `json:"vpx10savailable,omitempty"` - Vpx10etotal string `json:"vpx10etotal,omitempty"` - Vpx10eavailable string `json:"vpx10eavailable,omitempty"` - Vpx10ptotal string `json:"vpx10ptotal,omitempty"` - Vpx10pavailable string `json:"vpx10pavailable,omitempty"` - Vpx25stotal string `json:"vpx25stotal,omitempty"` - Vpx25savailable string `json:"vpx25savailable,omitempty"` - Vpx25etotal string `json:"vpx25etotal,omitempty"` - Vpx25eavailable string `json:"vpx25eavailable,omitempty"` - Vpx25ptotal string `json:"vpx25ptotal,omitempty"` - Vpx25pavailable string `json:"vpx25pavailable,omitempty"` - Vpx50stotal string `json:"vpx50stotal,omitempty"` - Vpx50savailable string `json:"vpx50savailable,omitempty"` - Vpx50etotal string `json:"vpx50etotal,omitempty"` - Vpx50eavailable string `json:"vpx50eavailable,omitempty"` - Vpx50ptotal string `json:"vpx50ptotal,omitempty"` - Vpx50pavailable string `json:"vpx50pavailable,omitempty"` - Vpx100stotal string `json:"vpx100stotal,omitempty"` - Vpx100savailable string `json:"vpx100savailable,omitempty"` - Vpx100etotal string `json:"vpx100etotal,omitempty"` - Vpx100eavailable string `json:"vpx100eavailable,omitempty"` - Vpx100ptotal string `json:"vpx100ptotal,omitempty"` - Vpx100pavailable string `json:"vpx100pavailable,omitempty"` - Vpx200stotal string `json:"vpx200stotal,omitempty"` - Vpx200savailable string `json:"vpx200savailable,omitempty"` - Vpx200etotal string `json:"vpx200etotal,omitempty"` - Vpx200eavailable string `json:"vpx200eavailable,omitempty"` - Vpx200ptotal string `json:"vpx200ptotal,omitempty"` - Vpx200pavailable string `json:"vpx200pavailable,omitempty"` - Vpx500stotal string `json:"vpx500stotal,omitempty"` - Vpx500savailable string `json:"vpx500savailable,omitempty"` - Vpx500etotal string `json:"vpx500etotal,omitempty"` - Vpx500eavailable string `json:"vpx500eavailable,omitempty"` - Vpx500ptotal string `json:"vpx500ptotal,omitempty"` - Vpx500pavailable string `json:"vpx500pavailable,omitempty"` - Vpx1000stotal string `json:"vpx1000stotal,omitempty"` - Vpx1000savailable string `json:"vpx1000savailable,omitempty"` - Vpx1000etotal string `json:"vpx1000etotal,omitempty"` - Vpx1000eavailable string `json:"vpx1000eavailable,omitempty"` - Vpx1000ptotal string `json:"vpx1000ptotal,omitempty"` - Vpx1000pavailable string `json:"vpx1000pavailable,omitempty"` - Vpx2000ptotal string `json:"vpx2000ptotal,omitempty"` - Vpx2000pavailable string `json:"vpx2000pavailable,omitempty"` - Vpx3000stotal string `json:"vpx3000stotal,omitempty"` - Vpx3000savailable string `json:"vpx3000savailable,omitempty"` - Vpx3000etotal string `json:"vpx3000etotal,omitempty"` - Vpx3000eavailable string `json:"vpx3000eavailable,omitempty"` - Vpx3000ptotal string `json:"vpx3000ptotal,omitempty"` - Vpx3000pavailable string `json:"vpx3000pavailable,omitempty"` - Vpx4000ptotal string `json:"vpx4000ptotal,omitempty"` - Vpx4000pavailable string `json:"vpx4000pavailable,omitempty"` - Vpx5000stotal string `json:"vpx5000stotal,omitempty"` - Vpx5000savailable string `json:"vpx5000savailable,omitempty"` - Vpx5000etotal string `json:"vpx5000etotal,omitempty"` - Vpx5000eavailable string `json:"vpx5000eavailable,omitempty"` - Vpx5000ptotal string `json:"vpx5000ptotal,omitempty"` - Vpx5000pavailable string `json:"vpx5000pavailable,omitempty"` - Vpx8000stotal string `json:"vpx8000stotal,omitempty"` - Vpx8000savailable string `json:"vpx8000savailable,omitempty"` - Vpx8000etotal string `json:"vpx8000etotal,omitempty"` - Vpx8000eavailable string `json:"vpx8000eavailable,omitempty"` - Vpx8000ptotal string `json:"vpx8000ptotal,omitempty"` - Vpx8000pavailable string `json:"vpx8000pavailable,omitempty"` - Vpx10000stotal string `json:"vpx10000stotal,omitempty"` - Vpx10000savailable string `json:"vpx10000savailable,omitempty"` - Vpx10000etotal string `json:"vpx10000etotal,omitempty"` - Vpx10000eavailable string `json:"vpx10000eavailable,omitempty"` - Vpx10000ptotal string `json:"vpx10000ptotal,omitempty"` - Vpx10000pavailable string `json:"vpx10000pavailable,omitempty"` - Vpx15000stotal string `json:"vpx15000stotal,omitempty"` - Vpx15000savailable string `json:"vpx15000savailable,omitempty"` - Vpx15000etotal string `json:"vpx15000etotal,omitempty"` - Vpx15000eavailable string `json:"vpx15000eavailable,omitempty"` - Vpx15000ptotal string `json:"vpx15000ptotal,omitempty"` - Vpx15000pavailable string `json:"vpx15000pavailable,omitempty"` - Vpx25000stotal string `json:"vpx25000stotal,omitempty"` - Vpx25000savailable string `json:"vpx25000savailable,omitempty"` - Vpx25000etotal string `json:"vpx25000etotal,omitempty"` - Vpx25000eavailable string `json:"vpx25000eavailable,omitempty"` - Vpx25000ptotal string `json:"vpx25000ptotal,omitempty"` - Vpx25000pavailable string `json:"vpx25000pavailable,omitempty"` - Vpx40000stotal string `json:"vpx40000stotal,omitempty"` - Vpx40000savailable string `json:"vpx40000savailable,omitempty"` - Vpx40000etotal string `json:"vpx40000etotal,omitempty"` - Vpx40000eavailable string `json:"vpx40000eavailable,omitempty"` - Vpx40000ptotal string `json:"vpx40000ptotal,omitempty"` - Vpx40000pavailable string `json:"vpx40000pavailable,omitempty"` - Vpx100000stotal string `json:"vpx100000stotal,omitempty"` - Vpx100000savailable string `json:"vpx100000savailable,omitempty"` - Vpx100000etotal string `json:"vpx100000etotal,omitempty"` - Vpx100000eavailable string `json:"vpx100000eavailable,omitempty"` - Vpx100000ptotal string `json:"vpx100000ptotal,omitempty"` - Vpx100000pavailable string `json:"vpx100000pavailable,omitempty"` - -} diff --git a/resource/config/ns/nstestlicense.go b/resource/config/ns/nstestlicense.go deleted file mode 100644 index 282b678..0000000 --- a/resource/config/ns/nstestlicense.go +++ /dev/null @@ -1,90 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package ns - -/** -* Configuration for testlicense resource. -*/ -type Nstestlicense struct { - - //------- Read only Parameter ---------; - - Wl string `json:"wl,omitempty"` - Sp string `json:"sp,omitempty"` - Lb string `json:"lb,omitempty"` - Cs string `json:"cs,omitempty"` - Cr string `json:"cr,omitempty"` - Sc string `json:"sc,omitempty"` - Cmp string `json:"cmp,omitempty"` - Delta string `json:"delta,omitempty"` - Pq string `json:"pq,omitempty"` - Ssl string `json:"ssl,omitempty"` - Gslb string `json:"gslb,omitempty"` - Gslbp string `json:"gslbp,omitempty"` - Hdosp string `json:"hdosp,omitempty"` - Routing string `json:"routing,omitempty"` - Cf string `json:"cf,omitempty"` - Contentaccelerator string `json:"contentaccelerator,omitempty"` - Ic string `json:"ic,omitempty"` - Sslvpn string `json:"sslvpn,omitempty"` - Fsslvpnusers string `json:"f_sslvpn_users,omitempty"` - Ficausers string `json:"f_ica_users,omitempty"` - Aaa string `json:"aaa,omitempty"` - Ospf string `json:"ospf,omitempty"` - Rip string `json:"rip,omitempty"` - Bgp string `json:"bgp,omitempty"` - Rewrite string `json:"rewrite,omitempty"` - Ipv6pt string `json:"ipv6pt,omitempty"` - Appfw string `json:"appfw,omitempty"` - Responder string `json:"responder,omitempty"` - Agee string `json:"agee,omitempty"` - Nsxn string `json:"nsxn,omitempty"` - Htmlinjection string `json:"htmlinjection,omitempty"` - Modelid string `json:"modelid,omitempty"` - Push string `json:"push,omitempty"` - Wionns string `json:"wionns,omitempty"` - Appflow string `json:"appflow,omitempty"` - Cloudbridge string `json:"cloudbridge,omitempty"` - Cloudbridgeappliance string `json:"cloudbridgeappliance,omitempty"` - Cloudextenderappliance string `json:"cloudextenderappliance,omitempty"` - Isis string `json:"isis,omitempty"` - Cluster string `json:"cluster,omitempty"` - Ch string `json:"ch,omitempty"` - Appqoe string `json:"appqoe,omitempty"` - Appflowica string `json:"appflowica,omitempty"` - Isstandardlic string `json:"isstandardlic,omitempty"` - Isenterpriselic string `json:"isenterpriselic,omitempty"` - Isplatinumlic string `json:"isplatinumlic,omitempty"` - Issgwylic string `json:"issgwylic,omitempty"` - Isswglic string `json:"isswglic,omitempty"` - Feo string `json:"feo,omitempty"` - Lsn string `json:"lsn,omitempty"` - Licensingmode string `json:"licensingmode,omitempty"` - Daystoexpiration string `json:"daystoexpiration,omitempty"` - Rdpproxy string `json:"rdpproxy,omitempty"` - Rep string `json:"rep,omitempty"` - Urlfiltering string `json:"urlfiltering,omitempty"` - Videooptimization string `json:"videooptimization,omitempty"` - Forwardproxy string `json:"forwardproxy,omitempty"` - Sslinterception string `json:"sslinterception,omitempty"` - Remotecontentinspection string `json:"remotecontentinspection,omitempty"` - Adaptivetcp string `json:"adaptivetcp,omitempty"` - Cqa string `json:"cqa,omitempty"` - Bot string `json:"bot,omitempty"` - Apigateway string `json:"apigateway,omitempty"` - -} diff --git a/resource/config/ns/nsacl.go b/resource/config/nsacl.go similarity index 96% rename from resource/config/ns/nsacl.go rename to resource/config/nsacl.go index 0c27b11..bb67fac 100644 --- a/resource/config/ns/nsacl.go +++ b/resource/config/nsacl.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for ACL entry resource. -*/ + */ type Nsacl struct { /** * Name for the extended ACL rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Aclname string `json:"aclname,omitempty"` /** * Action to perform on incoming IPv4 packets that match the extended ACL rule. @@ -34,51 +34,51 @@ type Nsacl struct { Aclaction string `json:"aclaction,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. - */ + */ Srcip bool `json:"srcip,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Srcipop string `json:"srcipop,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example:10.102.29.30-10.102.29.189. - */ + */ Srcipval string `json:"srcipval,omitempty"` /** * Policy dataset which can have multiple IP ranges bound to it. - */ + */ Srcipdataset string `json:"srcipdataset,omitempty"` /** * Port number or range of port numbers to match against the source port number of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. - */ + */ Srcport bool `json:"srcport,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Srcportop string `json:"srcportop,omitempty"` /** * Port number or range of port numbers to match against the source port number of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. - */ + */ Srcportval string `json:"srcportval,omitempty"` /** * IP address or range of IP addresses to match against the destination IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. - */ + */ Destip bool `json:"destip,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Destipop string `json:"destipop,omitempty"` /** * IP address or range of IP addresses to match against the destination IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. - */ + */ Destipval string `json:"destipval,omitempty"` /** * Policy dataset which can have multiple IP ranges bound to it. - */ + */ Destipdataset string `json:"destipdataset,omitempty"` /** * Port number or range of port numbers to match against the destination port number of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -87,7 +87,7 @@ type Nsacl struct { Destport bool `json:"destport,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Destportop string `json:"destportop,omitempty"` /** * Port number or range of port numbers to match against the destination port number of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -96,39 +96,39 @@ type Nsacl struct { Destportval string `json:"destportval,omitempty"` /** * Number of seconds, in multiples of four, after which the extended ACL rule expires. If you do not want the extended ACL rule to expire, do not specify a TTL value. - */ + */ Ttl int `json:"ttl,omitempty"` /** * MAC address to match against the source MAC address of an incoming IPv4 packet. - */ + */ Srcmac string `json:"srcmac,omitempty"` /** - * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". - */ + * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". + */ Srcmacmask string `json:"srcmacmask,omitempty"` /** * Protocol to match against the protocol of an incoming IPv4 packet. - */ + */ Protocol string `json:"protocol,omitempty"` /** * Protocol to match against the protocol of an incoming IPv4 packet. - */ + */ Protocolnumber int `json:"protocolnumber,omitempty"` /** * ID of the VLAN. The Citrix ADC applies the ACL rule only to the incoming packets of the specified VLAN. If you do not specify a VLAN ID, the appliance applies the ACL rule to the incoming packets on all VLANs. - */ + */ Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN. The Citrix ADC applies the ACL rule only to the incoming packets of the specified VXLAN. If you do not specify a VXLAN ID, the appliance applies the ACL rule to the incoming packets on all VXLANs. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * ID of an interface. The Citrix ADC applies the ACL rule only to the incoming packets from the specified interface. If you do not specify any value, the appliance applies the ACL rule to the incoming packets of all interfaces. - */ + */ Interface string `json:"Interface,omitempty"` /** * Allow only incoming TCP packets that have the ACK or RST bit set, if the action set for the ACL rule is ALLOW and these packets match the other conditions in the ACL rule. - */ + */ Established bool `json:"established,omitempty"` /** * ICMP Message type to match against the message type of an incoming ICMP packet. For example, to block DESTINATION UNREACHABLE messages, you must specify 3 as the ICMP type. @@ -142,19 +142,19 @@ type Nsacl struct { Icmpcode int `json:"icmpcode,omitempty"` /** * Priority for the extended ACL rule that determines the order in which it is evaluated relative to the other extended ACL rules. If you do not specify priorities while creating extended ACL rules, the ACL rules are evaluated in the order in which they are created. - */ + */ Priority int `json:"priority,omitempty"` /** * Enable or disable the extended ACL rule. After you apply the extended ACL rules, the Citrix ADC compares incoming packets against the enabled extended ACL rules. - */ + */ State string `json:"state,omitempty"` /** * Enable or disable logging of events related to the extended ACL rule. The log messages are stored in the configured syslog or auditlog server. - */ + */ Logstate string `json:"logstate,omitempty"` /** * Maximum number of log messages to be generated per second. If you set this parameter, you must enable the Log State parameter. - */ + */ Ratelimit int `json:"ratelimit,omitempty"` /** * Type of the acl ,default will be CLASSIC. @@ -165,21 +165,20 @@ type Nsacl struct { Type string `json:"type,omitempty"` /** * Specifies the type hashmethod to be applied, to steer the packet to the FP of the packet. - */ + */ Dfdhash string `json:"dfdhash,omitempty"` /** - * If stateful option is enabled, transparent sessions are created for the traffic hitting this ACL and not hitting any other features like LB, INAT etc. - */ + * If stateful option is enabled, transparent sessions are created for the traffic hitting this ACL and not hitting any other features like LB, INAT etc. + */ Stateful string `json:"stateful,omitempty"` /** * New name for the extended ACL rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Kernelstate string `json:"kernelstate,omitempty"` + Hits string `json:"hits,omitempty"` + Kernelstate string `json:"kernelstate,omitempty"` Aclassociate string `json:"aclassociate,omitempty"` - } diff --git a/resource/config/ns/nsacl6.go b/resource/config/nsacl6.go similarity index 96% rename from resource/config/ns/nsacl6.go rename to resource/config/nsacl6.go index 5a70fae..e7922d1 100644 --- a/resource/config/ns/nsacl6.go +++ b/resource/config/nsacl6.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for ACL6 entry resource. -*/ + */ type Nsacl6 struct { /** * Name for the ACL6 rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Acl6name string `json:"acl6name,omitempty"` /** * Action to perform on the incoming IPv6 packets that match the ACL6 rule. @@ -34,19 +34,19 @@ type Nsacl6 struct { Acl6action string `json:"acl6action,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. - */ + */ Srcipv6 bool `json:"srcipv6,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Srcipop string `json:"srcipop,omitempty"` /** * Source IPv6 address (range). - */ + */ Srcipv6val string `json:"srcipv6val,omitempty"` /** * Port number or range of port numbers to match against the source port number of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -55,23 +55,23 @@ type Nsacl6 struct { Srcport bool `json:"srcport,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Srcportop string `json:"srcportop,omitempty"` /** * Source port (range). - */ + */ Srcportval string `json:"srcportval,omitempty"` /** * IP address or range of IP addresses to match against the destination IP address of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. - */ + */ Destipv6 bool `json:"destipv6,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Destipop string `json:"destipop,omitempty"` /** * Destination IPv6 address (range). - */ + */ Destipv6val string `json:"destipv6val,omitempty"` /** * Port number or range of port numbers to match against the destination port number of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -80,47 +80,47 @@ type Nsacl6 struct { Destport bool `json:"destport,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Destportop string `json:"destportop,omitempty"` /** * Destination port (range). - */ + */ Destportval string `json:"destportval,omitempty"` /** * Time to expire this ACL6 (in seconds). - */ + */ Ttl int `json:"ttl,omitempty"` /** * MAC address to match against the source MAC address of an incoming IPv6 packet. - */ + */ Srcmac string `json:"srcmac,omitempty"` /** - * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". - */ + * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". + */ Srcmacmask string `json:"srcmacmask,omitempty"` /** * Protocol, identified by protocol name, to match against the protocol of an incoming IPv6 packet. - */ + */ Protocol string `json:"protocol,omitempty"` /** * Protocol, identified by protocol number, to match against the protocol of an incoming IPv6 packet. - */ + */ Protocolnumber int `json:"protocolnumber,omitempty"` /** * ID of the VLAN. The Citrix ADC applies the ACL6 rule only to the incoming packets on the specified VLAN. If you do not specify a VLAN ID, the appliance applies the ACL6 rule to the incoming packets on all VLANs. - */ + */ Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN. The Citrix ADC applies the ACL6 rule only to the incoming packets on the specified VXLAN. If you do not specify a VXLAN ID, the appliance applies the ACL6 rule to the incoming packets on all VXLANs. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * ID of an interface. The Citrix ADC applies the ACL6 rule only to the incoming packets from the specified interface. If you do not specify any value, the appliance applies the ACL6 rule to the incoming packets from all interfaces. - */ + */ Interface string `json:"Interface,omitempty"` /** * Allow only incoming TCP packets that have the ACK or RST bit set if the action set for the ACL6 rule is ALLOW and these packets match the other conditions in the ACL6 rule. - */ + */ Established bool `json:"established,omitempty"` /** * ICMP Message type to match against the message type of an incoming IPv6 ICMP packet. For example, to block DESTINATION UNREACHABLE messages, you must specify 3 as the ICMP type. @@ -134,11 +134,11 @@ type Nsacl6 struct { Icmpcode int `json:"icmpcode,omitempty"` /** * Priority for the ACL6 rule, which determines the order in which it is evaluated relative to the other ACL6 rules. If you do not specify priorities while creating ACL6 rules, the ACL6 rules are evaluated in the order in which they are created. - */ + */ Priority int `json:"priority,omitempty"` /** * State of the ACL6. - */ + */ State string `json:"state,omitempty"` /** * Type of the acl6 ,default will be CLASSIC. @@ -149,37 +149,36 @@ type Nsacl6 struct { Type string `json:"type,omitempty"` /** * Specifies the type of hashmethod to be applied, to steer the packet to the FP of the packet. - */ + */ Dfdhash string `json:"dfdhash,omitempty"` /** * hashprefix to be applied to SIP/DIP to generate rsshash FP.eg 128 => hash calculated on the complete IP - */ + */ Dfdprefix int `json:"dfdprefix,omitempty"` /** - * If stateful option is enabled, transparent sessions are created for the traffic hitting this ACL6 and not hitting any other features like LB, INAT etc. - */ + * If stateful option is enabled, transparent sessions are created for the traffic hitting this ACL6 and not hitting any other features like LB, INAT etc. + */ Stateful string `json:"stateful,omitempty"` /** * Enable or disable logging of events related to the ACL6 rule. The log messages are stored in the configured syslog or auditlog server. - */ + */ Logstate string `json:"logstate,omitempty"` /** * Maximum number of log messages to be generated per second. If you set this parameter, you must enable the Log State parameter. - */ + */ Ratelimit int `json:"ratelimit,omitempty"` /** * Action associated with the ACL6. - */ + */ Aclaction string `json:"aclaction,omitempty"` /** * New name for the ACL6 rule. Must begin with an ASCII alphabetic or underscore \(_\) character, and must contain only ASCII alphanumeric, underscore, hash \(\#\), period \(.\), space, colon \(:\), at \(@\), equals \(=\), and hyphen \(-\) characters. - */ + */ Newname string `json:"newname,omitempty"` //------- Read only Parameter ---------; - Kernelstate string `json:"kernelstate,omitempty"` - Hits string `json:"hits,omitempty"` + Kernelstate string `json:"kernelstate,omitempty"` + Hits string `json:"hits,omitempty"` Aclassociate string `json:"aclassociate,omitempty"` - } diff --git a/resource/config/ns/nsacls.go b/resource/config/nsacls.go similarity index 97% rename from resource/config/ns/nsacls.go rename to resource/config/nsacls.go index 71a3312..a838f4d 100644 --- a/resource/config/ns/nsacls.go +++ b/resource/config/nsacls.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for ACL entry resource. -*/ + */ type Nsacls struct { /** * Type of the acl ,default will be CLASSIC. @@ -27,5 +27,4 @@ type Nsacls struct { * DFD - cluster specific acls,specifies hashmethod for steering of the packet in cluster . */ Type string `json:"type,omitempty"` - } diff --git a/resource/config/ns/nsacls6.go b/resource/config/nsacls6.go similarity index 97% rename from resource/config/ns/nsacls6.go rename to resource/config/nsacls6.go index 3f1ba16..e415d35 100644 --- a/resource/config/ns/nsacls6.go +++ b/resource/config/nsacls6.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for ACL6 entry resource. -*/ + */ type Nsacls6 struct { /** * Type of the acl ,default will be CLASSIC. @@ -27,5 +27,4 @@ type Nsacls6 struct { * DFD - cluster specific acls,specifies hashmethod for steering of the packet in cluster . */ Type string `json:"type,omitempty"` - } diff --git a/resource/config/ns/nsappflowcollector.go b/resource/config/nsappflowcollector.go similarity index 96% rename from resource/config/ns/nsappflowcollector.go rename to resource/config/nsappflowcollector.go index 39b550a..942034d 100644 --- a/resource/config/ns/nsappflowcollector.go +++ b/resource/config/nsappflowcollector.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for appflowCollector resource. -*/ + */ type Nsappflowcollector struct { /** * Name of the AppFlow collector. - */ + */ Name string `json:"name,omitempty"` /** * The IPv4 address of the AppFlow collector. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * The UDP port on which the AppFlow collector is listening. - */ + */ Port int `json:"port,omitempty"` - } diff --git a/resource/config/ns/nsappflowparam.go b/resource/config/nsappflowparam.go similarity index 95% rename from resource/config/ns/nsappflowparam.go rename to resource/config/nsappflowparam.go index 572bd44..505b227 100644 --- a/resource/config/ns/nsappflowparam.go +++ b/resource/config/nsappflowparam.go @@ -12,49 +12,48 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for appflowParam resource. -*/ + */ type Nsappflowparam struct { /** * IPFIX template refresh interval (in seconds). - */ + */ Templaterefresh int `json:"templaterefresh,omitempty"` /** * MTU to be used for IPFIX UDP packets. - */ + */ Udppmtu int `json:"udppmtu,omitempty"` /** * Enable AppFlow HTTP URL logging. - */ + */ Httpurl string `json:"httpurl,omitempty"` /** * Enable AppFlow HTTP cookie logging. - */ + */ Httpcookie string `json:"httpcookie,omitempty"` /** * Enable AppFlow HTTP referer logging. - */ + */ Httpreferer string `json:"httpreferer,omitempty"` /** * Enable AppFlow HTTP method logging. - */ + */ Httpmethod string `json:"httpmethod,omitempty"` /** * Enable AppFlow HTTP host logging. - */ + */ Httphost string `json:"httphost,omitempty"` /** * Enable AppFlow HTTP user-agent logging. - */ + */ Httpuseragent string `json:"httpuseragent,omitempty"` /** * Control whether AppFlow records should be generated only for client-side traffic. - */ + */ Clienttrafficonly string `json:"clienttrafficonly,omitempty"` - } diff --git a/resource/config/ns/nsaptlicense.go b/resource/config/nsaptlicense.go similarity index 79% rename from resource/config/ns/nsaptlicense.go rename to resource/config/nsaptlicense.go index bc4b099..5cc7cac 100644 --- a/resource/config/ns/nsaptlicense.go +++ b/resource/config/nsaptlicense.go @@ -12,52 +12,51 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for aptlicense resource. -*/ + */ type Nsaptlicense struct { /** * Hardware Serial Number/License Activation Code(LAC) - */ + */ Serialno string `json:"serialno,omitempty"` /** * Specifies whether to use the licenseproxyserver to reach the internet. Make sure to configure licenseproxyserver to use this option. - */ + */ Useproxy string `json:"useproxy,omitempty"` /** * License ID - */ + */ Id string `json:"id,omitempty"` /** * Session ID - */ + */ Sessionid string `json:"sessionid,omitempty"` /** * Bind type - */ + */ Bindtype string `json:"bindtype,omitempty"` /** * The user can allocate one or more licenses. Ensure the value is less than (for partial allocation) or equal to the total number of available licenses - */ + */ Countavailable string `json:"countavailable,omitempty"` /** * License Directory - */ + */ Licensedir string `json:"licensedir,omitempty"` //------- Read only Parameter ---------; - Response string `json:"response,omitempty"` - Counttotal string `json:"counttotal,omitempty"` - Name string `json:"name,omitempty"` - Relevance string `json:"relevance,omitempty"` + Response string `json:"response,omitempty"` + Counttotal string `json:"counttotal,omitempty"` + Name string `json:"name,omitempty"` + Relevance string `json:"relevance,omitempty"` Datepurchased string `json:"datepurchased,omitempty"` - Datesa string `json:"datesa,omitempty"` - Dateexp string `json:"dateexp,omitempty"` - Features string `json:"features,omitempty"` - + Datesa string `json:"datesa,omitempty"` + Dateexp string `json:"dateexp,omitempty"` + Features string `json:"features,omitempty"` } diff --git a/resource/config/ns/nsassignment.go b/resource/config/nsassignment.go similarity index 95% rename from resource/config/ns/nsassignment.go rename to resource/config/nsassignment.go index ba56c03..219a8c5 100644 --- a/resource/config/ns/nsassignment.go +++ b/resource/config/nsassignment.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for assignment resource. -*/ + */ type Nsassignment struct { /** * Name for the assignment. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the assignment is added. @@ -28,31 +28,31 @@ type Nsassignment struct { Name string `json:"name,omitempty"` /** * Left hand side of the assigment, of the form $variable-name (for a singleton variabled) or $variable-name[key-expression], where key-expression is an expression that evaluates to a text string and provides the key to select a map entry - */ + */ Variable string `json:"variable,omitempty"` /** * Right hand side of the assignment. The expression is evaluated and assigned to the left hand variable. - */ + */ Set string `json:"set,omitempty"` /** * Right hand side of the assignment. The expression is evaluated and added to the left hand variable. - */ + */ Add string `json:"Add,omitempty"` /** * Right hand side of the assignment. The expression is evaluated and subtracted from the left hand variable. - */ + */ Sub string `json:"sub,omitempty"` /** * Right hand side of the assignment. The expression is evaluated and appended to the left hand variable. - */ + */ Append string `json:"append,omitempty"` /** * Clear the variable value. Deallocates a text value, and for a map, the text key. - */ + */ Clear bool `json:"clear,omitempty"` /** * Comment. Can be used to preserve information about this rewrite action. - */ + */ Comment string `json:"comment,omitempty"` /** * New name for the assignment. @@ -64,8 +64,7 @@ type Nsassignment struct { //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Undefhits string `json:"undefhits,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` Referencecount string `json:"referencecount,omitempty"` - } diff --git a/resource/config/ns/nscapacity.go b/resource/config/nscapacity.go similarity index 78% rename from resource/config/ns/nscapacity.go rename to resource/config/nscapacity.go index 29dda5d..0a3501d 100644 --- a/resource/config/ns/nscapacity.go +++ b/resource/config/nscapacity.go @@ -12,46 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for capacity resource. -*/ + */ type Nscapacity struct { /** * System bandwidth limit. - */ + */ Bandwidth int `json:"bandwidth,omitempty"` /** * appliance platform type. - */ + */ Platform string `json:"platform,omitempty"` /** * licensed using vcpu pool. - */ + */ Vcpu bool `json:"vcpu,omitempty"` /** * Product edition. - */ + */ Edition string `json:"edition,omitempty"` /** * Bandwidth unit. - */ + */ Unit string `json:"unit,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; Actualbandwidth string `json:"actualbandwidth,omitempty"` - Vcpucount string `json:"vcpucount,omitempty"` - Maxvcpucount string `json:"maxvcpucount,omitempty"` - Maxbandwidth string `json:"maxbandwidth,omitempty"` - Minbandwidth string `json:"minbandwidth,omitempty"` - Instancecount string `json:"instancecount,omitempty"` - + Vcpucount string `json:"vcpucount,omitempty"` + Maxvcpucount string `json:"maxvcpucount,omitempty"` + Maxbandwidth string `json:"maxbandwidth,omitempty"` + Minbandwidth string `json:"minbandwidth,omitempty"` + Instancecount string `json:"instancecount,omitempty"` } diff --git a/resource/config/ns/nscentralmanagementserver.go b/resource/config/nscentralmanagementserver.go similarity index 90% rename from resource/config/ns/nscentralmanagementserver.go rename to resource/config/nscentralmanagementserver.go index 73e272a..85418b9 100644 --- a/resource/config/ns/nscentralmanagementserver.go +++ b/resource/config/nscentralmanagementserver.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for centralmanagementserver resource. -*/ + */ type Nscentralmanagementserver struct { /** * Type of the central management server. Must be either CLOUD or ONPREM depending on whether the server is on the cloud or on premise. - */ + */ Type string `json:"type,omitempty"` /** * Username for access to central management server. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. @@ -33,42 +33,41 @@ type Nscentralmanagementserver struct { Username string `json:"username,omitempty"` /** * Password for access to central management server. Required for any user account. - */ + */ Password string `json:"password,omitempty"` /** * Activation code is used to register to ADM service - */ + */ Activationcode string `json:"activationcode,omitempty"` /** * Ip Address of central management server. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Fully qualified domain name of the central management server or service-url to locate ADM service. - */ + */ Servername string `json:"servername,omitempty"` /** * validate the server certificate for secure SSL connections. - */ + */ Validatecert string `json:"validatecert,omitempty"` /** * Device profile is created on ADM and contains the user name and password of the instance(s). - */ + */ Deviceprofilename string `json:"deviceprofilename,omitempty"` /** * ADC username used to create device profile on ADM - */ + */ Adcusername string `json:"adcusername,omitempty"` /** * ADC password used to create device profile on ADM - */ + */ Adcpassword string `json:"adcpassword,omitempty"` //------- Read only Parameter ---------; - Instanceid string `json:"instanceid,omitempty"` - Customerid string `json:"customerid,omitempty"` - Admserviceenvironment string `json:"admserviceenvironment,omitempty"` + Instanceid string `json:"instanceid,omitempty"` + Customerid string `json:"customerid,omitempty"` + Admserviceenvironment string `json:"admserviceenvironment,omitempty"` Admserviceconnectionstatus string `json:"admserviceconnectionstatus,omitempty"` - } diff --git a/resource/config/ns/nsconfig.go b/resource/config/nsconfig.go similarity index 88% rename from resource/config/ns/nsconfig.go rename to resource/config/nsconfig.go index edc8dcc..fad6862 100644 --- a/resource/config/ns/nsconfig.go +++ b/resource/config/nsconfig.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for system config resource. -*/ + */ type Nsconfig struct { /** * Configurations will be cleared without prompting for confirmation. - */ + */ Force bool `json:"force,omitempty"` /** * Types of configurations to be cleared. @@ -40,23 +40,23 @@ type Nsconfig struct { Level string `json:"level,omitempty"` /** * RBA configurations and TACACS policies bound to system global will not be cleared if RBA is set to NO.This option is applicable only for BASIC level of clear configuration.Default is YES, which will clear rba configurations. - */ + */ Rbaconfig string `json:"rbaconfig,omitempty"` /** * IP address of the Citrix ADC. Commonly referred to as NSIP address. This parameter is mandatory to bring up the appliance. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Netmask corresponding to the IP address. This parameter is mandatory to bring up the appliance. - */ + */ Netmask string `json:"netmask,omitempty"` /** * VLAN (NSVLAN) for the subnet on which the IP address resides. - */ + */ Nsvlan int `json:"nsvlan,omitempty"` /** * Interfaces of the appliances that must be bound to the NSVLAN. - */ + */ Ifnum []string `json:"ifnum,omitempty"` /** * Specifies that the interfaces will be added as 802.1q tagged interfaces. Packets sent on these interface on this VLAN will have an additional 4-byte 802.1q tag which identifies the VLAN. @@ -65,15 +65,15 @@ type Nsconfig struct { Tagged string `json:"tagged,omitempty"` /** * The HTTP ports on the Web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. - */ + */ Httpport []int `json:"httpport,omitempty"` /** * The maximum number of connections that will be made from the system to the web server(s) attached to it. The value entered here is applied globally to all attached servers. - */ + */ Maxconn int `json:"maxconn,omitempty"` /** * The maximum number of requests that the system can pass on a particular connection between the system and a server attached to it. Setting this value to 0 allows an unlimited number of requests to be passed. - */ + */ Maxreq int `json:"maxreq,omitempty"` /** * The option to control (enable or disable) the insertion of the actual client IP address into the HTTP header request passed from the client to one, some, or all servers attached to the system. @@ -84,103 +84,102 @@ type Nsconfig struct { Cip string `json:"cip,omitempty"` /** * The text that will be used as the client IP header. - */ + */ Cipheader string `json:"cipheader,omitempty"` /** * The version of the cookie inserted by system. - */ + */ Cookieversion string `json:"cookieversion,omitempty"` /** * enable/disable secure flag for persistence cookie - */ + */ Securecookie string `json:"securecookie,omitempty"` /** * The minimum Path MTU. - */ + */ Pmtumin int `json:"pmtumin,omitempty"` /** * The timeout value in minutes. - */ + */ Pmtutimeout int `json:"pmtutimeout,omitempty"` /** * Port range configured for FTP services. - */ + */ Ftpportrange string `json:"ftpportrange,omitempty"` /** * Port range for cache redirection services. - */ + */ Crportrange string `json:"crportrange,omitempty"` /** * Name of the timezone - */ + */ Timezone string `json:"timezone,omitempty"` /** * The percentage of shared quota to be granted at a time for maxClient - */ + */ Grantquotamaxclient int `json:"grantquotamaxclient,omitempty"` /** * The percentage of maxClient to be given to PEs - */ + */ Exclusivequotamaxclient int `json:"exclusivequotamaxclient,omitempty"` /** * The percentage of shared quota to be granted at a time for spillover - */ + */ Grantquotaspillover int `json:"grantquotaspillover,omitempty"` /** * The percentage of max limit to be given to PEs - */ + */ Exclusivequotaspillover int `json:"exclusivequotaspillover,omitempty"` /** * Use this option to do saveconfig for all partitions - */ + */ All bool `json:"all,omitempty"` /** * Location of the configurations. - */ + */ Config1 string `json:"config1,omitempty"` /** * Location of the configurations. - */ + */ Config2 string `json:"config2,omitempty"` /** * Format to display the difference in configurations. - */ + */ Outtype string `json:"outtype,omitempty"` /** * File that contains the commands to be compared. - */ + */ Template bool `json:"template,omitempty"` /** * Suppress device specific differences. - */ + */ Ignoredevicespecific bool `json:"ignoredevicespecific,omitempty"` /** * Option to list all weak passwords (not adhering to strong password requirements). Takes config file as input, if no input specified, running configuration is considered. Command => query ns config -weakpassword / query ns config -weakpassword /nsconfig/ns.conf - */ + */ Weakpassword bool `json:"weakpassword,omitempty"` /** * Option to list all passwords changed which would not work when downgraded to older releases. Takes config file as input, if no input specified, running configuration is considered. Command => query ns config -changedpassword / query ns config -changedpassword /nsconfig/ns.conf - */ + */ Changedpassword bool `json:"changedpassword,omitempty"` /** * configuration File to be used to find weak passwords, if not specified, running config is taken as input. - */ + */ Config string `json:"config,omitempty"` //------- Read only Parameter ---------; - Message string `json:"message,omitempty"` - Mappedip string `json:"mappedip,omitempty"` - Range string `json:"range,omitempty"` - Systemtype string `json:"systemtype,omitempty"` - Primaryip string `json:"primaryip,omitempty"` - Primaryip6 string `json:"primaryip6,omitempty"` - Flags string `json:"flags,omitempty"` + Message string `json:"message,omitempty"` + Mappedip string `json:"mappedip,omitempty"` + Range string `json:"range,omitempty"` + Systemtype string `json:"systemtype,omitempty"` + Primaryip string `json:"primaryip,omitempty"` + Primaryip6 string `json:"primaryip6,omitempty"` + Flags string `json:"flags,omitempty"` Lastconfigchangedtime string `json:"lastconfigchangedtime,omitempty"` - Lastconfigsavetime string `json:"lastconfigsavetime,omitempty"` - Currentsytemtime string `json:"currentsytemtime,omitempty"` - Systemtime string `json:"systemtime,omitempty"` - Configchanged string `json:"configchanged,omitempty"` - Response string `json:"response,omitempty"` - + Lastconfigsavetime string `json:"lastconfigsavetime,omitempty"` + Currentsytemtime string `json:"currentsytemtime,omitempty"` + Systemtime string `json:"systemtime,omitempty"` + Configchanged string `json:"configchanged,omitempty"` + Response string `json:"response,omitempty"` } diff --git a/resource/config/nsconnectiontable.go b/resource/config/nsconnectiontable.go new file mode 100644 index 0000000..0834259 --- /dev/null +++ b/resource/config/nsconnectiontable.go @@ -0,0 +1,300 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for TCP/IP connection table resource. + */ +type Nsconnectiontable struct { + /** + * The maximum length of filter expression is 255 and it can be of following format: + [ ] + = ( && | || ) + =: + CONNECTION...() + = SRCIP + = [ EQ | NE ] + = A valid IPv4 address + example = CONNECTION.SRCIP.EQ(127.0.0.1) + = DSTIP + = [ EQ | NE ] + = A valid IPv4 address. + example = CONNECTION.DSTIP.EQ(127.0.0.1) + = IP + = [ EQ | NE ] + = A valid IPv4 address. + example = CONNECTION.IP.EQ(127.0.0.1) + = SRCIPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.SRCIPv6.EQ(2001:db8:0:0:1::1) + = DSTIPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.DSTIPv6.EQ(2001:db8:0:0:1::1) + = IPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.IPv6.EQ(2001:db8:0:0:1::1) + = SRCPORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.SRCPORT.EQ(80) + = DSTPORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.DSTPORT.EQ(80) + = PORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.PORT.EQ(80) + = SVCNAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = service name. + example = CONNECTION.SVCNAME.EQ("name") + = LB_VSERVER.NAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = LB vserver name. + example = CONNECTION.LB_VSERVER.NAME.EQ("name") + = CS_VSERVER.NAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = CS vserver name. + example = CONNECTION.CS_VSERVER.NAME.EQ("name") + = INTF + = [ EQ | NE ] + = A valid interface id in the form of + x/y (n/x/y in case of cluster interface). + examle = CONNECTION.INTF.EQ("0/1/1") + = VLANID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid VLAN ID. + example = CONNECTION.VLANID.EQ(0) + = CONNID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid PCB dev number. + example = CONNECTION.CONNID.EQ(0) + = PPEID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid core ID. + example = CONNECTION.PPEID.EQ(0) + = IDLETIME + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A positive integer indicating the + idletime. + example = CONNECTION.IDLETIME.LT(100) + = TCPSTATE + = [ EQ | NE ] + = ( CLOSE_WAIT | CLOSED | CLOSING | + ESTABLISHED | FIN_WAIT_1 | FIN_WAIT_2 | LAST_ACK | + LISTEN | SYN_RECEIVED | SYN_SENT | TIME_WAIT | + NOT_APPLICABLE) + example = CONNECTION.TCPSTATE.EQ(LISTEN) + = SERVICE_TYPE + = [ EQ | NE ] + = ( SVC_HTTP | FTP | TCP | UDP | SSL | + SSL_BRIDGE | SSL_TCP | NNTP | RPCSVR | RPCSVRS | + RPCCLNT | SVC_DNS | ADNS | SNMP | RTSP | DHCPRA | NAT | ANY | + MONITOR | MONITOR_UDP | MONITOR_PING | SIP_UDP | + SVC_MYSQL | SVC_MSSQL | SERVICE_UNKNOWN ) + example = CONNECTION.SERVICE_TYPE.EQ(ANY) + = TRAFFIC_DOMAIN_ID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid traffic domain ID. + example = CONNECTION.TRAFFIC_DOMAIN_ID.EQ(0) + common usecases: + Filtering out loopback connections and view present + connections through netscaler + show connectiontable "CONNECTION.IP.NE(127.0.0.1) && + CONNECTION.TCPSTATE.EQ(ESTABLISHED)" -detail full + show connections from a particular sourceip and targeted + to port 80 + show connectiontable "CONNECTION.SRCIP.EQ(10.102.1.91) && + CONNECTION.DSTPORT.EQ(80)" + show connection particular to a service and its linked + client connections + show connectiontable CONNECTION.SVCNAME.EQ("S1") + -detail link + show connections for a particular servicetype(e.g.http) + show connectiontable CONNECTION.SERVICE_TYPE.EQ(TCP) + viewing connections that have been idle for a long time + show connectiontable CONNECTION.IDLETIME.GT(100) + show connections particular to a service and idle + for a long time + show connectiontable "CONNECTION.SVCNAME.EQ(\\"S1\\") && + CONNECTION.IDLETIME.GT(100)" + show connections for a particular interface + show connectiontable CONNECTION.INTF.EQ("1/1") + show connections for a particular interface and vlan + show connectiontable "CONNECTION.INTF.EQ(\\"1/1\\") && + CONNECTION.VLANID.EQ(1)" + */ + Filterexpression string `json:"filterexpression,omitempty"` + /** + * Display link information if available + */ + Link bool `json:"link,omitempty"` + /** + * Display name instead of IP for local entities + */ + Filtername bool `json:"filtername,omitempty"` + /** + * Specify display options for the connection table. + * LINK - Displays the linked PCB (Protocol Control Block). + * NAME - Displays along with the service name. + * CONNFAILOVER - Displays PCB with connection failover. + * FULL - Displays all available details. + */ + Detail []string `json:"detail,omitempty"` + /** + * Display listening services only + */ + Listen bool `json:"listen,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid int `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Sourceip string `json:"sourceip,omitempty"` + Sourceport string `json:"sourceport,omitempty"` + Destip string `json:"destip,omitempty"` + Destport string `json:"destport,omitempty"` + Svctype string `json:"svctype,omitempty"` + Idletime string `json:"idletime,omitempty"` + State string `json:"state,omitempty"` + Linksourceip string `json:"linksourceip,omitempty"` + Linksourceport string `json:"linksourceport,omitempty"` + Linkdestip string `json:"linkdestip,omitempty"` + Linkdestport string `json:"linkdestport,omitempty"` + Linkservicetype string `json:"linkservicetype,omitempty"` + Linkidletime string `json:"linkidletime,omitempty"` + Linkstate string `json:"linkstate,omitempty"` + Entityname string `json:"entityname,omitempty"` + Linkentityname string `json:"linkentityname,omitempty"` + Connid string `json:"connid,omitempty"` + Linkconnid string `json:"linkconnid,omitempty"` + Connproperties string `json:"connproperties,omitempty"` + Optionflags string `json:"optionflags,omitempty"` + Nswsvalue string `json:"nswsvalue,omitempty"` + Peerwsvalue string `json:"peerwsvalue,omitempty"` + Mss string `json:"mss,omitempty"` + Retxretrycnt string `json:"retxretrycnt,omitempty"` + Rcvwnd string `json:"rcvwnd,omitempty"` + Advwnd string `json:"advwnd,omitempty"` + Sndcwnd string `json:"sndcwnd,omitempty"` + Iss string `json:"iss,omitempty"` + Irs string `json:"irs,omitempty"` + Rcvnxt string `json:"rcvnxt,omitempty"` + Maxack string `json:"maxack,omitempty"` + Sndnxt string `json:"sndnxt,omitempty"` + Sndunack string `json:"sndunack,omitempty"` + Httpendseq string `json:"httpendseq,omitempty"` + Httpstate string `json:"httpstate,omitempty"` + Trcount string `json:"trcount,omitempty"` + Priority string `json:"priority,omitempty"` + Httpreqver string `json:"httpreqver,omitempty"` + Httprequest string `json:"httprequest,omitempty"` + Httprspcode string `json:"httprspcode,omitempty"` + Rttsmoothed string `json:"rttsmoothed,omitempty"` + Rttvariance string `json:"rttvariance,omitempty"` + Outoforderpkts string `json:"outoforderpkts,omitempty"` + Linkoptionflag string `json:"linkoptionflag,omitempty"` + Linknswsvalue string `json:"linknswsvalue,omitempty"` + Linkpeerwsvalue string `json:"linkpeerwsvalue,omitempty"` + Targetnodeidnnm string `json:"targetnodeidnnm,omitempty"` + Sourcenodeidnnm string `json:"sourcenodeidnnm,omitempty"` + Channelidnnm string `json:"channelidnnm,omitempty"` + Msgversionnnm string `json:"msgversionnnm,omitempty"` + Td string `json:"td,omitempty"` + Maxrcvbuf string `json:"maxrcvbuf,omitempty"` + Linkmaxrcvbuf string `json:"linkmaxrcvbuf,omitempty"` + Rxqsize string `json:"rxqsize,omitempty"` + Linkrxqsize string `json:"linkrxqsize,omitempty"` + Maxsndbuf string `json:"maxsndbuf,omitempty"` + Linkmaxsndbuf string `json:"linkmaxsndbuf,omitempty"` + Txqsize string `json:"txqsize,omitempty"` + Linktxqsize string `json:"linktxqsize,omitempty"` + Flavor string `json:"flavor,omitempty"` + Linkflavor string `json:"linkflavor,omitempty"` + Bwestimate string `json:"bwestimate,omitempty"` + Linkbwestimate string `json:"linkbwestimate,omitempty"` + Rttmin string `json:"rttmin,omitempty"` + Linkrttmin string `json:"linkrttmin,omitempty"` + Name string `json:"name,omitempty"` + Linkname string `json:"linkname,omitempty"` + Tcpmode string `json:"tcpmode,omitempty"` + Linktcpmode string `json:"linktcpmode,omitempty"` + Realtimertt string `json:"realtimertt,omitempty"` + Linkrealtimertt string `json:"linkrealtimertt,omitempty"` + Sndbuf string `json:"sndbuf,omitempty"` + Linksndbuf string `json:"linksndbuf,omitempty"` + Nsbtcpwaitq string `json:"nsbtcpwaitq,omitempty"` + Linknsbtcpwaitq string `json:"linknsbtcpwaitq,omitempty"` + Nsbretxq string `json:"nsbretxq,omitempty"` + Linknsbretxq string `json:"linknsbretxq,omitempty"` + Sackblocks string `json:"sackblocks,omitempty"` + Linksackblocks string `json:"linksackblocks,omitempty"` + Congstate string `json:"congstate,omitempty"` + Linkcongstate string `json:"linkcongstate,omitempty"` + Sndrecoverle string `json:"sndrecoverle,omitempty"` + Linksndrecoverle string `json:"linksndrecoverle,omitempty"` + Creditsinbytes string `json:"creditsinbytes,omitempty"` + Linkcredits string `json:"linkcredits,omitempty"` + Rateinbytes string `json:"rateinbytes,omitempty"` + Linkrateinbytes string `json:"linkrateinbytes,omitempty"` + Rateschedulerqueue string `json:"rateschedulerqueue,omitempty"` + Linkrateschedulerqueue string `json:"linkrateschedulerqueue,omitempty"` + Burstratecontrol string `json:"burstratecontrol,omitempty"` + Linkburstratecontrol string `json:"linkburstratecontrol,omitempty"` + Cqabifavg string `json:"cqabifavg,omitempty"` + Cqathruputavg string `json:"cqathruputavg,omitempty"` + Cqarcvwndavg string `json:"cqarcvwndavg,omitempty"` + Cqaiai1mspct string `json:"cqaiai1mspct,omitempty"` + Cqaiai2mspct string `json:"cqaiai2mspct,omitempty"` + Cqasamples string `json:"cqasamples,omitempty"` + Cqaiaisamples string `json:"cqaiaisamples,omitempty"` + Cqanetclass string `json:"cqanetclass,omitempty"` + Cqaccl string `json:"cqaccl,omitempty"` + Cqacsq string `json:"cqacsq,omitempty"` + Cqaiaiavg string `json:"cqaiaiavg,omitempty"` + Cqaisiavg string `json:"cqaisiavg,omitempty"` + Cqarcvwndmin string `json:"cqarcvwndmin,omitempty"` + Cqaretxcorr string `json:"cqaretxcorr,omitempty"` + Cqaretxcong string `json:"cqaretxcong,omitempty"` + Cqaretxpackets string `json:"cqaretxpackets,omitempty"` + Cqaloaddelayavg string `json:"cqaloaddelayavg,omitempty"` + Cqanoisedelayavg string `json:"cqanoisedelayavg,omitempty"` + Cqarttmax string `json:"cqarttmax,omitempty"` + Cqarttmin string `json:"cqarttmin,omitempty"` + Cqarttavg string `json:"cqarttavg,omitempty"` + Adaptivetcpprofname string `json:"adaptivetcpprofname,omitempty"` + Outoforderblocks string `json:"outoforderblocks,omitempty"` + Outoforderflushedcount string `json:"outoforderflushedcount,omitempty"` + Outoforderbytes string `json:"outoforderbytes,omitempty"` +} diff --git a/resource/config/ns/nsconsoleloginprompt.go b/resource/config/nsconsoleloginprompt.go similarity index 96% rename from resource/config/ns/nsconsoleloginprompt.go rename to resource/config/nsconsoleloginprompt.go index daa681d..ef56f18 100644 --- a/resource/config/ns/nsconsoleloginprompt.go +++ b/resource/config/nsconsoleloginprompt.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for console prompt resource. -*/ + */ type Nsconsoleloginprompt struct { /** * Console login prompt string - */ + */ Promptstring string `json:"promptstring,omitempty"` - } diff --git a/resource/config/ns/nscqaparam.go b/resource/config/nscqaparam.go similarity index 96% rename from resource/config/ns/nscqaparam.go rename to resource/config/nscqaparam.go index 7d66d7a..2a9a928 100644 --- a/resource/config/ns/nscqaparam.go +++ b/resource/config/nscqaparam.go @@ -12,93 +12,92 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for cqaparam resource. -*/ + */ type Nscqaparam struct { /** * HARQ retransmission delay (in ms). - */ + */ Harqretxdelay int `json:"harqretxdelay,omitempty"` /** * Name of the network label. - */ + */ Net1label string `json:"net1label,omitempty"` /** * MIN RTT (in ms) for the first network. - */ + */ Minrttnet1 int `json:"minrttnet1,omitempty"` /** * coefficients values for Label1. - */ + */ Lr1coeflist string `json:"lr1coeflist,omitempty"` /** * Probability threshold values for LR model to differentiate between NET1 and reset(NET2 and NET3). - */ + */ Lr1probthresh float64 `json:"lr1probthresh,omitempty"` /** * Three congestion level scores limits corresponding to None, Low, Medium. - */ + */ Net1cclscale string `json:"net1cclscale,omitempty"` /** * Three signal quality level scores limits corresponding to Excellent, Good, Fair. - */ + */ Net1csqscale string `json:"net1csqscale,omitempty"` /** * Connection quality ranking Log coefficients of network 1. - */ + */ Net1logcoef string `json:"net1logcoef,omitempty"` /** * Name of the network label 2. - */ + */ Net2label string `json:"net2label,omitempty"` /** * MIN RTT (in ms) for the second network. - */ + */ Minrttnet2 int `json:"minrttnet2,omitempty"` /** * coefficients values for Label 2. - */ + */ Lr2coeflist string `json:"lr2coeflist,omitempty"` /** * Probability threshold values for LR model to differentiate between NET2 and NET3. - */ + */ Lr2probthresh float64 `json:"lr2probthresh,omitempty"` /** * Three congestion level scores limits corresponding to None, Low, Medium. - */ + */ Net2cclscale string `json:"net2cclscale,omitempty"` /** * Three signal quality level scores limits corresponding to Excellent, Good, Fair. - */ + */ Net2csqscale string `json:"net2csqscale,omitempty"` /** * Connnection quality ranking Log coefficients of network 2. - */ + */ Net2logcoef string `json:"net2logcoef,omitempty"` /** * Name of the network label 3. - */ + */ Net3label string `json:"net3label,omitempty"` /** * MIN RTT (in ms) for the third network. - */ + */ Minrttnet3 int `json:"minrttnet3,omitempty"` /** * Three congestion level scores limits corresponding to None, Low, Medium. - */ + */ Net3cclscale string `json:"net3cclscale,omitempty"` /** * Three signal quality level scores limits corresponding to Excellent, Good, Fair. - */ + */ Net3csqscale string `json:"net3csqscale,omitempty"` /** * Connection quality ranking Log coefficients of network 3. - */ + */ Net3logcoef string `json:"net3logcoef,omitempty"` - } diff --git a/resource/config/ns/nsdhcpip.go b/resource/config/nsdhcpip.go similarity index 96% rename from resource/config/ns/nsdhcpip.go rename to resource/config/nsdhcpip.go index 337690c..0beabb6 100644 --- a/resource/config/ns/nsdhcpip.go +++ b/resource/config/nsdhcpip.go @@ -12,13 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for dhcp IP resource. -*/ + */ type Nsdhcpip struct { - } diff --git a/resource/config/ns/nsdhcpparams.go b/resource/config/nsdhcpparams.go similarity index 86% rename from resource/config/ns/nsdhcpparams.go rename to resource/config/nsdhcpparams.go index 2e8ad34..2eb3a42 100644 --- a/resource/config/ns/nsdhcpparams.go +++ b/resource/config/nsdhcpparams.go @@ -12,28 +12,27 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for DHCP parameters resource. -*/ + */ type Nsdhcpparams struct { /** * Enables DHCP client to acquire IP address from the DHCP server in the next boot. When set to OFF, disables the DHCP client in the next boot. - */ + */ Dhcpclient string `json:"dhcpclient,omitempty"` /** * DHCP acquired routes are saved on the Citrix ADC. - */ + */ Saveroute string `json:"saveroute,omitempty"` //------- Read only Parameter ---------; Ipaddress string `json:"ipaddress,omitempty"` - Netmask string `json:"netmask,omitempty"` - Hostrtgw string `json:"hostrtgw,omitempty"` - Running string `json:"running,omitempty"` - + Netmask string `json:"netmask,omitempty"` + Hostrtgw string `json:"hostrtgw,omitempty"` + Running string `json:"running,omitempty"` } diff --git a/resource/config/ns/nsdiameter.go b/resource/config/nsdiameter.go similarity index 98% rename from resource/config/ns/nsdiameter.go rename to resource/config/nsdiameter.go index 6092a17..f3e0f12 100644 --- a/resource/config/ns/nsdiameter.go +++ b/resource/config/nsdiameter.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Diameter Parameters resource. -*/ + */ type Nsdiameter struct { /** * DiameterIdentity to be used by NS. DiameterIdentity is used to identify a Diameter node uniquely. Before setting up diameter configuration, Citrix ADC (as a Diameter node) MUST be assigned a unique DiameterIdentity. @@ -36,11 +36,10 @@ type Nsdiameter struct { Realm string `json:"realm,omitempty"` /** * when a Server connection goes down, whether to close the corresponding client connection if there were requests pending on the server. - */ + */ Serverclosepropagation string `json:"serverclosepropagation,omitempty"` /** * ID of the cluster node for which the diameter id is set, can be configured only through CLIP - */ + */ Ownernode int `json:"ownernode,omitempty"` - } diff --git a/resource/config/ns/nsencryptionkey.go b/resource/config/nsencryptionkey.go similarity index 99% rename from resource/config/ns/nsencryptionkey.go rename to resource/config/nsencryptionkey.go index afa2a24..99dcf89 100644 --- a/resource/config/ns/nsencryptionkey.go +++ b/resource/config/nsencryptionkey.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for encryption key resource. -*/ + */ type Nsencryptionkey struct { /** * Key name. This follows the same syntax rules as other expression entity names: @@ -74,7 +74,6 @@ type Nsencryptionkey struct { Iv string `json:"iv,omitempty"` /** * Comments associated with this encryption key. - */ + */ Comment string `json:"comment,omitempty"` - } diff --git a/resource/config/ns/nsencryptionparams.go b/resource/config/nsencryptionparams.go similarity index 98% rename from resource/config/ns/nsencryptionparams.go rename to resource/config/nsencryptionparams.go index 73f7e71..f58fc15 100644 --- a/resource/config/ns/nsencryptionparams.go +++ b/resource/config/nsencryptionparams.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for default encryption parameters resource. -*/ + */ type Nsencryptionparams struct { /** * Cipher method (and key length) to be used to encrypt and decrypt content. The default value is AES256. - */ + */ Method string `json:"method,omitempty"` /** * The base64-encoded key generation number, method, and key value. @@ -31,5 +31,4 @@ type Nsencryptionparams struct { * To generate a new key value for the current encryption method, specify an empty string \(""\) as the value of this parameter. The parameter is passed implicitly, with its automatically generated value, to the Citrix ADC packet engines even when it is not included in the command. Passing the parameter to the packet engines enables the appliance to save the key value to the configuration file and to propagate the key value to the secondary appliance in a high availability setup. */ Keyvalue string `json:"keyvalue,omitempty"` - } diff --git a/resource/config/ns/nsevents.go b/resource/config/nsevents.go similarity index 70% rename from resource/config/ns/nsevents.go rename to resource/config/nsevents.go index f45db0f..98d4bb2 100644 --- a/resource/config/ns/nsevents.go +++ b/resource/config/nsevents.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for events resource. -*/ + */ type Nsevents struct { /** * Event number starting from which events must be shown. - */ + */ Eventno int `json:"eventno,omitempty"` //------- Read only Parameter ---------; - Time string `json:"time,omitempty"` + Time string `json:"time,omitempty"` Eventcode string `json:"eventcode,omitempty"` - Devid string `json:"devid,omitempty"` - Devname string `json:"devname,omitempty"` - Text string `json:"text,omitempty"` - Data0 string `json:"data0,omitempty"` - Data1 string `json:"data1,omitempty"` - Data2 string `json:"data2,omitempty"` - Data3 string `json:"data3,omitempty"` - + Devid string `json:"devid,omitempty"` + Devname string `json:"devname,omitempty"` + Text string `json:"text,omitempty"` + Data0 string `json:"data0,omitempty"` + Data1 string `json:"data1,omitempty"` + Data2 string `json:"data2,omitempty"` + Data3 string `json:"data3,omitempty"` } diff --git a/resource/config/ns/nsextension.go b/resource/config/nsextension.go similarity index 93% rename from resource/config/ns/nsextension.go rename to resource/config/nsextension.go index 5abd713..2a62daa 100644 --- a/resource/config/ns/nsextension.go +++ b/resource/config/nsextension.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Extension resource. -*/ + */ type Nsextension struct { /** * Local path to and name of, or URL (protocol, host, path, and file name) for, the file in which to store the imported extension. @@ -27,15 +27,15 @@ type Nsextension struct { Src string `json:"src,omitempty"` /** * Name to assign to the extension object on the Citrix ADC. - */ + */ Name string `json:"name,omitempty"` /** * Any comments to preserve information about the extension object. - */ + */ Comment string `json:"comment,omitempty"` /** * Overwrites the existing file - */ + */ Overwrite bool `json:"overwrite,omitempty"` /** * Enables tracing to the NS log file of extension execution: @@ -49,22 +49,21 @@ type Nsextension struct { Trace string `json:"trace,omitempty"` /** * Comma-separated list of extension functions to trace. By default, all extension functions are traced. - */ + */ Tracefunctions string `json:"tracefunctions,omitempty"` /** * Comma-separated list of variables (in traced extension functions) to trace. By default, all variables are traced. - */ + */ Tracevariables string `json:"tracevariables,omitempty"` /** * Show detail for extension function. - */ + */ Detail string `json:"detail,omitempty"` //------- Read only Parameter ---------; - Type string `json:"type,omitempty"` - Functionhits string `json:"functionhits,omitempty"` + Type string `json:"type,omitempty"` + Functionhits string `json:"functionhits,omitempty"` Functionundefhits string `json:"functionundefhits,omitempty"` Functionhaltcount string `json:"functionhaltcount,omitempty"` - } diff --git a/resource/config/ns/nsextension_binding.go b/resource/config/nsextension_binding.go similarity index 88% rename from resource/config/ns/nsextension_binding.go rename to resource/config/nsextension_binding.go index 5be7184..21b3461 100644 --- a/resource/config/ns/nsextension_binding.go +++ b/resource/config/nsextension_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** -* Binding object which returns the resources bound to nsextension_binding. -*/ +* Binding object which returns the resources bound to nsextension_binding. + */ type Nsextensionbinding struct { /** - * Name of the extension object.
Minimum value = - */ + * Name of the extension object.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nsextension_extensionfunction_binding.go b/resource/config/nsextension_extensionfunction_binding.go similarity index 96% rename from resource/config/ns/nsextension_extensionfunction_binding.go rename to resource/config/nsextension_extensionfunction_binding.go index a8be97a..5795731 100644 --- a/resource/config/ns/nsextension_extensionfunction_binding.go +++ b/resource/config/nsextension_extensionfunction_binding.go @@ -12,66 +12,64 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the extensionfunction that can be bound to nsextension. -*/ + */ type Nsextensionextensionfunctionbinding struct { /** * Name of extension function given in the extension. - */ + */ Extensionfunctionname string `json:"extensionfunctionname,omitempty"` /** * Line number of the function in file. - */ + */ Extensionfunctionlinenumber int `json:"extensionfunctionlinenumber,omitempty"` /** * Extension function class type. - */ + */ Extensionfunctionclasstype string `json:"extensionfunctionclasstype,omitempty"` /** * Extension function return type. - */ + */ Extensionfunctionreturntype string `json:"extensionfunctionreturntype,omitempty"` /** * Extension function is in use or not. - */ + */ Activeextensionfunction int `json:"activeextensionfunction,omitempty"` /** * List of extension function's arguments types - */ + */ Extensionfunctionargtype []string `json:"extensionfunctionargtype,omitempty"` /** * Any description to preserve information about the extension function. - */ + */ Extensionfuncdescription string `json:"extensionfuncdescription,omitempty"` /** * Number of parameters in the extension function - */ + */ Extensionfunctionargcount int `json:"extensionfunctionargcount,omitempty"` /** * List of classes (including inherited) that the function is present in. - */ + */ Extensionfunctionclasses []string `json:"extensionfunctionclasses,omitempty"` /** * Number of classes the function is present in. - */ + */ Extensionfunctionclassescount int `json:"extensionfunctionclassescount,omitempty"` /** * List of parameters (including promotions) that the function can accept. - */ + */ Extensionfunctionallparams []string `json:"extensionfunctionallparams,omitempty"` /** * Number of parameters (including promotions) that the function can accept. - */ + */ Extensionfunctionallparamscount int `json:"extensionfunctionallparamscount,omitempty"` /** * Name of the extension object. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/nsfeature.go b/resource/config/nsfeature.go new file mode 100644 index 0000000..684ed06 --- /dev/null +++ b/resource/config/nsfeature.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for feature resource. + */ +type Nsfeature struct { + /** + * Feature to be enabled. Multiple features can be specified by providing a blank space between each feature. + */ + Feature []string `json:"feature,omitempty"` + + //------- Read only Parameter ---------; + + Wl string `json:"wl,omitempty"` + Sp string `json:"sp,omitempty"` + Lb string `json:"lb,omitempty"` + Cs string `json:"cs,omitempty"` + Cr string `json:"cr,omitempty"` + Sc string `json:"sc,omitempty"` + Cmp string `json:"cmp,omitempty"` + Pq string `json:"pq,omitempty"` + Ssl string `json:"ssl,omitempty"` + Gslb string `json:"gslb,omitempty"` + Hdosp string `json:"hdosp,omitempty"` + Cf string `json:"cf,omitempty"` + Ic string `json:"ic,omitempty"` + Sslvpn string `json:"sslvpn,omitempty"` + Aaa string `json:"aaa,omitempty"` + Ospf string `json:"ospf,omitempty"` + Rip string `json:"rip,omitempty"` + Bgp string `json:"bgp,omitempty"` + Rewrite string `json:"rewrite,omitempty"` + Ipv6pt string `json:"ipv6pt,omitempty"` + Appfw string `json:"appfw,omitempty"` + Responder string `json:"responder,omitempty"` + Htmlinjection string `json:"htmlinjection,omitempty"` + Push string `json:"push,omitempty"` + Appflow string `json:"appflow,omitempty"` + Cloudbridge string `json:"cloudbridge,omitempty"` + Isis string `json:"isis,omitempty"` + Ch string `json:"ch,omitempty"` + Appqoe string `json:"appqoe,omitempty"` + Contentaccelerator string `json:"contentaccelerator,omitempty"` + Feo string `json:"feo,omitempty"` + Lsn string `json:"lsn,omitempty"` + Rdpproxy string `json:"rdpproxy,omitempty"` + Rep string `json:"rep,omitempty"` + Urlfiltering string `json:"urlfiltering,omitempty"` + Videooptimization string `json:"videooptimization,omitempty"` + Forwardproxy string `json:"forwardproxy,omitempty"` + Sslinterception string `json:"sslinterception,omitempty"` + Adaptivetcp string `json:"adaptivetcp,omitempty"` + Cqa string `json:"cqa,omitempty"` + Ci string `json:"ci,omitempty"` + Bot string `json:"bot,omitempty"` + Apigateway string `json:"apigateway,omitempty"` +} diff --git a/resource/config/ns/nshardware.go b/resource/config/nshardware.go similarity index 55% rename from resource/config/ns/nshardware.go rename to resource/config/nshardware.go index 15bfc83..17bdf7a 100644 --- a/resource/config/ns/nshardware.go +++ b/resource/config/nshardware.go @@ -12,28 +12,27 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for hardware resource. -*/ + */ type Nshardware struct { //------- Read only Parameter ---------; - Hwdescription string `json:"hwdescription,omitempty"` - Sysid string `json:"sysid,omitempty"` - Manufactureday string `json:"manufactureday,omitempty"` + Hwdescription string `json:"hwdescription,omitempty"` + Sysid string `json:"sysid,omitempty"` + Manufactureday string `json:"manufactureday,omitempty"` Manufacturemonth string `json:"manufacturemonth,omitempty"` - Manufactureyear string `json:"manufactureyear,omitempty"` - Cpufrequncy string `json:"cpufrequncy,omitempty"` - Hostid string `json:"hostid,omitempty"` - Host string `json:"host,omitempty"` - Serialno string `json:"serialno,omitempty"` - Encodedserialno string `json:"encodedserialno,omitempty"` - Netscaleruuid string `json:"netscaleruuid,omitempty"` - Bmcrevision string `json:"bmcrevision,omitempty"` - + Manufactureyear string `json:"manufactureyear,omitempty"` + Cpufrequncy string `json:"cpufrequncy,omitempty"` + Hostid string `json:"hostid,omitempty"` + Host string `json:"host,omitempty"` + Serialno string `json:"serialno,omitempty"` + Encodedserialno string `json:"encodedserialno,omitempty"` + Netscaleruuid string `json:"netscaleruuid,omitempty"` + Bmcrevision string `json:"bmcrevision,omitempty"` } diff --git a/resource/config/ns/nshmackey.go b/resource/config/nshmackey.go similarity index 98% rename from resource/config/ns/nshmackey.go rename to resource/config/nshmackey.go index 44dac10..376c814 100644 --- a/resource/config/ns/nshmackey.go +++ b/resource/config/nshmackey.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for HMAC key resource. -*/ + */ type Nshmackey struct { /** * Key name. This follows the same syntax rules as other expression entity names: @@ -31,7 +31,7 @@ type Nshmackey struct { Name string `json:"name,omitempty"` /** * Digest (hash) function to be used in the HMAC computation. - */ + */ Digest string `json:"digest,omitempty"` /** * The hex-encoded key to be used in the HMAC computation. The key can be any length (up to a Citrix ADC-imposed maximum of 255 bytes). If the length is less than the digest block size, it will be zero padded up to the block size. If it is greater than the block size, it will be hashed using the digest function to the block size. The block size for each digest is: @@ -50,7 +50,6 @@ type Nshmackey struct { Keyvalue string `json:"keyvalue,omitempty"` /** * Comments associated with this encryption key. - */ + */ Comment string `json:"comment,omitempty"` - } diff --git a/resource/config/ns/nshostname.go b/resource/config/nshostname.go similarity index 96% rename from resource/config/ns/nshostname.go rename to resource/config/nshostname.go index 847feed..018b74a 100644 --- a/resource/config/ns/nshostname.go +++ b/resource/config/nshostname.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for host name resource. -*/ + */ type Nshostname struct { /** * Host name for the Citrix ADC. - */ + */ Hostname string `json:"hostname,omitempty"` /** * ID of the cluster node for which you are setting the hostname. Can be configured only through the cluster IP address. - */ + */ Ownernode int `json:"ownernode,omitempty"` - } diff --git a/resource/config/ns/nshttpparam.go b/resource/config/nshttpparam.go similarity index 96% rename from resource/config/ns/nshttpparam.go rename to resource/config/nshttpparam.go index 3b05bf1..873413f 100644 --- a/resource/config/ns/nshttpparam.go +++ b/resource/config/nshttpparam.go @@ -12,58 +12,57 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for HTTP parameter resource. -*/ + */ type Nshttpparam struct { /** * Drop invalid HTTP requests or responses. - */ + */ Dropinvalreqs string `json:"dropinvalreqs,omitempty"` /** * Mark HTTP/0.9 requests as invalid. - */ + */ Markhttp09inval string `json:"markhttp09inval,omitempty"` /** * Mark CONNECT requests as invalid. - */ + */ Markconnreqinval string `json:"markconnreqinval,omitempty"` /** * Enable or disable Citrix ADC server header insertion for Citrix ADC generated HTTP responses. - */ + */ Insnssrvrhdr string `json:"insnssrvrhdr,omitempty"` /** * The server header value to be inserted. If no explicit header is specified then NSBUILD.RELEASE is used as default server header. - */ + */ Nssrvrhdr string `json:"nssrvrhdr,omitempty"` /** * Server header value to be inserted. - */ + */ Logerrresp string `json:"logerrresp,omitempty"` /** * Reuse server connections for requests from more than one client connections. - */ + */ Conmultiplex string `json:"conmultiplex,omitempty"` /** * Maximum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. - */ + */ Maxreusepool int `json:"maxreusepool,omitempty"` /** * Enable/Disable HTTP/2 on server side - */ + */ Http2serverside string `json:"http2serverside,omitempty"` /** * Ignore Coding scheme in CONNECT request. - */ + */ Ignoreconnectcodingscheme string `json:"ignoreconnectcodingscheme,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/ns/nshttpprofile.go b/resource/config/nshttpprofile.go similarity index 95% rename from resource/config/ns/nshttpprofile.go rename to resource/config/nshttpprofile.go index 45b3dcc..69d09dd 100644 --- a/resource/config/ns/nshttpprofile.go +++ b/resource/config/nshttpprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for HTTP profile resource. -*/ + */ type Nshttpprofile struct { /** * Name for an HTTP profile. Must begin with a letter, number, or the underscore \(_\) character. Other characters allowed, after the first character, are the hyphen \(-\), period \(.\), hash \(\#\), space \( \), at \(@\), colon \(:\), and equal \(=\) characters. The name of a HTTP profile cannot be changed after it is created. @@ -27,63 +27,63 @@ type Nshttpprofile struct { Name string `json:"name,omitempty"` /** * Drop invalid HTTP requests or responses. - */ + */ Dropinvalreqs string `json:"dropinvalreqs,omitempty"` /** * Mark HTTP/0.9 requests as invalid. - */ + */ Markhttp09inval string `json:"markhttp09inval,omitempty"` /** * Mark CONNECT requests as invalid. - */ + */ Markconnreqinval string `json:"markconnreqinval,omitempty"` /** * Mark TRACE requests as invalid. - */ + */ Marktracereqinval string `json:"marktracereqinval,omitempty"` /** * Mark RFC7230 non-compliant transaction as invalid - */ + */ Markrfc7230noncompliantinval string `json:"markrfc7230noncompliantinval,omitempty"` /** * Mark Http header with extra white space as invalid - */ + */ Markhttpheaderextrawserror string `json:"markhttpheaderextrawserror,omitempty"` /** * Start data compression on receiving a TCP packet with PUSH flag set. - */ + */ Cmponpush string `json:"cmponpush,omitempty"` /** * Reuse server connections for requests from more than one client connections. - */ + */ Conmultiplex string `json:"conmultiplex,omitempty"` /** * Maximum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. Zero implies no limit on reuse pool size. If non-zero value is given, it has to be greater than or equal to the number of running Packet Engines. - */ + */ Maxreusepool int `json:"maxreusepool,omitempty"` /** * Drop any extra 'CR' and 'LF' characters present after the header. - */ + */ Dropextracrlf string `json:"dropextracrlf,omitempty"` /** * Maximum time to wait, in milliseconds, between incomplete header packets. If the header packets take longer to arrive at Citrix ADC, the connection is silently dropped. - */ + */ Incomphdrdelay int `json:"incomphdrdelay,omitempty"` /** * HTTP connection to be upgraded to a web socket connection. Once upgraded, Citrix ADC does not process Layer 7 traffic on this connection. - */ + */ Websocket string `json:"websocket,omitempty"` /** * Allow RTSP tunnel in HTTP. Once application/x-rtsp-tunnelled is seen in Accept or Content-Type header, Citrix ADC does not process Layer 7 traffic on this connection. - */ + */ Rtsptunnel string `json:"rtsptunnel,omitempty"` /** * Time, in seconds, within which the HTTP request must complete. If the request does not complete within this time, the specified request timeout action is executed. Zero disables the timeout. - */ + */ Reqtimeout int `json:"reqtimeout,omitempty"` /** * Adapts the configured request timeout based on flow conditions. The timeout is increased or decreased internally and applied on the flow. - */ + */ Adpttimeout string `json:"adpttimeout,omitempty"` /** * Action to take when the HTTP request does not complete within the specified request timeout duration. You can configure the following actions: @@ -94,146 +94,145 @@ type Nshttpprofile struct { Reqtimeoutaction string `json:"reqtimeoutaction,omitempty"` /** * Drop any extra data when server sends more data than the specified content-length. - */ + */ Dropextradata string `json:"dropextradata,omitempty"` /** * Enable or disable web logging. - */ + */ Weblog string `json:"weblog,omitempty"` /** * Name of the header that contains the real client IP address. - */ + */ Clientiphdrexpr string `json:"clientiphdrexpr,omitempty"` /** * Maximum number of requests allowed on a single connection. Zero implies no limit on the number of requests. - */ + */ Maxreq int `json:"maxreq,omitempty"` /** * Generate the persistent Citrix ADC specific ETag for the HTTP response with ETag header. - */ + */ Persistentetag string `json:"persistentetag,omitempty"` /** * Enable SPDYv2 or SPDYv3 or both over SSL vserver. SSL will advertise SPDY support either during NPN Handshake or when client will advertises SPDY support during ALPN handshake. Both SPDY versions are enabled when this parameter is set to ENABLED. - */ + */ Spdy string `json:"spdy,omitempty"` /** * Choose whether to enable support for HTTP/2. - */ + */ Http2 string `json:"http2,omitempty"` /** * Choose whether to enable support for Direct HTTP/2. - */ + */ Http2direct string `json:"http2direct,omitempty"` /** * Choose whether to enable strict HTTP/2 cipher selection - */ + */ Http2strictcipher string `json:"http2strictcipher,omitempty"` /** * Choose whether to enable support for sending HTTP/2 ALTSVC frames. When enabled, the ADC sends HTTP/2 ALTSVC frames to HTTP/2 clients, instead of the Alt-Svc response header field. Not applicable to servers. - */ + */ Http2altsvcframe string `json:"http2altsvcframe,omitempty"` /** * Choose whether to enable support for Alternative Services. - */ + */ Altsvc string `json:"altsvc,omitempty"` /** * Configure a custom Alternative Services header value that should be inserted in the response to advertise a HTTP/SSL/HTTP_QUIC vserver. - */ + */ Altsvcvalue string `json:"altsvcvalue,omitempty"` /** * Idle timeout (in seconds) for server connections in re-use pool. Connections in the re-use pool are flushed, if they remain idle for the configured timeout. - */ + */ Reusepooltimeout int `json:"reusepooltimeout,omitempty"` /** * Number of bytes to be queued to look for complete header before returning error. If complete header is not obtained after queuing these many bytes, request will be marked as invalid and no L7 processing will be done for that TCP connection. - */ + */ Maxheaderlen int `json:"maxheaderlen,omitempty"` /** * Minimum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. Zero implies no limit on reuse pool size. - */ + */ Minreusepool int `json:"minreusepool,omitempty"` /** * Maximum size of header list that the Citrix ADC is prepared to accept, in bytes. NOTE: The actual plain text header size that the Citrix ADC accepts is limited by maxHeaderLen. Please change maxHeaderLen parameter as well when modifying http2MaxHeaderListSize. - */ + */ Http2maxheaderlistsize int `json:"http2maxheaderlistsize,omitempty"` /** * Maximum size of the frame payload that the Citrix ADC is willing to receive, in bytes. - */ + */ Http2maxframesize int `json:"http2maxframesize,omitempty"` /** * Maximum number of concurrent streams that is allowed per connection. - */ + */ Http2maxconcurrentstreams int `json:"http2maxconcurrentstreams,omitempty"` /** * Initial window size for connection level flow control, in bytes. - */ + */ Http2initialconnwindowsize int `json:"http2initialconnwindowsize,omitempty"` /** * Initial window size for stream level flow control, in bytes. - */ + */ Http2initialwindowsize int `json:"http2initialwindowsize,omitempty"` /** * Maximum size of the header compression table used to decode header blocks, in bytes. - */ + */ Http2headertablesize int `json:"http2headertablesize,omitempty"` /** * Minimum number of HTTP2 connections established to backend server, on receiving HTTP requests from client before multiplexing the streams into the available HTTP/2 connections. - */ + */ Http2minseverconn int `json:"http2minseverconn,omitempty"` /** * Maximum number of ping frames allowed in HTTP2 connection per minute - */ + */ Http2maxpingframespermin int `json:"http2maxpingframespermin,omitempty"` /** * Maximum number of settings frames allowed in HTTP2 connection per minute - */ + */ Http2maxsettingsframespermin int `json:"http2maxsettingsframespermin,omitempty"` /** * Maximum number of reset frames allowed in HTTP/2 connection per minute - */ + */ Http2maxresetframespermin int `json:"http2maxresetframespermin,omitempty"` /** * Maximum number of empty frames allowed in HTTP2 connection per minute - */ + */ Http2maxemptyframespermin int `json:"http2maxemptyframespermin,omitempty"` /** * Maximum size in bytes allowed to buffer gRPC packets till trailer is received - */ + */ Grpcholdlimit int `json:"grpcholdlimit,omitempty"` /** * Maximum time in milliseconds allowed to buffer gRPC packets till trailer is received. The value should be in multiples of 100 - */ + */ Grpcholdtimeout int `json:"grpcholdtimeout,omitempty"` /** * Set to DISABLED for gRPC without a length delimitation. - */ + */ Grpclengthdelimitation string `json:"grpclengthdelimitation,omitempty"` /** * This option sets the satisfactory threshold (T) for client response time in milliseconds to be used for APDEX calculations. This means a transaction responding in less than this threshold is considered satisfactory. Transaction responding between T and 4*T is considered tolerable. Any transaction responding in more than 4*T time is considered frustrating. Citrix ADC maintains stats for such tolerable and frustrating transcations. And client response time related apdex counters are only updated on a vserver which receives clients traffic. - */ + */ Apdexcltresptimethreshold int `json:"apdexcltresptimethreshold,omitempty"` /** * Choose whether to enable support for HTTP/3. - */ + */ Http3 string `json:"http3,omitempty"` /** * Maximum size of the HTTP/3 header field section, in bytes. - */ + */ Http3maxheaderfieldsectionsize int `json:"http3maxheaderfieldsectionsize,omitempty"` /** * Maximum size of the HTTP/3 QPACK dynamic header table, in bytes. - */ + */ Http3maxheadertablesize int `json:"http3maxheadertablesize,omitempty"` /** * Maximum number of HTTP/3 streams that can be blocked while HTTP/3 headers are being decoded. - */ + */ Http3maxheaderblockedstreams int `json:"http3maxheaderblockedstreams,omitempty"` //------- Read only Parameter ---------; - Refcnt string `json:"refcnt,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` + Refcnt string `json:"refcnt,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` Apdexsvrresptimethreshold string `json:"apdexsvrresptimethreshold,omitempty"` - } diff --git a/resource/config/ns/nsicapprofile.go b/resource/config/nsicapprofile.go similarity index 98% rename from resource/config/ns/nsicapprofile.go rename to resource/config/nsicapprofile.go index c146472..056bb56 100644 --- a/resource/config/ns/nsicapprofile.go +++ b/resource/config/nsicapprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for ICAP profile resource. -*/ + */ type Nsicapprofile struct { /** * Name for an ICAP profile. Must begin with a letter, number, or the underscore \(_\) character. Other characters allowed, after the first character, are the hyphen \(-\), period \(.\), hash \(\#\), space \( \), at \(@\), colon \(:\), and equal \(=\) characters. The name of a ICAP profile cannot be changed after it is created. @@ -27,39 +27,39 @@ type Nsicapprofile struct { Name string `json:"name,omitempty"` /** * Enable or Disable preview header with ICAP request. This feature allows an ICAP server to see the beginning of a transaction, then decide if it wants to opt-out of the transaction early instead of receiving the remainder of the request message. - */ + */ Preview string `json:"preview,omitempty"` /** * Value of Preview Header field. Citrix ADC uses the minimum of this set value and the preview size received on OPTIONS response. - */ + */ Previewlength int `json:"previewlength,omitempty"` /** * URI representing icap service. It is a mandatory argument while creating an icapprofile. - */ + */ Uri string `json:"uri,omitempty"` /** * ICAP Host Header - */ + */ Hostheader string `json:"hostheader,omitempty"` /** * ICAP User Agent Header String - */ + */ Useragent string `json:"useragent,omitempty"` /** * ICAP Mode of operation. It is a mandatory argument while creating an icapprofile. - */ + */ Mode string `json:"mode,omitempty"` /** * Query parameters to be included with ICAP request URI. Entered values should be in arg=value format. For more than one parameters, add & separated values. e.g.: arg1=val1&arg2=val2. - */ + */ Queryparams string `json:"queryparams,omitempty"` /** * If enabled, Citrix ADC keeps the ICAP connection alive after a transaction to reuse it to send next ICAP request. - */ + */ Connectionkeepalive string `json:"connectionkeepalive,omitempty"` /** * Enable or Disable sending Allow: 204 header in ICAP request. - */ + */ Allow204 string `json:"allow204,omitempty"` /** * Insert custom ICAP headers in the ICAP request to send to ICAP server. The headers can be static or can be dynamically constructed using PI Policy Expression. For example, to send static user agent and Client's IP address, the expression can be specified as "User-Agent: NS-ICAP-Client/V1.0\r\nX-Client-IP: "+CLIENT.IP.SRC+"\r\n". @@ -73,7 +73,7 @@ type Nsicapprofile struct { Inserthttprequest string `json:"inserthttprequest,omitempty"` /** * Time, in seconds, within which the remote server should respond to the ICAP-request. If the Netscaler does not receive full response with this time, the specified request timeout action is performed. Zero value disables this timeout functionality. - */ + */ Reqtimeout int `json:"reqtimeout,omitempty"` /** * Name of the action to perform if the Vserver/Server representing the remote service does not respond with any response within the timeout value configured. The Supported actions are @@ -85,7 +85,6 @@ type Nsicapprofile struct { Reqtimeoutaction string `json:"reqtimeoutaction,omitempty"` /** * Name of the audit message action which would be evaluated on receiving the ICAP response to emit the logs. - */ + */ Logaction string `json:"logaction,omitempty"` - } diff --git a/resource/config/ns/nsip.go b/resource/config/nsip.go similarity index 91% rename from resource/config/ns/nsip.go rename to resource/config/nsip.go index 5c4715e..2f93d61 100644 --- a/resource/config/ns/nsip.go +++ b/resource/config/nsip.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for ip resource. -*/ + */ type Nsip struct { /** * IPv4 address to create on the Citrix ADC. Cannot be changed after the IP address is created. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Subnet mask associated with the IP address. - */ + */ Netmask string `json:"netmask,omitempty"` /** * Type of the IP address to create on the Citrix ADC. Cannot be changed after the IP address is created. The following are the different types of Citrix ADC owned IP addresses: @@ -38,87 +38,87 @@ type Nsip struct { Type string `json:"type,omitempty"` /** * Respond to ARP requests for this IP address. - */ + */ Arp string `json:"arp,omitempty"` /** * Respond to ICMP requests for this IP address. - */ + */ Icmp string `json:"icmp,omitempty"` /** * Use this option to set (enable or disable) the virtual server attribute for this IP address. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Allow Telnet access to this IP address. - */ + */ Telnet string `json:"telnet,omitempty"` /** * Allow File Transfer Protocol (FTP) access to this IP address. - */ + */ Ftp string `json:"ftp,omitempty"` /** * Allow graphical user interface (GUI) access to this IP address. - */ + */ Gui string `json:"gui,omitempty"` /** * Allow secure shell (SSH) access to this IP address. - */ + */ Ssh string `json:"ssh,omitempty"` /** * Allow Simple Network Management Protocol (SNMP) access to this IP address. - */ + */ Snmp string `json:"snmp,omitempty"` /** * Allow access to management applications on this IP address. - */ + */ Mgmtaccess string `json:"mgmtaccess,omitempty"` /** * Block access to nonmanagement applications on this IP. This option is applicable for MIPs, SNIPs, and NSIP, and is disabled by default. Nonmanagement applications can run on the underlying Citrix ADC Free BSD operating system. - */ + */ Restrictaccess string `json:"restrictaccess,omitempty"` /** * Allow dynamic routing on this IP address. Specific to Subnet IP (SNIP) address. - */ + */ Dynamicrouting string `json:"dynamicrouting,omitempty"` /** * Decrement TTL by 1 when ENABLED.This setting is applicable only for UDP traffic. - */ + */ Decrementttl string `json:"decrementttl,omitempty"` /** * Use this option to enable or disable OSPF on this IP address for the entity. - */ + */ Ospf string `json:"ospf,omitempty"` /** * Use this option to enable or disable BGP on this IP address for the entity. - */ + */ Bgp string `json:"bgp,omitempty"` /** * Use this option to enable or disable RIP on this IP address for the entity. - */ + */ Rip string `json:"rip,omitempty"` /** * Option to push the VIP to ZebOS routing table for Kernel route redistribution through dynamic routing protocols - */ + */ Hostroute string `json:"hostroute,omitempty"` /** * Advertise VIPs from Shared VLAN on Default Partition. - */ + */ Advertiseondefaultpartition string `json:"advertiseondefaultpartition,omitempty"` /** * Option to push the SNIP subnet to ZebOS routing table for Kernel route redistribution through dynamic routing protocol. - */ + */ Networkroute string `json:"networkroute,omitempty"` /** * Tag value for the network/host route associated with this IP. - */ + */ Tag int `json:"tag,omitempty"` /** * IP address of the gateway of the route for this VIP address. - */ + */ Hostrtgw string `json:"hostrtgw,omitempty"` /** * Integer value to add to or subtract from the cost of the route advertised for the VIP address. - */ + */ Metric int `json:"metric,omitempty"` /** * Advertise the route for the Virtual IP (VIP) address on the basis of the state of the virtual servers associated with that VIP. @@ -134,19 +134,19 @@ type Nsip struct { Vserverrhilevel string `json:"vserverrhilevel,omitempty"` /** * Type of LSAs to be used by the OSPF protocol, running on the Citrix ADC, for advertising the route for this VIP address. - */ + */ Ospflsatype string `json:"ospflsatype,omitempty"` /** * ID of the area in which the type1 link-state advertisements (LSAs) are to be advertised for this virtual IP (VIP) address by the OSPF protocol running on the Citrix ADC. When this parameter is not set, the VIP is advertised on all areas. - */ + */ Ospfarea int `json:"ospfarea,omitempty"` /** * Enable or disable the IP address. - */ + */ State string `json:"state,omitempty"` /** * A positive integer that uniquely identifies a VMAC address for binding to this VIP address. This binding is used to set up Citrix ADCs in an active-active configuration using VRRP. - */ + */ Vrid int `json:"vrid,omitempty"` /** * Respond to ICMP requests for a Virtual IP (VIP) address on the basis of the states of the virtual servers associated with that VIP. Available settings function as follows: @@ -162,7 +162,7 @@ type Nsip struct { Icmpresponse string `json:"icmpresponse,omitempty"` /** * The owner node in a Cluster for this IP address. Owner node can vary from 0 to 31. If ownernode is not specified then the IP is treated as Striped IP. - */ + */ Ownernode int `json:"ownernode,omitempty"` /** * Respond to ARP requests for a Virtual IP (VIP) address on the basis of the states of the virtual servers associated with that VIP. Available settings function as follows: @@ -173,33 +173,32 @@ type Nsip struct { Arpresponse string `json:"arpresponse,omitempty"` /** * in cluster system, if the owner node is down, whether should it respond to icmp/arp - */ + */ Ownerdownresponse string `json:"ownerdownresponse,omitempty"` /** - * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. TD id 4095 is used reserved for LSN use - */ + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. TD id 4095 is used reserved for LSN use + */ Td int `json:"td,omitempty"` /** * The arp owner in a Cluster for this IP address. It can vary from 0 to 31. - */ + */ Arpowner int `json:"arpowner,omitempty"` /** * If enabled, this IP will be advertised by Citrix ADC to MPTCP enabled clients as part of ADD_ADDR option. - */ + */ Mptcpadvertise string `json:"mptcpadvertise,omitempty"` //------- Read only Parameter ---------; - Flags string `json:"flags,omitempty"` - Hostrtgwact string `json:"hostrtgwact,omitempty"` - Ospfareaval string `json:"ospfareaval,omitempty"` - Viprtadv2bsd string `json:"viprtadv2bsd,omitempty"` - Vipvsercount string `json:"vipvsercount,omitempty"` - Vipvserdowncount string `json:"vipvserdowncount,omitempty"` - Vipvsrvrrhiactivecount string `json:"vipvsrvrrhiactivecount,omitempty"` + Flags string `json:"flags,omitempty"` + Hostrtgwact string `json:"hostrtgwact,omitempty"` + Ospfareaval string `json:"ospfareaval,omitempty"` + Viprtadv2bsd string `json:"viprtadv2bsd,omitempty"` + Vipvsercount string `json:"vipvsercount,omitempty"` + Vipvserdowncount string `json:"vipvserdowncount,omitempty"` + Vipvsrvrrhiactivecount string `json:"vipvsrvrrhiactivecount,omitempty"` Vipvsrvrrhiactiveupcount string `json:"vipvsrvrrhiactiveupcount,omitempty"` - Freeports string `json:"freeports,omitempty"` - Iptype string `json:"iptype,omitempty"` - Operationalarpowner string `json:"operationalarpowner,omitempty"` - + Freeports string `json:"freeports,omitempty"` + Iptype string `json:"iptype,omitempty"` + Operationalarpowner string `json:"operationalarpowner,omitempty"` } diff --git a/resource/config/ns/nsip6.go b/resource/config/nsip6.go similarity index 93% rename from resource/config/ns/nsip6.go rename to resource/config/nsip6.go index af12580..f58cc14 100644 --- a/resource/config/ns/nsip6.go +++ b/resource/config/nsip6.go @@ -12,101 +12,101 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for ip6 resource. -*/ + */ type Nsip6 struct { /** * IPv6 address to create on the Citrix ADC. - */ + */ Ipv6address string `json:"ipv6address,omitempty"` /** * Scope of the IPv6 address to be created. Cannot be changed after the IP address is created. - */ + */ Scope string `json:"scope,omitempty"` /** * Type of IP address to be created on the Citrix ADC. Cannot be changed after the IP address is created. - */ + */ Type string `json:"type,omitempty"` /** * The VLAN number. - */ + */ Vlan int `json:"vlan,omitempty"` /** * Respond to Neighbor Discovery (ND) requests for this IP address. - */ + */ Nd string `json:"nd,omitempty"` /** * Respond to ICMP requests for this IP address. - */ + */ Icmp string `json:"icmp,omitempty"` /** * Enable or disable the state of all the virtual servers associated with this VIP6 address. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Allow Telnet access to this IP address. - */ + */ Telnet string `json:"telnet,omitempty"` /** * Allow File Transfer Protocol (FTP) access to this IP address. - */ + */ Ftp string `json:"ftp,omitempty"` /** * Allow graphical user interface (GUI) access to this IP address. - */ + */ Gui string `json:"gui,omitempty"` /** * Allow secure Shell (SSH) access to this IP address. - */ + */ Ssh string `json:"ssh,omitempty"` /** * Allow Simple Network Management Protocol (SNMP) access to this IP address. - */ + */ Snmp string `json:"snmp,omitempty"` /** * Allow access to management applications on this IP address. - */ + */ Mgmtaccess string `json:"mgmtaccess,omitempty"` /** * Block access to nonmanagement applications on this IP address. This option is applicable forMIP6s, SNIP6s, and NSIP6s, and is disabled by default. Nonmanagement applications can run on the underlying Citrix ADC Free BSD operating system. - */ + */ Restrictaccess string `json:"restrictaccess,omitempty"` /** * Allow dynamic routing on this IP address. Specific to Subnet IPv6 (SNIP6) address. - */ + */ Dynamicrouting string `json:"dynamicrouting,omitempty"` /** * Decrement Hop Limit by 1 when ENABLED.This setting is applicable only for UDP traffic. - */ + */ Decrementhoplimit string `json:"decrementhoplimit,omitempty"` /** * Option to push the VIP6 to ZebOS routing table for Kernel route redistribution through dynamic routing protocols. - */ + */ Hostroute string `json:"hostroute,omitempty"` /** * Advertise VIPs from Shared VLAN on Default Partition - */ + */ Advertiseondefaultpartition string `json:"advertiseondefaultpartition,omitempty"` /** * Option to push the SNIP6 subnet to ZebOS routing table for Kernel route redistribution through dynamic routing protocol. - */ + */ Networkroute string `json:"networkroute,omitempty"` /** * Tag value for the network/host route associated with this IP. - */ + */ Tag int `json:"tag,omitempty"` /** * IPv6 address of the gateway for the route. If Gateway is not set, VIP uses :: as the gateway. - */ + */ Ip6hostrtgw string `json:"ip6hostrtgw,omitempty"` /** * Integer value to add to or subtract from the cost of the route advertised for the VIP6 address. - */ + */ Metric int `json:"metric,omitempty"` /** * Advertise or do not advertise the route for the Virtual IP (VIP6) address on the basis of the state of the virtual servers associated with that VIP6. @@ -122,53 +122,52 @@ type Nsip6 struct { Vserverrhilevel string `json:"vserverrhilevel,omitempty"` /** * Type of LSAs to be used by the IPv6 OSPF protocol, running on the Citrix ADC, for advertising the route for the VIP6 address. - */ + */ Ospf6lsatype string `json:"ospf6lsatype,omitempty"` /** * ID of the area in which the Intra-Area-Prefix LSAs are to be advertised for the VIP6 address by the IPv6 OSPF protocol running on the Citrix ADC. When ospfArea is not set, VIP6 is advertised on all areas. - */ + */ Ospfarea int `json:"ospfarea,omitempty"` /** * Enable or disable the IP address. - */ + */ State string `json:"state,omitempty"` /** * Mapped IPV4 address for the IPV6 address. - */ + */ Map string `json:"map,omitempty"` /** * A positive integer that uniquely identifies a VMAC address for binding to this VIP address. This binding is used to set up Citrix ADCs in an active-active configuration using VRRP. - */ + */ Vrid6 int `json:"vrid6,omitempty"` /** * ID of the cluster node for which you are adding the IP address. Must be used if you want the IP address to be active only on the specific node. Can be configured only through the cluster IP address. Cannot be changed after the IP address is created. - */ + */ Ownernode int `json:"ownernode,omitempty"` /** * in cluster system, if the owner node is down, whether should it respond to icmp/arp - */ + */ Ownerdownresponse string `json:"ownerdownresponse,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * NdOwner in Cluster for VIPS and Striped SNIPS - */ + */ Ndowner int `json:"ndowner,omitempty"` /** * If enabled, this IP will be advertised by Citrix ADC to MPTCP enabled clients as part of ADD_ADDR option. - */ + */ Mptcpadvertise string `json:"mptcpadvertise,omitempty"` //------- Read only Parameter ---------; - Iptype string `json:"iptype,omitempty"` - Curstate string `json:"curstate,omitempty"` - Viprtadv2bsd string `json:"viprtadv2bsd,omitempty"` - Vipvsercount string `json:"vipvsercount,omitempty"` - Vipvserdowncount string `json:"vipvserdowncount,omitempty"` - Systemtype string `json:"systemtype,omitempty"` + Iptype string `json:"iptype,omitempty"` + Curstate string `json:"curstate,omitempty"` + Viprtadv2bsd string `json:"viprtadv2bsd,omitempty"` + Vipvsercount string `json:"vipvsercount,omitempty"` + Vipvserdowncount string `json:"vipvserdowncount,omitempty"` + Systemtype string `json:"systemtype,omitempty"` Operationalndowner string `json:"operationalndowner,omitempty"` - } diff --git a/resource/config/nslicense.go b/resource/config/nslicense.go new file mode 100644 index 0000000..16c1d70 --- /dev/null +++ b/resource/config/nslicense.go @@ -0,0 +1,90 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for license resource. + */ +type Nslicense struct { + + //------- Read only Parameter ---------; + + Wl string `json:"wl,omitempty"` + Sp string `json:"sp,omitempty"` + Lb string `json:"lb,omitempty"` + Cs string `json:"cs,omitempty"` + Cr string `json:"cr,omitempty"` + Sc string `json:"sc,omitempty"` + Cmp string `json:"cmp,omitempty"` + Delta string `json:"delta,omitempty"` + Pq string `json:"pq,omitempty"` + Ssl string `json:"ssl,omitempty"` + Gslb string `json:"gslb,omitempty"` + Gslbp string `json:"gslbp,omitempty"` + Hdosp string `json:"hdosp,omitempty"` + Routing string `json:"routing,omitempty"` + Cf string `json:"cf,omitempty"` + Contentaccelerator string `json:"contentaccelerator,omitempty"` + Ic string `json:"ic,omitempty"` + Sslvpn string `json:"sslvpn,omitempty"` + Fsslvpnusers string `json:"f_sslvpn_users,omitempty"` + Ficausers string `json:"f_ica_users,omitempty"` + Aaa string `json:"aaa,omitempty"` + Ospf string `json:"ospf,omitempty"` + Rip string `json:"rip,omitempty"` + Bgp string `json:"bgp,omitempty"` + Rewrite string `json:"rewrite,omitempty"` + Ipv6pt string `json:"ipv6pt,omitempty"` + Appfw string `json:"appfw,omitempty"` + Responder string `json:"responder,omitempty"` + Agee string `json:"agee,omitempty"` + Nsxn string `json:"nsxn,omitempty"` + Htmlinjection string `json:"htmlinjection,omitempty"` + Modelid string `json:"modelid,omitempty"` + Push string `json:"push,omitempty"` + Wionns string `json:"wionns,omitempty"` + Appflow string `json:"appflow,omitempty"` + Cloudbridge string `json:"cloudbridge,omitempty"` + Cloudbridgeappliance string `json:"cloudbridgeappliance,omitempty"` + Cloudextenderappliance string `json:"cloudextenderappliance,omitempty"` + Isis string `json:"isis,omitempty"` + Cluster string `json:"cluster,omitempty"` + Ch string `json:"ch,omitempty"` + Appqoe string `json:"appqoe,omitempty"` + Appflowica string `json:"appflowica,omitempty"` + Isstandardlic string `json:"isstandardlic,omitempty"` + Isenterpriselic string `json:"isenterpriselic,omitempty"` + Isplatinumlic string `json:"isplatinumlic,omitempty"` + Issgwylic string `json:"issgwylic,omitempty"` + Isswglic string `json:"isswglic,omitempty"` + Feo string `json:"feo,omitempty"` + Lsn string `json:"lsn,omitempty"` + Licensingmode string `json:"licensingmode,omitempty"` + Cloudsubscriptionimage string `json:"cloudsubscriptionimage,omitempty"` + Daystoexpiration string `json:"daystoexpiration,omitempty"` + Rdpproxy string `json:"rdpproxy,omitempty"` + Rep string `json:"rep,omitempty"` + Urlfiltering string `json:"urlfiltering,omitempty"` + Videooptimization string `json:"videooptimization,omitempty"` + Forwardproxy string `json:"forwardproxy,omitempty"` + Sslinterception string `json:"sslinterception,omitempty"` + Remotecontentinspection string `json:"remotecontentinspection,omitempty"` + Adaptivetcp string `json:"adaptivetcp,omitempty"` + Cqa string `json:"cqa,omitempty"` + Bot string `json:"bot,omitempty"` + Apigateway string `json:"apigateway,omitempty"` +} diff --git a/resource/config/ns/nslicenseparameters.go b/resource/config/nslicenseparameters.go similarity index 96% rename from resource/config/ns/nslicenseparameters.go rename to resource/config/nslicenseparameters.go index c37d2a7..619d0b3 100644 --- a/resource/config/ns/nslicenseparameters.go +++ b/resource/config/nslicenseparameters.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for licenseparameters resource. -*/ + */ type Nslicenseparameters struct { /** * If ADC remains in grace for the configured hours then first grace alert will be raised - */ + */ Alert1gracetimeout int `json:"alert1gracetimeout,omitempty"` /** * If ADC remains in grace for the configured hours then major grace alert will be raised - */ + */ Alert2gracetimeout int `json:"alert2gracetimeout,omitempty"` - } diff --git a/resource/config/ns/nslicenseproxyserver.go b/resource/config/nslicenseproxyserver.go similarity index 96% rename from resource/config/ns/nslicenseproxyserver.go rename to resource/config/nslicenseproxyserver.go index 82596c6..35344d8 100644 --- a/resource/config/ns/nslicenseproxyserver.go +++ b/resource/config/nslicenseproxyserver.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for licenseproxyserver resource. -*/ + */ type Nslicenseproxyserver struct { /** * IP address of the License proxy server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Fully qualified domain name of the License proxy server. - */ + */ Servername string `json:"servername,omitempty"` /** * License proxy server port. - */ + */ Port int `json:"port,omitempty"` - } diff --git a/resource/config/ns/nslicenseserver.go b/resource/config/nslicenseserver.go similarity index 91% rename from resource/config/ns/nslicenseserver.go rename to resource/config/nslicenseserver.go index 103faa6..a729d23 100644 --- a/resource/config/ns/nslicenseserver.go +++ b/resource/config/nslicenseserver.go @@ -12,39 +12,38 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for licenseserver resource. -*/ + */ type Nslicenseserver struct { /** * IP address of the License server. - */ + */ Licenseserverip string `json:"licenseserverip,omitempty"` /** * Fully qualified domain name of the License server. - */ + */ Servername string `json:"servername,omitempty"` /** * License server port. - */ + */ Port int `json:"port,omitempty"` /** * If this flag is used while adding the licenseserver, existing config will be overwritten. Use this flag only if you are sure that the new licenseserver has the required capacity. - */ + */ Forceupdateip bool `json:"forceupdateip,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - Status string `json:"status,omitempty"` - Grace string `json:"grace,omitempty"` + Status string `json:"status,omitempty"` + Grace string `json:"grace,omitempty"` Gptimeleft string `json:"gptimeleft,omitempty"` - } diff --git a/resource/config/nslicenseserverpool.go b/resource/config/nslicenseserverpool.go new file mode 100644 index 0000000..1254014 --- /dev/null +++ b/resource/config/nslicenseserverpool.go @@ -0,0 +1,144 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for licenseserver resource. + */ +type Nslicenseserverpool struct { + + //------- Read only Parameter ---------; + + Instancetotal string `json:"instancetotal,omitempty"` + Instanceavailable string `json:"instanceavailable,omitempty"` + Standardbandwidthtotal string `json:"standardbandwidthtotal,omitempty"` + Standardbandwidthavailable string `json:"standardbandwidthavailable,omitempty"` + Enterprisebandwidthtotal string `json:"enterprisebandwidthtotal,omitempty"` + Enterprisebandwidthavailable string `json:"enterprisebandwidthavailable,omitempty"` + Platinumbandwidthtotal string `json:"platinumbandwidthtotal,omitempty"` + Platinumbandwidthavailable string `json:"platinumbandwidthavailable,omitempty"` + Standardcputotal string `json:"standardcputotal,omitempty"` + Standardcpuavailable string `json:"standardcpuavailable,omitempty"` + Enterprisecputotal string `json:"enterprisecputotal,omitempty"` + Enterprisecpuavailable string `json:"enterprisecpuavailable,omitempty"` + Platinumcputotal string `json:"platinumcputotal,omitempty"` + Platinumcpuavailable string `json:"platinumcpuavailable,omitempty"` + Cpxinstancetotal string `json:"cpxinstancetotal,omitempty"` + Cpxinstanceavailable string `json:"cpxinstanceavailable,omitempty"` + Vpx1stotal string `json:"vpx1stotal,omitempty"` + Vpx1savailable string `json:"vpx1savailable,omitempty"` + Vpx1ptotal string `json:"vpx1ptotal,omitempty"` + Vpx1pavailable string `json:"vpx1pavailable,omitempty"` + Vpx5stotal string `json:"vpx5stotal,omitempty"` + Vpx5savailable string `json:"vpx5savailable,omitempty"` + Vpx5ptotal string `json:"vpx5ptotal,omitempty"` + Vpx5pavailable string `json:"vpx5pavailable,omitempty"` + Vpx10stotal string `json:"vpx10stotal,omitempty"` + Vpx10savailable string `json:"vpx10savailable,omitempty"` + Vpx10etotal string `json:"vpx10etotal,omitempty"` + Vpx10eavailable string `json:"vpx10eavailable,omitempty"` + Vpx10ptotal string `json:"vpx10ptotal,omitempty"` + Vpx10pavailable string `json:"vpx10pavailable,omitempty"` + Vpx25stotal string `json:"vpx25stotal,omitempty"` + Vpx25savailable string `json:"vpx25savailable,omitempty"` + Vpx25etotal string `json:"vpx25etotal,omitempty"` + Vpx25eavailable string `json:"vpx25eavailable,omitempty"` + Vpx25ptotal string `json:"vpx25ptotal,omitempty"` + Vpx25pavailable string `json:"vpx25pavailable,omitempty"` + Vpx50stotal string `json:"vpx50stotal,omitempty"` + Vpx50savailable string `json:"vpx50savailable,omitempty"` + Vpx50etotal string `json:"vpx50etotal,omitempty"` + Vpx50eavailable string `json:"vpx50eavailable,omitempty"` + Vpx50ptotal string `json:"vpx50ptotal,omitempty"` + Vpx50pavailable string `json:"vpx50pavailable,omitempty"` + Vpx100stotal string `json:"vpx100stotal,omitempty"` + Vpx100savailable string `json:"vpx100savailable,omitempty"` + Vpx100etotal string `json:"vpx100etotal,omitempty"` + Vpx100eavailable string `json:"vpx100eavailable,omitempty"` + Vpx100ptotal string `json:"vpx100ptotal,omitempty"` + Vpx100pavailable string `json:"vpx100pavailable,omitempty"` + Vpx200stotal string `json:"vpx200stotal,omitempty"` + Vpx200savailable string `json:"vpx200savailable,omitempty"` + Vpx200etotal string `json:"vpx200etotal,omitempty"` + Vpx200eavailable string `json:"vpx200eavailable,omitempty"` + Vpx200ptotal string `json:"vpx200ptotal,omitempty"` + Vpx200pavailable string `json:"vpx200pavailable,omitempty"` + Vpx500stotal string `json:"vpx500stotal,omitempty"` + Vpx500savailable string `json:"vpx500savailable,omitempty"` + Vpx500etotal string `json:"vpx500etotal,omitempty"` + Vpx500eavailable string `json:"vpx500eavailable,omitempty"` + Vpx500ptotal string `json:"vpx500ptotal,omitempty"` + Vpx500pavailable string `json:"vpx500pavailable,omitempty"` + Vpx1000stotal string `json:"vpx1000stotal,omitempty"` + Vpx1000savailable string `json:"vpx1000savailable,omitempty"` + Vpx1000etotal string `json:"vpx1000etotal,omitempty"` + Vpx1000eavailable string `json:"vpx1000eavailable,omitempty"` + Vpx1000ptotal string `json:"vpx1000ptotal,omitempty"` + Vpx1000pavailable string `json:"vpx1000pavailable,omitempty"` + Vpx2000ptotal string `json:"vpx2000ptotal,omitempty"` + Vpx2000pavailable string `json:"vpx2000pavailable,omitempty"` + Vpx3000stotal string `json:"vpx3000stotal,omitempty"` + Vpx3000savailable string `json:"vpx3000savailable,omitempty"` + Vpx3000etotal string `json:"vpx3000etotal,omitempty"` + Vpx3000eavailable string `json:"vpx3000eavailable,omitempty"` + Vpx3000ptotal string `json:"vpx3000ptotal,omitempty"` + Vpx3000pavailable string `json:"vpx3000pavailable,omitempty"` + Vpx4000ptotal string `json:"vpx4000ptotal,omitempty"` + Vpx4000pavailable string `json:"vpx4000pavailable,omitempty"` + Vpx5000stotal string `json:"vpx5000stotal,omitempty"` + Vpx5000savailable string `json:"vpx5000savailable,omitempty"` + Vpx5000etotal string `json:"vpx5000etotal,omitempty"` + Vpx5000eavailable string `json:"vpx5000eavailable,omitempty"` + Vpx5000ptotal string `json:"vpx5000ptotal,omitempty"` + Vpx5000pavailable string `json:"vpx5000pavailable,omitempty"` + Vpx8000stotal string `json:"vpx8000stotal,omitempty"` + Vpx8000savailable string `json:"vpx8000savailable,omitempty"` + Vpx8000etotal string `json:"vpx8000etotal,omitempty"` + Vpx8000eavailable string `json:"vpx8000eavailable,omitempty"` + Vpx8000ptotal string `json:"vpx8000ptotal,omitempty"` + Vpx8000pavailable string `json:"vpx8000pavailable,omitempty"` + Vpx10000stotal string `json:"vpx10000stotal,omitempty"` + Vpx10000savailable string `json:"vpx10000savailable,omitempty"` + Vpx10000etotal string `json:"vpx10000etotal,omitempty"` + Vpx10000eavailable string `json:"vpx10000eavailable,omitempty"` + Vpx10000ptotal string `json:"vpx10000ptotal,omitempty"` + Vpx10000pavailable string `json:"vpx10000pavailable,omitempty"` + Vpx15000stotal string `json:"vpx15000stotal,omitempty"` + Vpx15000savailable string `json:"vpx15000savailable,omitempty"` + Vpx15000etotal string `json:"vpx15000etotal,omitempty"` + Vpx15000eavailable string `json:"vpx15000eavailable,omitempty"` + Vpx15000ptotal string `json:"vpx15000ptotal,omitempty"` + Vpx15000pavailable string `json:"vpx15000pavailable,omitempty"` + Vpx25000stotal string `json:"vpx25000stotal,omitempty"` + Vpx25000savailable string `json:"vpx25000savailable,omitempty"` + Vpx25000etotal string `json:"vpx25000etotal,omitempty"` + Vpx25000eavailable string `json:"vpx25000eavailable,omitempty"` + Vpx25000ptotal string `json:"vpx25000ptotal,omitempty"` + Vpx25000pavailable string `json:"vpx25000pavailable,omitempty"` + Vpx40000stotal string `json:"vpx40000stotal,omitempty"` + Vpx40000savailable string `json:"vpx40000savailable,omitempty"` + Vpx40000etotal string `json:"vpx40000etotal,omitempty"` + Vpx40000eavailable string `json:"vpx40000eavailable,omitempty"` + Vpx40000ptotal string `json:"vpx40000ptotal,omitempty"` + Vpx40000pavailable string `json:"vpx40000pavailable,omitempty"` + Vpx100000stotal string `json:"vpx100000stotal,omitempty"` + Vpx100000savailable string `json:"vpx100000savailable,omitempty"` + Vpx100000etotal string `json:"vpx100000etotal,omitempty"` + Vpx100000eavailable string `json:"vpx100000eavailable,omitempty"` + Vpx100000ptotal string `json:"vpx100000ptotal,omitempty"` + Vpx100000pavailable string `json:"vpx100000pavailable,omitempty"` +} diff --git a/resource/config/ns/nslimitidentifier.go b/resource/config/nslimitidentifier.go similarity index 87% rename from resource/config/ns/nslimitidentifier.go rename to resource/config/nslimitidentifier.go index d29d236..de525aa 100644 --- a/resource/config/ns/nslimitidentifier.go +++ b/resource/config/nslimitidentifier.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for limit Indetifier resource. -*/ + */ type Nslimitidentifier struct { /** * Name for a rate limit identifier. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Reserved words must not be used. - */ + */ Limitidentifier string `json:"limitidentifier,omitempty"` /** * Maximum number of requests that are allowed in the given timeslice when requests (mode is set as REQUEST_RATE) are tracked per timeslice. @@ -31,7 +31,7 @@ type Nslimitidentifier struct { Threshold int `json:"threshold,omitempty"` /** * Time interval, in milliseconds, specified in multiples of 10, during which requests are tracked to check if they cross the threshold. This argument is needed only when the mode is set to REQUEST_RATE. - */ + */ Timeslice int `json:"timeslice,omitempty"` /** * Defines the type of traffic to be tracked. @@ -59,27 +59,26 @@ type Nslimitidentifier struct { Limittype string `json:"limittype,omitempty"` /** * Name of the rate limit selector. If this argument is NULL, rate limiting will be applied on all traffic received by the virtual server or the Citrix ADC (depending on whether the limit identifier is bound to a virtual server or globally) without any filtering. - */ + */ Selectorname string `json:"selectorname,omitempty"` /** * Maximum bandwidth permitted, in kbps. - */ + */ Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Number of traps to be sent in the timeslice configured. A value of 0 indicates that traps are disabled. - */ + */ Trapsintimeslice int `json:"trapsintimeslice,omitempty"` //------- Read only Parameter ---------; - Ngname string `json:"ngname,omitempty"` - Hits string `json:"hits,omitempty"` - Drop string `json:"drop,omitempty"` - Rule string `json:"rule,omitempty"` - Time string `json:"time,omitempty"` - Total string `json:"total,omitempty"` + Ngname string `json:"ngname,omitempty"` + Hits string `json:"hits,omitempty"` + Drop string `json:"drop,omitempty"` + Rule string `json:"rule,omitempty"` + Time string `json:"time,omitempty"` + Total string `json:"total,omitempty"` Trapscomputedintimeslice string `json:"trapscomputedintimeslice,omitempty"` - Computedtraptimeslice string `json:"computedtraptimeslice,omitempty"` - Referencecount string `json:"referencecount,omitempty"` - + Computedtraptimeslice string `json:"computedtraptimeslice,omitempty"` + Referencecount string `json:"referencecount,omitempty"` } diff --git a/resource/config/ns/nslimitidentifier_binding.go b/resource/config/nslimitidentifier_binding.go similarity index 95% rename from resource/config/ns/nslimitidentifier_binding.go rename to resource/config/nslimitidentifier_binding.go index c1fda04..ba685b7 100644 --- a/resource/config/ns/nslimitidentifier_binding.go +++ b/resource/config/nslimitidentifier_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** -* Binding object which returns the resources bound to nslimitidentifier_binding. -*/ +* Binding object which returns the resources bound to nslimitidentifier_binding. + */ type Nslimitidentifierbinding struct { /** * Name of the rate limit identifier about which to display information. If a name is not provided, information about all rate limit identifiers is shown. - */ + */ Limitidentifier string `json:"limitidentifier,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nslimitidentifier_limitsessions_binding.go b/resource/config/nslimitidentifier_limitsessions_binding.go similarity index 96% rename from resource/config/ns/nslimitidentifier_limitsessions_binding.go rename to resource/config/nslimitidentifier_limitsessions_binding.go index f570181..acfdda7 100644 --- a/resource/config/ns/nslimitidentifier_limitsessions_binding.go +++ b/resource/config/nslimitidentifier_limitsessions_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the limitsessions that can be bound to nslimitidentifier. -*/ + */ type Nslimitidentifierlimitsessionsbinding struct { /** * Name of the rate limit identifier about which to display information. If a name is not provided, information about all rate limit identifiers is shown. - */ + */ Limitidentifier string `json:"limitidentifier,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nslimitidentifier_nslimitsessions_binding.go b/resource/config/nslimitidentifier_nslimitsessions_binding.go similarity index 97% rename from resource/config/ns/nslimitidentifier_nslimitsessions_binding.go rename to resource/config/nslimitidentifier_nslimitsessions_binding.go index 21f62e7..3926aac 100644 --- a/resource/config/ns/nslimitidentifier_nslimitsessions_binding.go +++ b/resource/config/nslimitidentifier_nslimitsessions_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the nslimitsessions that can be bound to nslimitidentifier. -*/ + */ type Nslimitidentifiernslimitsessionsbinding struct { /** * Name of the rate limit identifier about which to display information. If a name is not provided, information about all rate limit identifiers is shown. - */ + */ Limitidentifier string `json:"limitidentifier,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nslimitselector.go b/resource/config/nslimitselector.go similarity index 84% rename from resource/config/ns/nslimitselector.go rename to resource/config/nslimitselector.go index 4bba60b..7962b2b 100644 --- a/resource/config/ns/nslimitselector.go +++ b/resource/config/nslimitselector.go @@ -12,15 +12,14 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for limit selector resource. -*/ + */ type Nslimitselector struct { - Selectorname string `json:"selectorname,omitempty"` - Rule []string `json:"rule,omitempty"` - + Selectorname string `json:"selectorname,omitempty"` + Rule []string `json:"rule,omitempty"` } diff --git a/resource/config/ns/nslimitsessions.go b/resource/config/nslimitsessions.go similarity index 63% rename from resource/config/ns/nslimitsessions.go rename to resource/config/nslimitsessions.go index 536f315..f398e18 100644 --- a/resource/config/ns/nslimitsessions.go +++ b/resource/config/nslimitsessions.go @@ -12,36 +12,35 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for limit sessions resource. -*/ + */ type Nslimitsessions struct { /** * Name of the rate limit identifier for which to display the sessions. - */ + */ Limitidentifier string `json:"limitidentifier,omitempty"` /** * Show the individual hash values. - */ + */ Detail bool `json:"detail,omitempty"` //------- Read only Parameter ---------; - Timeout string `json:"timeout,omitempty"` - Hits string `json:"hits,omitempty"` - Drop string `json:"drop,omitempty"` - Number string `json:"number,omitempty"` - Name string `json:"name,omitempty"` - Unit string `json:"unit,omitempty"` - Flags string `json:"flags,omitempty"` + Timeout string `json:"timeout,omitempty"` + Hits string `json:"hits,omitempty"` + Drop string `json:"drop,omitempty"` + Number string `json:"number,omitempty"` + Name string `json:"name,omitempty"` + Unit string `json:"unit,omitempty"` + Flags string `json:"flags,omitempty"` Referencecount string `json:"referencecount,omitempty"` - Maxbandwidth string `json:"maxbandwidth,omitempty"` - Selectoripv61 string `json:"selectoripv61,omitempty"` - Selectoripv62 string `json:"selectoripv62,omitempty"` - Flag string `json:"flag,omitempty"` - + Maxbandwidth string `json:"maxbandwidth,omitempty"` + Selectoripv61 string `json:"selectoripv61,omitempty"` + Selectoripv62 string `json:"selectoripv62,omitempty"` + Flag string `json:"flag,omitempty"` } diff --git a/resource/config/ns/nsmigration.go b/resource/config/nsmigration.go similarity index 77% rename from resource/config/ns/nsmigration.go rename to resource/config/nsmigration.go index 7326f98..de40179 100644 --- a/resource/config/ns/nsmigration.go +++ b/resource/config/nsmigration.go @@ -12,20 +12,19 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Migration operation resource. -*/ + */ type Nsmigration struct { //------- Read only Parameter ---------; - Migrationstatus string `json:"migrationstatus,omitempty"` - Migrationstarttime string `json:"migrationstarttime,omitempty"` - Migrationendtime string `json:"migrationendtime,omitempty"` + Migrationstatus string `json:"migrationstatus,omitempty"` + Migrationstarttime string `json:"migrationstarttime,omitempty"` + Migrationendtime string `json:"migrationendtime,omitempty"` Migrationrollbackstarttime string `json:"migrationrollbackstarttime,omitempty"` - } diff --git a/resource/config/ns/nsmode.go b/resource/config/nsmode.go similarity index 50% rename from resource/config/ns/nsmode.go rename to resource/config/nsmode.go index 9ded64c..40bd915 100644 --- a/resource/config/ns/nsmode.go +++ b/resource/config/nsmode.go @@ -12,38 +12,37 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for ns mode resource. -*/ + */ type Nsmode struct { /** * Mode to be enabled. Multiple modes can be specified by providing a blank space between each mode. - */ + */ Mode []string `json:"mode,omitempty"` //------- Read only Parameter ---------; - Fr string `json:"fr,omitempty"` - L2 string `json:"l2,omitempty"` - Usip string `json:"usip,omitempty"` - Cka string `json:"cka,omitempty"` - Tcpb string `json:"tcpb,omitempty"` - Mbf string `json:"mbf,omitempty"` - Edge string `json:"edge,omitempty"` - Usnip string `json:"usnip,omitempty"` - L3 string `json:"l3,omitempty"` - Pmtud string `json:"pmtud,omitempty"` + Fr string `json:"fr,omitempty"` + L2 string `json:"l2,omitempty"` + Usip string `json:"usip,omitempty"` + Cka string `json:"cka,omitempty"` + Tcpb string `json:"tcpb,omitempty"` + Mbf string `json:"mbf,omitempty"` + Edge string `json:"edge,omitempty"` + Usnip string `json:"usnip,omitempty"` + L3 string `json:"l3,omitempty"` + Pmtud string `json:"pmtud,omitempty"` Mediaclassification string `json:"mediaclassification,omitempty"` - Sradv string `json:"sradv,omitempty"` - Dradv string `json:"dradv,omitempty"` - Iradv string `json:"iradv,omitempty"` - Sradv6 string `json:"sradv6,omitempty"` - Dradv6 string `json:"dradv6,omitempty"` - Bridgebpdus string `json:"bridgebpdus,omitempty"` - Ulfd string `json:"ulfd,omitempty"` - + Sradv string `json:"sradv,omitempty"` + Dradv string `json:"dradv,omitempty"` + Iradv string `json:"iradv,omitempty"` + Sradv6 string `json:"sradv6,omitempty"` + Dradv6 string `json:"dradv6,omitempty"` + Bridgebpdus string `json:"bridgebpdus,omitempty"` + Ulfd string `json:"ulfd,omitempty"` } diff --git a/resource/config/ns/nsparam.go b/resource/config/nsparam.go similarity index 97% rename from resource/config/ns/nsparam.go rename to resource/config/nsparam.go index deb0e49..bf8f42c 100644 --- a/resource/config/ns/nsparam.go +++ b/resource/config/nsparam.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Citrix ADC parameters resource. -*/ + */ type Nsparam struct { /** * HTTP ports on the web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. - */ + */ Httpport []int `json:"httpport,omitempty"` /** * Maximum number of connections that will be made from the appliance to the web server(s) attached to it. The value entered here is applied globally to all attached servers. @@ -30,7 +30,7 @@ type Nsparam struct { Maxconn int `json:"maxconn"` // Zero is a valid value /** * Maximum number of requests that the system can pass on a particular connection between the appliance and a server attached to it. Setting this value to 0 allows an unlimited number of requests to be passed. This value is overridden by the maximum number of requests configured on the individual service. - */ + */ Maxreq int `json:"maxreq,omitempty"` /** * Enable or disable the insertion of the actual client IP address into the HTTP header request passed from the client to one, some, or all servers attached to the system. The passed address can then be accessed through a minor modification to the server. @@ -40,63 +40,63 @@ type Nsparam struct { Cip string `json:"cip,omitempty"` /** * Text that will be used as the client IP address header. - */ + */ Cipheader string `json:"cipheader,omitempty"` /** * Version of the cookie inserted by the system. - */ + */ Cookieversion string `json:"cookieversion,omitempty"` /** * Enable or disable secure flag for persistence cookie. - */ + */ Securecookie string `json:"securecookie,omitempty"` /** * Minimum path MTU value that Citrix ADC will process in the ICMP fragmentation needed message. If the ICMP message contains a value less than this value, then this value is used instead. - */ + */ Pmtumin int `json:"pmtumin,omitempty"` /** * Interval, in minutes, for flushing the PMTU entries. - */ + */ Pmtutimeout int `json:"pmtutimeout,omitempty"` /** * Minimum and maximum port (port range) that FTP services are allowed to use. - */ + */ Ftpportrange string `json:"ftpportrange,omitempty"` /** * Port range for cache redirection services. - */ + */ Crportrange string `json:"crportrange,omitempty"` /** * Time zone for the Citrix ADC. Name of the time zone should be specified as argument. - */ + */ Timezone string `json:"timezone,omitempty"` /** * Percentage of shared quota to be granted at a time for maxClient. - */ + */ Grantquotamaxclient int `json:"grantquotamaxclient,omitempty"` /** * Percentage of maxClient to be given to PEs. - */ + */ Exclusivequotamaxclient int `json:"exclusivequotamaxclient,omitempty"` /** * Percentage of shared quota to be granted at a time for spillover. - */ + */ Grantquotaspillover int `json:"grantquotaspillover,omitempty"` /** * Percentage of maximum limit to be given to PEs. - */ + */ Exclusivequotaspillover int `json:"exclusivequotaspillover,omitempty"` /** * Enable/Disable use_proxy_port setting - */ + */ Useproxyport string `json:"useproxyport,omitempty"` /** * Enables/disables the internal user from logging in to the appliance. Before disabling internal user login, you must have key-based authentication set up on the appliance. The file name for the key pair must be "ns_comm_key". - */ + */ Internaluserlogin string `json:"internaluserlogin,omitempty"` /** * Allow the FTP server to come from a random source port for active FTP data connections - */ + */ Aftpallowrandomsourceport string `json:"aftpallowrandomsourceport,omitempty"` /** * The ICA ports on the Web server. This allows the system to perform connection off-load for any @@ -105,11 +105,11 @@ type Nsparam struct { Icaports []int `json:"icaports,omitempty"` /** * Enable or disable the insertion of the client TCP/IP header in TCP payload passed from the client to one, some, or all servers attached to the system. The passed address can then be accessed through a minor modification to the server. - */ + */ Tcpcip string `json:"tcpcip,omitempty"` /** * VLAN on which the subscriber traffic arrives on the appliance. - */ + */ Servicepathingressvlan int `json:"servicepathingressvlan,omitempty"` /** * The Secure ICA ports on the Web server. This allows the system to perform connection off-load for any @@ -118,27 +118,26 @@ type Nsparam struct { Secureicaports []int `json:"secureicaports,omitempty"` /** * This allow the configuration of management HTTP port. - */ + */ Mgmthttpport int `json:"mgmthttpport,omitempty"` /** * This allows the configuration of management HTTPS port. - */ + */ Mgmthttpsport int `json:"mgmthttpsport,omitempty"` /** * Disable/Enable v1 or v2 proxy protocol header for client info insertion - */ + */ Proxyprotocol string `json:"proxyprotocol,omitempty"` /** * Disable/Enable advanace analytics stats - */ + */ Advancedanalyticsstats string `json:"advancedanalyticsstats,omitempty"` /** * Set the IP Time to Live (TTL) and Hop Limit value for all outgoing packets from Citrix ADC. - */ + */ Ipttl int `json:"ipttl,omitempty"` //------- Read only Parameter ---------; Autoscaleoption string `json:"autoscaleoption,omitempty"` - } diff --git a/resource/config/ns/nspartition.go b/resource/config/nspartition.go similarity index 93% rename from resource/config/ns/nspartition.go rename to resource/config/nspartition.go index ebc86ad..a9560ad 100644 --- a/resource/config/ns/nspartition.go +++ b/resource/config/nspartition.go @@ -12,51 +12,50 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for admin partition resource. -*/ + */ type Nspartition struct { /** * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Partitionname string `json:"partitionname,omitempty"` /** * Maximum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits. - */ + */ Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Minimum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits - */ + */ Minbandwidth int `json:"minbandwidth,omitempty"` /** * Maximum number of concurrent connections that can be open in the partition. A zero value indicates no limit on number of open connections. - */ + */ Maxconn int `json:"maxconn,omitempty"` /** * Maximum memory, in megabytes, allocated to the partition. A zero value indicates the memory is unlimited on the partition and it can consume up to the system limits. - */ + */ Maxmemlimit int `json:"maxmemlimit,omitempty"` /** * Special MAC address for the partition which is used for communication over shared vlans in this partition. If not specified, the MAC address is auto-generated. - */ + */ Partitionmac string `json:"partitionmac,omitempty"` /** * Switches to new admin partition without prompt for saving configuration. Configuration will not be saved - */ + */ Force bool `json:"force,omitempty"` /** * Switches to new admin partition without prompt for saving configuration. Configuration will be saved - */ + */ Save bool `json:"save,omitempty"` //------- Read only Parameter ---------; - Partitionid string `json:"partitionid,omitempty"` + Partitionid string `json:"partitionid,omitempty"` Partitiontype string `json:"partitiontype,omitempty"` - Pmacinternal string `json:"pmacinternal,omitempty"` - + Pmacinternal string `json:"pmacinternal,omitempty"` } diff --git a/resource/config/ns/nspartition_binding.go b/resource/config/nspartition_binding.go similarity index 94% rename from resource/config/ns/nspartition_binding.go rename to resource/config/nspartition_binding.go index 9c304e6..ee592c2 100644 --- a/resource/config/ns/nspartition_binding.go +++ b/resource/config/nspartition_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** -* Binding object which returns the resources bound to nspartition_binding. -*/ +* Binding object which returns the resources bound to nspartition_binding. + */ type Nspartitionbinding struct { /** - * Name of partition for which to display parameters.
Minimum value = - */ + * Name of partition for which to display parameters.
Minimum value = + */ Partitionname string `json:"partitionname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nspartition_bridgegroup_binding.go b/resource/config/nspartition_bridgegroup_binding.go similarity index 97% rename from resource/config/ns/nspartition_bridgegroup_binding.go rename to resource/config/nspartition_bridgegroup_binding.go index f6e6b07..414cba3 100644 --- a/resource/config/ns/nspartition_bridgegroup_binding.go +++ b/resource/config/nspartition_bridgegroup_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the bridgegroup that can be bound to nspartition. -*/ + */ type Nspartitionbridgegroupbinding struct { /** * Identifier of the bridge group that is assigned to this partition. - */ + */ Bridgegroup int `json:"bridgegroup,omitempty"` /** * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Partitionname string `json:"partitionname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nspartition_vlan_binding.go b/resource/config/nspartition_vlan_binding.go similarity index 96% rename from resource/config/ns/nspartition_vlan_binding.go rename to resource/config/nspartition_vlan_binding.go index a12a4f5..28bfdd2 100644 --- a/resource/config/ns/nspartition_vlan_binding.go +++ b/resource/config/nspartition_vlan_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the vlan that can be bound to nspartition. -*/ + */ type Nspartitionvlanbinding struct { /** * Identifier of the vlan that is assigned to this partition. - */ + */ Vlan int `json:"vlan,omitempty"` /** * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Partitionname string `json:"partitionname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nspartition_vxlan_binding.go b/resource/config/nspartition_vxlan_binding.go similarity index 96% rename from resource/config/ns/nspartition_vxlan_binding.go rename to resource/config/nspartition_vxlan_binding.go index 365d7ed..faa702a 100644 --- a/resource/config/ns/nspartition_vxlan_binding.go +++ b/resource/config/nspartition_vxlan_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the vxlan that can be bound to nspartition. -*/ + */ type Nspartitionvxlanbinding struct { /** * Identifier of the vxlan that is assigned to this partition. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. - */ + */ Partitionname string `json:"partitionname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nspartitionmac.go b/resource/config/nspartitionmac.go similarity index 91% rename from resource/config/ns/nspartitionmac.go rename to resource/config/nspartitionmac.go index 02f64d1..3932b25 100644 --- a/resource/config/ns/nspartitionmac.go +++ b/resource/config/nspartitionmac.go @@ -12,18 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for partition MACs resource. -*/ + */ type Nspartitionmac struct { //------- Read only Parameter ---------; - Partitionmac string `json:"partitionmac,omitempty"` + Partitionmac string `json:"partitionmac,omitempty"` Partitionname string `json:"partitionname,omitempty"` - } diff --git a/resource/config/ns/nspbr.go b/resource/config/nspbr.go similarity index 91% rename from resource/config/ns/nspbr.go rename to resource/config/nspbr.go index 96541b5..e35a558 100644 --- a/resource/config/ns/nspbr.go +++ b/resource/config/nspbr.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Policy Based Routing(PBR) entry resource. -*/ + */ type Nspbr struct { /** * Name for the PBR. Must begin with an ASCII alphabetic or underscore \(_\) character, and must contain only ASCII alphanumeric, underscore, hash \(\#\), period \(.\), space, colon \(:\), at \(@\), equals \(=\), and hyphen \(-\) characters. Cannot be changed after the PBR is created. - */ + */ Name string `json:"name,omitempty"` /** * Action to perform on the outgoing IPv4 packets that match the PBR. @@ -33,19 +33,19 @@ type Nspbr struct { Action string `json:"action,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. - */ + */ Srcip bool `json:"srcip,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Srcipop string `json:"srcipop,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. - */ + */ Srcipval string `json:"srcipval,omitempty"` /** * Port number or range of port numbers to match against the source port number of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -54,7 +54,7 @@ type Nspbr struct { Srcport bool `json:"srcport,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Srcportop string `json:"srcportop,omitempty"` /** * Port number or range of port numbers to match against the source port number of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -63,15 +63,15 @@ type Nspbr struct { Srcportval string `json:"srcportval,omitempty"` /** * IP address or range of IP addresses to match against the destination IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. - */ + */ Destip bool `json:"destip,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Destipop string `json:"destipop,omitempty"` /** * IP address or range of IP addresses to match against the destination IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. - */ + */ Destipval string `json:"destipval,omitempty"` /** * Port number or range of port numbers to match against the destination port number of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -80,7 +80,7 @@ type Nspbr struct { Destport bool `json:"destport,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Destportop string `json:"destportop,omitempty"` /** * Port number or range of port numbers to match against the destination port number of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -94,85 +94,84 @@ type Nspbr struct { Nexthop bool `json:"nexthop,omitempty"` /** * The Next Hop IP address or gateway name. - */ + */ Nexthopval string `json:"nexthopval,omitempty"` /** * The Tunnel name. - */ + */ Iptunnel bool `json:"iptunnel,omitempty"` /** * The iptunnel name where packets need to be forwarded upon. - */ + */ Iptunnelname string `json:"iptunnelname,omitempty"` /** * The vlan to vxlan mapping to be applied for incoming packets over this pbr tunnel - */ + */ Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` /** * MAC address to match against the source MAC address of an outgoing IPv4 packet. - */ + */ Srcmac string `json:"srcmac,omitempty"` /** - * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". - */ + * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". + */ Srcmacmask string `json:"srcmacmask,omitempty"` /** * Protocol, identified by protocol name, to match against the protocol of an outgoing IPv4 packet. - */ + */ Protocol string `json:"protocol,omitempty"` /** * Protocol, identified by protocol number, to match against the protocol of an outgoing IPv4 packet. - */ + */ Protocolnumber int `json:"protocolnumber,omitempty"` /** * ID of the VLAN. The Citrix ADC compares the PBR only to the outgoing packets on the specified VLAN. If you do not specify any interface ID, the appliance compares the PBR to the outgoing packets on all VLANs. - */ + */ Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN. The Citrix ADC compares the PBR only to the outgoing packets on the specified VXLAN. If you do not specify any interface ID, the appliance compares the PBR to the outgoing packets on all VXLANs. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * ID of an interface. The Citrix ADC compares the PBR only to the outgoing packets on the specified interface. If you do not specify any value, the appliance compares the PBR to the outgoing packets on all interfaces. - */ + */ Interface string `json:"Interface,omitempty"` /** * Priority of the PBR, which determines the order in which it is evaluated relative to the other PBRs. If you do not specify priorities while creating PBRs, the PBRs are evaluated in the order in which they are created. - */ + */ Priority int `json:"priority,omitempty"` /** * Monitor the route specified byte Next Hop parameter. This parameter is not applicable if you specify a link load balancing (LLB) virtual server name with the Next Hop parameter. - */ + */ Msr string `json:"msr,omitempty"` /** * The name of the monitor.(Can be only of type ping or ARP ) - */ + */ Monitor string `json:"monitor,omitempty"` /** * Enable or disable the PBR. After you apply the PBRs, the Citrix ADC compares outgoing packets to the enabled PBRs. - */ + */ State string `json:"state,omitempty"` /** * The owner node group in a Cluster for this pbr rule. If ownernode is not specified then the pbr rule is treated as Striped pbr rule. - */ + */ Ownergroup string `json:"ownergroup,omitempty"` /** * To get a detailed view. - */ + */ Detail bool `json:"detail,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Kernelstate string `json:"kernelstate,omitempty"` - Curstate string `json:"curstate,omitempty"` - Totalprobes string `json:"totalprobes,omitempty"` + Hits string `json:"hits,omitempty"` + Kernelstate string `json:"kernelstate,omitempty"` + Curstate string `json:"curstate,omitempty"` + Totalprobes string `json:"totalprobes,omitempty"` Totalfailedprobes string `json:"totalfailedprobes,omitempty"` - Failedprobes string `json:"failedprobes,omitempty"` - Monstatcode string `json:"monstatcode,omitempty"` - Monstatparam1 string `json:"monstatparam1,omitempty"` - Monstatparam2 string `json:"monstatparam2,omitempty"` - Monstatparam3 string `json:"monstatparam3,omitempty"` - Data string `json:"data,omitempty"` - + Failedprobes string `json:"failedprobes,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Data string `json:"data,omitempty"` } diff --git a/resource/config/ns/nspbr6.go b/resource/config/nspbr6.go similarity index 90% rename from resource/config/ns/nspbr6.go rename to resource/config/nspbr6.go index bd1e3cf..6aa8b6d 100644 --- a/resource/config/ns/nspbr6.go +++ b/resource/config/nspbr6.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for PBR6 entry resource. -*/ + */ type Nspbr6 struct { /** * Name for the PBR6. Must begin with an ASCII alphabetic or underscore \(_\) character, and must contain only ASCII alphanumeric, underscore, hash \(\#\), period \(.\), space, colon \(:\), at \(@\), equals \(=\), and hyphen \(-\) characters. Cannot be changed after the PBR6 is created. - */ + */ Name string `json:"name,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Action to perform on the outgoing IPv6 packets that match the PBR6. @@ -37,39 +37,39 @@ type Nspbr6 struct { Action string `json:"action,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. - */ + */ Srcipv6 bool `json:"srcipv6,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Srcipop string `json:"srcipop,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. - */ + */ Srcipv6val string `json:"srcipv6val,omitempty"` /** * Port number or range of port numbers to match against the source port number of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. - */ + */ Srcport bool `json:"srcport,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Srcportop string `json:"srcportop,omitempty"` /** * Source port (range). - */ + */ Srcportval string `json:"srcportval,omitempty"` /** * IP address or range of IP addresses to match against the destination IP address of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. - */ + */ Destipv6 bool `json:"destipv6,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Destipop string `json:"destipop,omitempty"` /** * IP address or range of IP addresses to match against the destination IP address of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. - */ + */ Destipv6val string `json:"destipv6val,omitempty"` /** * Port number or range of port numbers to match against the destination port number of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. @@ -78,97 +78,96 @@ type Nspbr6 struct { Destport bool `json:"destport,omitempty"` /** * Either the equals (=) or does not equal (!=) logical operator. - */ + */ Destportop string `json:"destportop,omitempty"` /** * Destination port (range). - */ + */ Destportval string `json:"destportval,omitempty"` /** * MAC address to match against the source MAC address of an outgoing IPv6 packet. - */ + */ Srcmac string `json:"srcmac,omitempty"` /** - * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". - */ + * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". + */ Srcmacmask string `json:"srcmacmask,omitempty"` /** * Protocol, identified by protocol name, to match against the protocol of an outgoing IPv6 packet. - */ + */ Protocol string `json:"protocol,omitempty"` /** * Protocol, identified by protocol number, to match against the protocol of an outgoing IPv6 packet. - */ + */ Protocolnumber int `json:"protocolnumber,omitempty"` /** * ID of the VLAN. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified VLAN. If you do not specify an interface ID, the appliance compares the PBR6 to the outgoing packets on all VLANs. - */ + */ Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified VXLAN. If you do not specify an interface ID, the appliance compares the PBR6 to the outgoing packets on all VXLANs. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * ID of an interface. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified interface. If you do not specify a value, the appliance compares the PBR6 to the outgoing packets on all interfaces. - */ + */ Interface string `json:"Interface,omitempty"` /** * Priority of the PBR6, which determines the order in which it is evaluated relative to the other PBR6s. If you do not specify priorities while creating PBR6s, the PBR6s are evaluated in the order in which they are created. - */ + */ Priority int `json:"priority,omitempty"` /** * Enable or disable the PBR6. After you apply the PBR6s, the Citrix ADC compares outgoing packets to the enabled PBR6s. - */ + */ State string `json:"state,omitempty"` /** * Monitor the route specified by the Next Hop parameter. - */ + */ Msr string `json:"msr,omitempty"` /** * The name of the monitor.(Can be only of type ping or ARP ) - */ + */ Monitor string `json:"monitor,omitempty"` /** * IP address of the next hop router to which to send matching packets if action is set to ALLOW. This next hop should be directly reachable from the appliance. - */ + */ Nexthop bool `json:"nexthop,omitempty"` /** * The Next Hop IPv6 address. - */ + */ Nexthopval string `json:"nexthopval,omitempty"` /** * The iptunnel name where packets need to be forwarded upon. - */ + */ Iptunnel string `json:"iptunnel,omitempty"` /** * The vlan to vxlan mapping to be applied for incoming packets over this pbr tunnel. - */ + */ Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` /** * VLAN number to be used for link local nexthop . - */ + */ Nexthopvlan int `json:"nexthopvlan,omitempty"` /** * The owner node group in a Cluster for this pbr rule. If owner node group is not specified then the pbr rule is treated as Striped pbr rule. - */ + */ Ownergroup string `json:"ownergroup,omitempty"` /** * To get a detailed view. - */ + */ Detail bool `json:"detail,omitempty"` //------- Read only Parameter ---------; - Kernelstate string `json:"kernelstate,omitempty"` - Hits string `json:"hits,omitempty"` - Curstate string `json:"curstate,omitempty"` - Totalprobes string `json:"totalprobes,omitempty"` + Kernelstate string `json:"kernelstate,omitempty"` + Hits string `json:"hits,omitempty"` + Curstate string `json:"curstate,omitempty"` + Totalprobes string `json:"totalprobes,omitempty"` Totalfailedprobes string `json:"totalfailedprobes,omitempty"` - Failedprobes string `json:"failedprobes,omitempty"` - Monstatcode string `json:"monstatcode,omitempty"` - Monstatparam1 string `json:"monstatparam1,omitempty"` - Monstatparam2 string `json:"monstatparam2,omitempty"` - Monstatparam3 string `json:"monstatparam3,omitempty"` - Data string `json:"data,omitempty"` - + Failedprobes string `json:"failedprobes,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Data string `json:"data,omitempty"` } diff --git a/resource/config/ns/nspbrs.go b/resource/config/nspbrs.go similarity index 96% rename from resource/config/ns/nspbrs.go rename to resource/config/nspbrs.go index c8362e8..6fdb116 100644 --- a/resource/config/ns/nspbrs.go +++ b/resource/config/nspbrs.go @@ -12,13 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Policy based routing resource. -*/ + */ type Nspbrs struct { - } diff --git a/resource/config/ns/nsratecontrol.go b/resource/config/nsratecontrol.go similarity index 96% rename from resource/config/ns/nsratecontrol.go rename to resource/config/nsratecontrol.go index f741d2d..8e8b7cd 100644 --- a/resource/config/ns/nsratecontrol.go +++ b/resource/config/nsratecontrol.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for rate control resource. -*/ + */ type Nsratecontrol struct { /** * Number of SYNs permitted per 10 milliseconds. - */ + */ Tcpthreshold int `json:"tcpthreshold,omitempty"` /** * Number of UDP packets permitted per 10 milliseconds. - */ + */ Udpthreshold int `json:"udpthreshold,omitempty"` /** * Number of ICMP packets permitted per 10 milliseconds. - */ + */ Icmpthreshold int `json:"icmpthreshold,omitempty"` /** * The number of TCP RST packets permitted per 10 milli second. zero means rate control is disabled and 0xffffffff means every thing is rate controlled - */ + */ Tcprstthreshold int `json:"tcprstthreshold,omitempty"` - } diff --git a/resource/config/ns/nsrollbackcmd.go b/resource/config/nsrollbackcmd.go similarity index 96% rename from resource/config/ns/nsrollbackcmd.go rename to resource/config/nsrollbackcmd.go index c0aea66..d2412e9 100644 --- a/resource/config/ns/nsrollbackcmd.go +++ b/resource/config/nsrollbackcmd.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Generate rollback commands resource. -*/ + */ type Nsrollbackcmd struct { /** * File that contains the commands for which the rollback commands must be generated. Specify the full path of the file name. - */ + */ Filename string `json:"filename,omitempty"` /** * Format in which the rollback commands must be generated. - */ + */ Outtype string `json:"outtype,omitempty"` - } diff --git a/resource/config/ns/nsrpcnode.go b/resource/config/nsrpcnode.go similarity index 96% rename from resource/config/ns/nsrpcnode.go rename to resource/config/nsrpcnode.go index bfd1058..3fb726d 100644 --- a/resource/config/ns/nsrpcnode.go +++ b/resource/config/nsrpcnode.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for rpc node resource. -*/ + */ type Nsrpcnode struct { /** * IP address of the node. This has to be in the same subnet as the NSIP address. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Password to be used in authentication with the peer system node. - */ + */ Password string `json:"password,omitempty"` /** * Source IP address to be used to communicate with the peer system node. The default value is 0, which means that the appliance uses the NSIP address as the source IP address. - */ + */ Srcip string `json:"srcip,omitempty"` /** * State of the channel when talking to the node. - */ + */ Secure string `json:"secure,omitempty"` /** * validate the server certificate for secure SSL connections - */ + */ Validatecert string `json:"validatecert,omitempty"` - } diff --git a/resource/config/ns/nsrunningconfig.go b/resource/config/nsrunningconfig.go similarity index 97% rename from resource/config/ns/nsrunningconfig.go rename to resource/config/nsrunningconfig.go index 5ce7fe8..84c6270 100644 --- a/resource/config/ns/nsrunningconfig.go +++ b/resource/config/nsrunningconfig.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for running configuration resource. -*/ + */ type Nsrunningconfig struct { /** * Include default values of parameters that have not been explicitly configured. If this argument is disabled, such parameters are not included. - */ + */ Withdefaults bool `json:"withdefaults,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/ns/nssavedconfig.go b/resource/config/nssavedconfig.go similarity index 97% rename from resource/config/ns/nssavedconfig.go rename to resource/config/nssavedconfig.go index 1fd0fda..5d67d5e 100644 --- a/resource/config/ns/nssavedconfig.go +++ b/resource/config/nssavedconfig.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for last saved configuration resource. -*/ + */ type Nssavedconfig struct { //------- Read only Parameter ---------; Textblob string `json:"textblob,omitempty"` - } diff --git a/resource/config/ns/nsservicefunction.go b/resource/config/nsservicefunction.go similarity index 97% rename from resource/config/ns/nsservicefunction.go rename to resource/config/nsservicefunction.go index fdc938a..6753060 100644 --- a/resource/config/ns/nsservicefunction.go +++ b/resource/config/nsservicefunction.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for service Function resource. -*/ + */ type Nsservicefunction struct { /** * Name of the service function to be created. Leading character must be a number or letter. Other characters allowed, after the first character, are @ _ - . (period) : (colon) # and space ( ). - */ + */ Servicefunctionname string `json:"servicefunctionname,omitempty"` /** * VLAN ID on which the traffic from service function reaches Citrix ADC. - */ + */ Ingressvlan int `json:"ingressvlan,omitempty"` - } diff --git a/resource/config/ns/nsservicepath.go b/resource/config/nsservicepath.go similarity index 97% rename from resource/config/ns/nsservicepath.go rename to resource/config/nsservicepath.go index fd97f65..e0baf2e 100644 --- a/resource/config/ns/nsservicepath.go +++ b/resource/config/nsservicepath.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for service Chain resource. -*/ + */ type Nsservicepath struct { /** * Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must @@ -26,5 +26,4 @@ type Nsservicepath struct { characters. */ Servicepathname string `json:"servicepathname,omitempty"` - } diff --git a/resource/config/ns/nsservicepath_binding.go b/resource/config/nsservicepath_binding.go similarity index 93% rename from resource/config/ns/nsservicepath_binding.go rename to resource/config/nsservicepath_binding.go index 0b66577..70c1a2d 100644 --- a/resource/config/ns/nsservicepath_binding.go +++ b/resource/config/nsservicepath_binding.go @@ -12,20 +12,18 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** -* Binding object which returns the resources bound to nsservicepath_binding. -*/ +* Binding object which returns the resources bound to nsservicepath_binding. + */ type Nsservicepathbinding struct { /** * Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) - characters.
Minimum value = + characters.
Minimum value = */ Servicepathname string `json:"servicepathname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nsservicepath_nsservicefunction_binding.go b/resource/config/nsservicepath_nsservicefunction_binding.go similarity index 97% rename from resource/config/ns/nsservicepath_nsservicefunction_binding.go rename to resource/config/nsservicepath_nsservicefunction_binding.go index 368c1e5..e1e69c4 100644 --- a/resource/config/ns/nsservicepath_nsservicefunction_binding.go +++ b/resource/config/nsservicepath_nsservicefunction_binding.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the nsservicefunction that can be bound to nsservicepath. -*/ + */ type Nsservicepathnsservicefunctionbinding struct { /** * List of service functions constituting the chain. - */ + */ Servicefunction string `json:"servicefunction,omitempty"` /** * The serviceindex of each servicefunction in path. - */ + */ Index int `json:"index,omitempty"` /** * Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must @@ -34,6 +34,4 @@ type Nsservicepathnsservicefunctionbinding struct { characters. */ Servicepathname string `json:"servicepathname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nsservicepath_servicefunction_binding.go b/resource/config/nsservicepath_servicefunction_binding.go similarity index 97% rename from resource/config/ns/nsservicepath_servicefunction_binding.go rename to resource/config/nsservicepath_servicefunction_binding.go index 0c634d4..74576ad 100644 --- a/resource/config/ns/nsservicepath_servicefunction_binding.go +++ b/resource/config/nsservicepath_servicefunction_binding.go @@ -12,21 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the servicefunction that can be bound to nsservicepath. -*/ + */ type Nsservicepathservicefunctionbinding struct { /** * List of service functions constituting the chain. - */ + */ Servicefunction string `json:"servicefunction,omitempty"` /** * The serviceindex of each servicefunction in path. - */ + */ Index uint32 `json:"index,omitempty"` /** * Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must @@ -34,6 +34,4 @@ type Nsservicepathservicefunctionbinding struct { characters. */ Servicepathname string `json:"servicepathname,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nssimpleacl.go b/resource/config/nssimpleacl.go similarity index 96% rename from resource/config/ns/nssimpleacl.go rename to resource/config/nssimpleacl.go index cdad1c9..f6769ac 100644 --- a/resource/config/ns/nssimpleacl.go +++ b/resource/config/nssimpleacl.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for simple ACL resource. -*/ + */ type Nssimpleacl struct { /** * Name for the simple ACL rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the simple ACL rule is created. - */ + */ Aclname string `json:"aclname,omitempty"` /** * Drop incoming IPv4 packets that match the simple ACL rule. - */ + */ Aclaction string `json:"aclaction,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * IP address to match against the source IP address of an incoming IPv4 packet. - */ + */ Srcip string `json:"srcip,omitempty"` /** * Port number to match against the destination port number of an incoming IPv4 packet. @@ -43,16 +43,15 @@ type Nssimpleacl struct { Destport int `json:"destport,omitempty"` /** * Protocol to match against the protocol of an incoming IPv4 packet. You must set this parameter if you have set the Destination Port parameter. - */ + */ Protocol string `json:"protocol,omitempty"` /** * Number of seconds, in multiples of four, after which the simple ACL rule expires. If you do not want the simple ACL rule to expire, do not specify a TTL value. - */ - Ttl int `json:"ttl,omitempty"` + */ + Ttl int `json:"ttl,omitempty"` Estsessions bool `json:"estsessions,omitempty"` //------- Read only Parameter ---------; Hits string `json:"hits,omitempty"` - } diff --git a/resource/config/ns/nssimpleacl6.go b/resource/config/nssimpleacl6.go similarity index 96% rename from resource/config/ns/nssimpleacl6.go rename to resource/config/nssimpleacl6.go index c27a58e..c95ab7f 100644 --- a/resource/config/ns/nssimpleacl6.go +++ b/resource/config/nssimpleacl6.go @@ -12,29 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for simple ACL6 resource. -*/ + */ type Nssimpleacl6 struct { /** * Name for the simple ACL6 rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the simple ACL6 rule is created. - */ + */ Aclname string `json:"aclname,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. - */ + */ Td int `json:"td,omitempty"` /** * Drop incoming IPv6 packets that match the simple ACL6 rule. - */ + */ Aclaction string `json:"aclaction,omitempty"` /** * IP address to match against the source IP address of an incoming IPv6 packet. - */ + */ Srcipv6 string `json:"srcipv6,omitempty"` /** * Port number to match against the destination port number of an incoming IPv6 packet. @@ -43,16 +43,15 @@ type Nssimpleacl6 struct { Destport int `json:"destport,omitempty"` /** * Protocol to match against the protocol of an incoming IPv6 packet. You must set this parameter if you set the Destination Port parameter. - */ + */ Protocol string `json:"protocol,omitempty"` /** * Number of seconds, in multiples of four, after which the simple ACL6 rule expires. If you do not want the simple ACL6 rule to expire, do not specify a TTL value. - */ - Ttl int `json:"ttl,omitempty"` + */ + Ttl int `json:"ttl,omitempty"` Estsessions bool `json:"estsessions,omitempty"` //------- Read only Parameter ---------; Hits string `json:"hits,omitempty"` - } diff --git a/resource/config/ns/nssourceroutecachetable.go b/resource/config/nssourceroutecachetable.go similarity index 88% rename from resource/config/ns/nssourceroutecachetable.go rename to resource/config/nssourceroutecachetable.go index 6669771..fb6003b 100644 --- a/resource/config/ns/nssourceroutecachetable.go +++ b/resource/config/nssourceroutecachetable.go @@ -12,20 +12,19 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Source IP Mac Cache Table. resource. -*/ + */ type Nssourceroutecachetable struct { //------- Read only Parameter ---------; - Sourceip string `json:"sourceip,omitempty"` + Sourceip string `json:"sourceip,omitempty"` Sourcemac string `json:"sourcemac,omitempty"` - Vlan string `json:"vlan,omitempty"` + Vlan string `json:"vlan,omitempty"` Interface string `json:"Interface,omitempty"` - } diff --git a/resource/config/ns/nsspparams.go b/resource/config/nsspparams.go similarity index 93% rename from resource/config/ns/nsspparams.go rename to resource/config/nsspparams.go index ec35d57..7885e97 100644 --- a/resource/config/ns/nsspparams.go +++ b/resource/config/nsspparams.go @@ -12,27 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Surge Protection parameter resource. -*/ + */ type Nsspparams struct { /** * Maximum number of server connections that can be opened before surge protection is activated. - */ + */ Basethreshold int `json:"basethreshold,omitempty"` /** * Rate at which the system opens connections to the server. - */ + */ Throttle string `json:"throttle,omitempty"` //------- Read only Parameter ---------; - Table0 string `json:"table0,omitempty"` + Table0 string `json:"table0,omitempty"` Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/ns/nsstats.go b/resource/config/nsstats.go similarity index 97% rename from resource/config/ns/nsstats.go rename to resource/config/nsstats.go index a09a5f4..d4a364d 100644 --- a/resource/config/ns/nsstats.go +++ b/resource/config/nsstats.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for stats resource. -*/ + */ type Nsstats struct { /** * The level of stats to be cleared. 'global' option will clear global counters only, 'all' option will clear all device counters also along with global counters. For both the cases only 'ever incrementing counters' i.e. total counters will be cleared. - */ + */ Cleanuplevel string `json:"cleanuplevel,omitempty"` - } diff --git a/resource/config/ns/nssurgeq.go b/resource/config/nssurgeq.go similarity index 96% rename from resource/config/ns/nssurgeq.go rename to resource/config/nssurgeq.go index 914a521..c4e2593 100644 --- a/resource/config/ns/nssurgeq.go +++ b/resource/config/nssurgeq.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for surge queue resource. -*/ + */ type Nssurgeq struct { /** * Name of a virtual server, service or service group for which the SurgeQ must be flushed. - */ + */ Name string `json:"name,omitempty"` /** * Name of a service group member. This argument is needed when you want to flush the SurgeQ of a service group. - */ + */ Servername string `json:"servername,omitempty"` /** * port on which server is bound to the entity(Servicegroup). - */ + */ Port int `json:"port,omitempty"` - } diff --git a/resource/config/ns/nstcpbufparam.go b/resource/config/nstcpbufparam.go similarity index 96% rename from resource/config/ns/nstcpbufparam.go rename to resource/config/nstcpbufparam.go index 90cc961..a4420ce 100644 --- a/resource/config/ns/nstcpbufparam.go +++ b/resource/config/nstcpbufparam.go @@ -12,26 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for tcp buffer parameter resource. -*/ + */ type Nstcpbufparam struct { /** * TCP buffering size per connection, in kilobytes. - */ + */ Size int `json:"size,omitempty"` /** * Maximum memory, in megabytes, that can be used for buffering. - */ + */ Memlimit int `json:"memlimit,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/ns/nstcpparam.go b/resource/config/nstcpparam.go similarity index 97% rename from resource/config/ns/nstcpparam.go rename to resource/config/nstcpparam.go index 4b5d428..e6fce7d 100644 --- a/resource/config/ns/nstcpparam.go +++ b/resource/config/nstcpparam.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for tcp parameters resource. -*/ + */ type Nstcpparam struct { /** * Enable or disable window scaling. - */ + */ Ws string `json:"ws,omitempty"` /** * Factor used to calculate the new window size. @@ -31,103 +31,103 @@ type Nstcpparam struct { Wsval int `json:"wsval,omitempty"` /** * Enable or disable Selective ACKnowledgement (SACK). - */ + */ Sack string `json:"sack,omitempty"` /** * Enable or disable maximum segment size (MSS) learning for virtual servers. - */ + */ Learnvsvrmss string `json:"learnvsvrmss,omitempty"` /** * Maximum number of TCP segments allowed in a burst. - */ + */ Maxburst int `json:"maxburst,omitempty"` /** * Initial maximum upper limit on the number of TCP packets that can be outstanding on the TCP link to the server. - */ + */ Initialcwnd int `json:"initialcwnd,omitempty"` /** * TCP Receive buffer size - */ + */ Recvbuffsize int `json:"recvbuffsize,omitempty"` /** * Timeout for TCP delayed ACK, in milliseconds. - */ + */ Delayedack int `json:"delayedack,omitempty"` /** * Flag to switch on RST on down services. - */ + */ Downstaterst string `json:"downstaterst,omitempty"` /** * Enable or disable the Nagle algorithm on TCP connections. - */ + */ Nagle string `json:"nagle,omitempty"` /** * Limit the number of persist (zero window) probes. - */ + */ Limitedpersist string `json:"limitedpersist,omitempty"` /** * Maximum size of out-of-order packets queue. A value of 0 means no limit. - */ + */ Oooqsize int `json:"oooqsize,omitempty"` /** * Send immediate positive acknowledgement (ACK) on receipt of TCP packets with PUSH flag. - */ + */ Ackonpush string `json:"ackonpush,omitempty"` /** * Maximum number of TCP packets allowed per maximum segment size (MSS). - */ + */ Maxpktpermss int `json:"maxpktpermss,omitempty"` /** * Maximum limit on the number of packets that should be retransmitted on receiving a partial ACK. - */ + */ Pktperretx int `json:"pktperretx,omitempty"` /** * Minimum retransmission timeout, in milliseconds, specified in 10-millisecond increments (value must yield a whole number if divided by 10). - */ + */ Minrto int `json:"minrto,omitempty"` /** * Multiplier that determines the rate at which slow start increases the size of the TCP transmission window after each acknowledgement of successful transmission. - */ + */ Slowstartincr int `json:"slowstartincr,omitempty"` /** * Maximum number of probes that Citrix ADC can send out in 10 milliseconds, to dynamically learn a service. Citrix ADC probes for the existence of the origin in case of wildcard virtual server or services. - */ + */ Maxdynserverprobes int `json:"maxdynserverprobes,omitempty"` /** * Maximum threshold. After crossing this threshold number of outstanding probes for origin, the Citrix ADC reduces the number of connection retries for probe connections. - */ + */ Synholdfastgiveup int `json:"synholdfastgiveup,omitempty"` /** * Limit the number of client connections (SYN) waiting for status of single probe. Any new SYN packets will be dropped. - */ + */ Maxsynholdperprobe int `json:"maxsynholdperprobe,omitempty"` /** * Limit the number of client connections (SYN) waiting for status of probe system wide. Any new SYN packets will be dropped. - */ + */ Maxsynhold int `json:"maxsynhold,omitempty"` /** * Duration, in seconds, to sample the Maximum Segment Size (MSS) of the services. The Citrix ADC determines the best MSS to set for the virtual server based on this sampling. The argument to enable maximum segment size (MSS) for virtual servers must be enabled. - */ + */ Msslearninterval int `json:"msslearninterval,omitempty"` /** * Frequency, in seconds, at which the virtual servers learn the Maximum segment size (MSS) from the services. The argument to enable maximum segment size (MSS) for virtual servers must be enabled. - */ + */ Msslearndelay int `json:"msslearndelay,omitempty"` /** * Maximum number of connections to hold in the TCP TIME_WAIT state on a packet engine. New connections entering TIME_WAIT state are proactively cleaned up. - */ + */ Maxtimewaitconn int `json:"maxtimewaitconn,omitempty"` /** * Update last activity for KA probes - */ + */ Kaprobeupdatelastactivity string `json:"kaprobeupdatelastactivity,omitempty"` /** * When 'syncookie' is disabled in the TCP profile that is bound to the virtual server or service, and the number of TCP SYN+ACK retransmission by Citrix ADC for that virtual server or service crosses this threshold, the Citrix ADC responds by using the TCP SYN-Cookie mechanism. - */ + */ Maxsynackretx int `json:"maxsynackretx,omitempty"` /** * Detect TCP SYN packet flood and send an SNMP trap. - */ + */ Synattackdetection string `json:"synattackdetection,omitempty"` /** * Flush an existing connection if no memory can be obtained for new connection. @@ -139,84 +139,83 @@ type Nstcpparam struct { Connflushifnomem string `json:"connflushifnomem,omitempty"` /** * Flush an existing connection (as configured through -connFlushIfNoMem FIFO) if the system has more than specified number of connections, and a new connection is to be established. Note: This value may be rounded down to be a whole multiple of the number of packet engines running. - */ + */ Connflushthres int `json:"connflushthres,omitempty"` /** * Accept DATA_FIN/FAST_CLOSE on passive subflow - */ + */ Mptcpconcloseonpassivesf string `json:"mptcpconcloseonpassivesf,omitempty"` /** * Use MPTCP DSS checksum - */ + */ Mptcpchecksum string `json:"mptcpchecksum,omitempty"` /** * The timeout value in seconds for idle mptcp subflows. If this timeout is not set, idle subflows are cleared after cltTimeout of vserver - */ + */ Mptcpsftimeout int `json:"mptcpsftimeout,omitempty"` /** * The minimum idle time value in seconds for idle mptcp subflows after which the sublow is replaced by new incoming subflow if maximum subflow limit is reached. The priority for replacement is given to those subflow without any transaction - */ + */ Mptcpsfreplacetimeout int `json:"mptcpsfreplacetimeout,omitempty"` /** * Maximum number of subflow connections supported in established state per mptcp connection. - */ + */ Mptcpmaxsf int `json:"mptcpmaxsf,omitempty"` /** * Maximum number of subflow connections supported in pending join state per mptcp connection. - */ + */ Mptcpmaxpendingsf int `json:"mptcpmaxpendingsf,omitempty"` /** * Maximum system level pending join connections allowed. - */ + */ Mptcppendingjointhreshold int `json:"mptcppendingjointhreshold,omitempty"` /** * Number of RTO's at subflow level, after which MPCTP should start using other subflow. - */ + */ Mptcprtostoswitchsf int `json:"mptcprtostoswitchsf,omitempty"` /** * When enabled, if NS receives a DSS on a backup subflow, NS will start using that subflow to send data. And if disabled, NS will continue to transmit on current chosen subflow. In case there is some error on a subflow (like RTO's/RST etc.) then NS can choose a backup subflow irrespective of this tunable. - */ + */ Mptcpusebackupondss string `json:"mptcpusebackupondss,omitempty"` /** * Number of RTO's after which a connection should be freed. - */ + */ Tcpmaxretries int `json:"tcpmaxretries,omitempty"` /** * Allow subflows to close immediately on FIN before the DATA_FIN exchange is completed at mptcp level. - */ + */ Mptcpimmediatesfcloseonfin string `json:"mptcpimmediatesfcloseonfin,omitempty"` /** * Allow to send DATA FIN or FAST CLOSE on mptcp connection while sending FIN or RST on the last subflow. - */ + */ Mptcpclosemptcpsessiononlastsfclose string `json:"mptcpclosemptcpsessiononlastsfclose,omitempty"` /** * Allow MPTCP subflows to send TCP RST Reason (MP_TCPRST) Option while sending TCP RST. - */ + */ Mptcpsendsfresetoption string `json:"mptcpsendsfresetoption,omitempty"` /** * Allow to select option ACK or RESET to force the closure of an MPTCP connection abruptly. - */ + */ Mptcpfastcloseoption string `json:"mptcpfastcloseoption,omitempty"` /** * Timeout in seconds after which a new TFO Key is computed for generating TFO Cookie. If zero, the same key is used always. If timeout is less than 120seconds, NS defaults to 120seconds timeout. - */ + */ Tcpfastopencookietimeout int `json:"tcpfastopencookietimeout,omitempty"` /** * Timeout for the server to function in syncookie mode after the synattack. This is valid if TCP syncookie is disabled on the profile and server acts in non syncookie mode by default. - */ + */ Autosyncookietimeout int `json:"autosyncookietimeout,omitempty"` /** * The amount of time in seconds, after which a TCP connnection in the TCP TIME-WAIT state is flushed. - */ + */ Tcpfintimeout int `json:"tcpfintimeout,omitempty"` /** * If enabled, non-negotiated TCP options are removed from the received packet while proxying it. By default, non-negotiated TCP options would be replaced by NOPs in the proxied packets. This option is not applicable for Citrix ADC generated packets. - */ + */ Compacttcpoptionnoop string `json:"compacttcpoptionnoop,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/ns/nstcpprofile.go b/resource/config/nstcpprofile.go similarity index 96% rename from resource/config/ns/nstcpprofile.go rename to resource/config/nstcpprofile.go index 70980cd..d9db891 100644 --- a/resource/config/ns/nstcpprofile.go +++ b/resource/config/nstcpprofile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for TCP profile resource. -*/ + */ type Nstcpprofile struct { /** * Name for a TCP profile. Must begin with a letter, number, or the underscore \(_\) character. Other characters allowed, after the first character, are the hyphen \(-\), period \(.\), hash \(\#\), space \( \), at \(@\), colon \(:\), and equal \(=\) characters. The name of a TCP profile cannot be changed after it is created. @@ -27,11 +27,11 @@ type Nstcpprofile struct { Name string `json:"name,omitempty"` /** * Enable or disable window scaling. - */ + */ Ws string `json:"ws,omitempty"` /** * Enable or disable Selective ACKnowledgement (SACK). - */ + */ Sack string `json:"sack,omitempty"` /** * Factor used to calculate the new window size. @@ -40,63 +40,63 @@ type Nstcpprofile struct { Wsval int `json:"wsval,omitempty"` /** * Enable or disable the Nagle algorithm on TCP connections. - */ + */ Nagle string `json:"nagle,omitempty"` /** * Send immediate positive acknowledgement (ACK) on receipt of TCP packets with PUSH flag. - */ + */ Ackonpush string `json:"ackonpush,omitempty"` /** * Maximum number of octets to allow in a TCP data segment. - */ + */ Mss int `json:"mss,omitempty"` /** * Maximum number of TCP segments allowed in a burst. - */ + */ Maxburst int `json:"maxburst,omitempty"` /** * Initial maximum upper limit on the number of TCP packets that can be outstanding on the TCP link to the server. - */ + */ Initialcwnd int `json:"initialcwnd,omitempty"` /** * Timeout for TCP delayed ACK, in milliseconds. - */ + */ Delayedack int `json:"delayedack,omitempty"` /** * Maximum size of out-of-order packets queue. A value of 0 means no limit. - */ + */ Oooqsize int `json:"oooqsize,omitempty"` /** * Maximum number of TCP packets allowed per maximum segment size (MSS). - */ + */ Maxpktpermss int `json:"maxpktpermss,omitempty"` /** * Maximum limit on the number of packets that should be retransmitted on receiving a partial ACK. - */ + */ Pktperretx int `json:"pktperretx,omitempty"` /** * Minimum retransmission timeout, in milliseconds, specified in 10-millisecond increments (value must yield a whole number if divided by 10). - */ + */ Minrto int `json:"minrto,omitempty"` /** * Multiplier that determines the rate at which slow start increases the size of the TCP transmission window after each acknowledgement of successful transmission. - */ + */ Slowstartincr int `json:"slowstartincr,omitempty"` /** * TCP buffering size, in bytes. - */ + */ Buffersize int `json:"buffersize,omitempty"` /** * Enable or disable the SYNCOOKIE mechanism for TCP handshake with clients. Disabling SYNCOOKIE prevents SYN attack protection on the Citrix ADC. - */ + */ Syncookie string `json:"syncookie,omitempty"` /** * Update last activity for the connection after receiving keep-alive (KA) probes. - */ + */ Kaprobeupdatelastactivity string `json:"kaprobeupdatelastactivity,omitempty"` /** * Set TCP congestion control algorithm. - */ + */ Flavor string `json:"flavor,omitempty"` /** * Enable or disable dynamic receive buffering. When enabled, allows the receive buffer to be adjusted dynamically based on memory and network conditions. @@ -105,153 +105,152 @@ type Nstcpprofile struct { Dynamicreceivebuffering string `json:"dynamicreceivebuffering,omitempty"` /** * Send periodic TCP keep-alive (KA) probes to check if peer is still up. - */ + */ Ka string `json:"ka,omitempty"` /** * Duration, in seconds, for the connection to be idle, before sending a keep-alive (KA) probe. - */ + */ Kaconnidletime int `json:"kaconnidletime,omitempty"` /** * Number of keep-alive (KA) probes to be sent when not acknowledged, before assuming the peer to be down. - */ + */ Kamaxprobes int `json:"kamaxprobes,omitempty"` /** * Time interval, in seconds, before the next keep-alive (KA) probe, if the peer does not respond. - */ + */ Kaprobeinterval int `json:"kaprobeinterval,omitempty"` /** * TCP Send Buffer Size - */ + */ Sendbuffsize int `json:"sendbuffsize,omitempty"` /** * Enable or disable Multipath TCP. - */ + */ Mptcp string `json:"mptcp,omitempty"` /** * Establishing Client Client connection on First data/ Final-ACK / Automatic - */ + */ Establishclientconn string `json:"establishclientconn,omitempty"` /** * Offload TCP segmentation to the NIC. If set to AUTOMATIC, TCP segmentation will be offloaded to the NIC, if the NIC supports it. - */ + */ Tcpsegoffload string `json:"tcpsegoffload,omitempty"` /** * Enable or disable RST window attenuation to protect against spoofing. When enabled, will reply with corrective ACK when a sequence number is invalid. - */ + */ Rstwindowattenuate string `json:"rstwindowattenuate,omitempty"` /** * Enable or disable acceptance of RST that is out of window yet echoes highest ACK sequence number. Useful only in proxy mode. - */ + */ Rstmaxack string `json:"rstmaxack,omitempty"` /** * Enable or disable drop of invalid SYN packets to protect against spoofing. When disabled, established connections will be reset when a SYN packet is received. - */ + */ Spoofsyndrop string `json:"spoofsyndrop,omitempty"` /** * Enable or disable TCP Explicit Congestion Notification. - */ + */ Ecn string `json:"ecn,omitempty"` /** * Enable or disable silently dropping the data on Pre-Established subflow. When enabled, DSS data packets are dropped silently instead of dropping the connection when data is received on pre established subflow. - */ + */ Mptcpdropdataonpreestsf string `json:"mptcpdropdataonpreestsf,omitempty"` /** * Enable or disable Multipath TCP fastopen. When enabled, DSS data packets are accepted before receiving the third ack of SYN handshake. - */ + */ Mptcpfastopen string `json:"mptcpfastopen,omitempty"` /** * MPTCP session timeout in seconds. If this value is not set, idle MPTCP sessions are flushed after vserver's client idle timeout. - */ + */ Mptcpsessiontimeout int `json:"mptcpsessiontimeout,omitempty"` /** * Enable or Disable TCP Timestamp option (RFC 1323) - */ + */ Timestamp string `json:"timestamp,omitempty"` /** * Enable or disable DSACK. - */ + */ Dsack string `json:"dsack,omitempty"` /** * Enable or disable ACK Aggregation. - */ + */ Ackaggregation string `json:"ackaggregation,omitempty"` /** * Enable or disable FRTO (Forward RTO-Recovery). - */ + */ Frto string `json:"frto,omitempty"` /** * TCP Maximum Congestion Window. - */ + */ Maxcwnd int `json:"maxcwnd,omitempty"` /** * Enable or disable FACK (Forward ACK). - */ + */ Fack string `json:"fack,omitempty"` /** * TCP Optimization modes TRANSPARENT / ENDPOINT. - */ + */ Tcpmode string `json:"tcpmode,omitempty"` /** * Enable or disable TCP Fastopen. When enabled, NS can receive or send Data in SYN or SYN-ACK packets. - */ + */ Tcpfastopen string `json:"tcpfastopen,omitempty"` /** * Enable or disable CUBIC Hystart - */ + */ Hystart string `json:"hystart,omitempty"` /** * TCP dupack threshold. - */ + */ Dupackthresh int `json:"dupackthresh,omitempty"` /** * TCP Burst Rate Control DISABLED/FIXED/DYNAMIC. FIXED requires a TCP rate to be set. - */ + */ Burstratecontrol string `json:"burstratecontrol,omitempty"` /** * TCP connection payload send rate in Kb/s - */ + */ Tcprate int `json:"tcprate,omitempty"` /** * Maximum connection queue size in bytes, when BurstRateControl is used - */ + */ Rateqmax int `json:"rateqmax,omitempty"` /** * Silently drop tcp half closed connections on idle timeout - */ + */ Drophalfclosedconnontimeout string `json:"drophalfclosedconnontimeout,omitempty"` /** * Silently drop tcp established connections on idle timeout - */ + */ Dropestconnontimeout string `json:"dropestconnontimeout,omitempty"` /** * Apply Adaptive TCP optimizations - */ + */ Applyadaptivetcp string `json:"applyadaptivetcp,omitempty"` /** * TCP FastOpen Cookie size. This accepts only even numbers. Odd number is trimmed down to nearest even number. - */ + */ Tcpfastopencookiesize int `json:"tcpfastopencookiesize,omitempty"` /** * TCP tail loss probe optimizations - */ + */ Taillossprobe string `json:"taillossprobe,omitempty"` /** * Client IP in TCP options - */ + */ Clientiptcpoption string `json:"clientiptcpoption,omitempty"` /** * ClientIP TCP Option number - */ + */ Clientiptcpoptionnumber int `json:"clientiptcpoptionnumber,omitempty"` /** * Set C bit in MP-CAPABLE Syn-Ack sent by Citrix ADC - */ + */ Mpcapablecbit string `json:"mpcapablecbit,omitempty"` //------- Read only Parameter ---------; - Refcnt string `json:"refcnt,omitempty"` + Refcnt string `json:"refcnt,omitempty"` Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/nstestlicense.go b/resource/config/nstestlicense.go new file mode 100644 index 0000000..c46a82c --- /dev/null +++ b/resource/config/nstestlicense.go @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for testlicense resource. + */ +type Nstestlicense struct { + + //------- Read only Parameter ---------; + + Wl string `json:"wl,omitempty"` + Sp string `json:"sp,omitempty"` + Lb string `json:"lb,omitempty"` + Cs string `json:"cs,omitempty"` + Cr string `json:"cr,omitempty"` + Sc string `json:"sc,omitempty"` + Cmp string `json:"cmp,omitempty"` + Delta string `json:"delta,omitempty"` + Pq string `json:"pq,omitempty"` + Ssl string `json:"ssl,omitempty"` + Gslb string `json:"gslb,omitempty"` + Gslbp string `json:"gslbp,omitempty"` + Hdosp string `json:"hdosp,omitempty"` + Routing string `json:"routing,omitempty"` + Cf string `json:"cf,omitempty"` + Contentaccelerator string `json:"contentaccelerator,omitempty"` + Ic string `json:"ic,omitempty"` + Sslvpn string `json:"sslvpn,omitempty"` + Fsslvpnusers string `json:"f_sslvpn_users,omitempty"` + Ficausers string `json:"f_ica_users,omitempty"` + Aaa string `json:"aaa,omitempty"` + Ospf string `json:"ospf,omitempty"` + Rip string `json:"rip,omitempty"` + Bgp string `json:"bgp,omitempty"` + Rewrite string `json:"rewrite,omitempty"` + Ipv6pt string `json:"ipv6pt,omitempty"` + Appfw string `json:"appfw,omitempty"` + Responder string `json:"responder,omitempty"` + Agee string `json:"agee,omitempty"` + Nsxn string `json:"nsxn,omitempty"` + Htmlinjection string `json:"htmlinjection,omitempty"` + Modelid string `json:"modelid,omitempty"` + Push string `json:"push,omitempty"` + Wionns string `json:"wionns,omitempty"` + Appflow string `json:"appflow,omitempty"` + Cloudbridge string `json:"cloudbridge,omitempty"` + Cloudbridgeappliance string `json:"cloudbridgeappliance,omitempty"` + Cloudextenderappliance string `json:"cloudextenderappliance,omitempty"` + Isis string `json:"isis,omitempty"` + Cluster string `json:"cluster,omitempty"` + Ch string `json:"ch,omitempty"` + Appqoe string `json:"appqoe,omitempty"` + Appflowica string `json:"appflowica,omitempty"` + Isstandardlic string `json:"isstandardlic,omitempty"` + Isenterpriselic string `json:"isenterpriselic,omitempty"` + Isplatinumlic string `json:"isplatinumlic,omitempty"` + Issgwylic string `json:"issgwylic,omitempty"` + Isswglic string `json:"isswglic,omitempty"` + Feo string `json:"feo,omitempty"` + Lsn string `json:"lsn,omitempty"` + Licensingmode string `json:"licensingmode,omitempty"` + Daystoexpiration string `json:"daystoexpiration,omitempty"` + Rdpproxy string `json:"rdpproxy,omitempty"` + Rep string `json:"rep,omitempty"` + Urlfiltering string `json:"urlfiltering,omitempty"` + Videooptimization string `json:"videooptimization,omitempty"` + Forwardproxy string `json:"forwardproxy,omitempty"` + Sslinterception string `json:"sslinterception,omitempty"` + Remotecontentinspection string `json:"remotecontentinspection,omitempty"` + Adaptivetcp string `json:"adaptivetcp,omitempty"` + Cqa string `json:"cqa,omitempty"` + Bot string `json:"bot,omitempty"` + Apigateway string `json:"apigateway,omitempty"` +} diff --git a/resource/config/ns/nstimeout.go b/resource/config/nstimeout.go similarity index 97% rename from resource/config/ns/nstimeout.go rename to resource/config/nstimeout.go index 74f517f..c031fb6 100644 --- a/resource/config/ns/nstimeout.go +++ b/resource/config/nstimeout.go @@ -12,77 +12,76 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for timeout resource. -*/ + */ type Nstimeout struct { /** * Interval, in seconds, at which the Citrix ADC zombie cleanup process must run. This process cleans up inactive TCP connections. - */ + */ Zombie int `json:"zombie,omitempty"` /** * Client idle timeout (in seconds). If zero, the service-type default value is taken when service is created. - */ + */ Client int `json:"client,omitempty"` /** * Server idle timeout (in seconds). If zero, the service-type default value is taken when service is created. - */ + */ Server int `json:"server,omitempty"` /** * Global idle timeout, in seconds, for client connections of HTTP service type. This value is over ridden by the client timeout that is configured on individual entities. - */ + */ Httpclient int `json:"httpclient,omitempty"` /** * Global idle timeout, in seconds, for server connections of HTTP service type. This value is over ridden by the server timeout that is configured on individual entities. - */ + */ Httpserver int `json:"httpserver,omitempty"` /** * Global idle timeout, in seconds, for non-HTTP client connections of TCP service type. This value is over ridden by the client timeout that is configured on individual entities. - */ + */ Tcpclient int `json:"tcpclient,omitempty"` /** * Global idle timeout, in seconds, for non-HTTP server connections of TCP service type. This value is over ridden by the server timeout that is configured on entities. - */ + */ Tcpserver int `json:"tcpserver,omitempty"` /** * Global idle timeout, in seconds, for non-TCP client connections. This value is over ridden by the client timeout that is configured on individual entities. - */ + */ Anyclient int `json:"anyclient,omitempty"` /** * Global idle timeout, in seconds, for non TCP server connections. This value is over ridden by the server timeout that is configured on individual entities. - */ + */ Anyserver int `json:"anyserver,omitempty"` /** * Global idle timeout, in seconds, for TCP client connections. This value takes precedence over entity level timeout settings (vserver/service). This is applicable only to transport protocol TCP. - */ + */ Anytcpclient int `json:"anytcpclient,omitempty"` /** * Global idle timeout, in seconds, for TCP server connections. This value takes precedence over entity level timeout settings ( vserver/service). This is applicable only to transport protocol TCP. - */ + */ Anytcpserver int `json:"anytcpserver,omitempty"` /** * Idle timeout, in seconds, for connections that are in TCP half-closed state. - */ + */ Halfclose int `json:"halfclose,omitempty"` /** * Interval at which the zombie clean-up process for non-TCP connections should run. Inactive IP NAT connections will be cleaned up. - */ + */ Nontcpzombie int `json:"nontcpzombie,omitempty"` /** * Alternative idle timeout, in seconds, for closed TCP NATPCB connections. - */ + */ Reducedfintimeout int `json:"reducedfintimeout,omitempty"` /** * Timer interval, in seconds, for abruptly terminated TCP NATPCB connections. - */ + */ Reducedrsttimeout int `json:"reducedrsttimeout,omitempty"` /** * Timer interval, in seconds, for new TCP NATPCB connections on which no data was received. - */ + */ Newconnidletimeout int `json:"newconnidletimeout,omitempty"` - } diff --git a/resource/config/ns/nstimer.go b/resource/config/nstimer.go similarity index 96% rename from resource/config/ns/nstimer.go rename to resource/config/nstimer.go index 2206428..9b21310 100644 --- a/resource/config/ns/nstimer.go +++ b/resource/config/nstimer.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Timer resource. -*/ + */ type Nstimer struct { /** * Timer name. - */ + */ Name string `json:"name,omitempty"` /** * The frequency at which the policies bound to this timer are invoked. The minimum value is 20 msec. The maximum value is 20940 in seconds and 349 in minutes - */ + */ Interval int `json:"interval,omitempty"` /** * Timer interval unit - */ + */ Unit string `json:"unit,omitempty"` /** * Comments associated with this timer. - */ + */ Comment string `json:"comment,omitempty"` /** * The new name of the timer. - */ + */ Newname string `json:"newname,omitempty"` - } diff --git a/resource/config/ns/nstimer_autoscalepolicy_binding.go b/resource/config/nstimer_autoscalepolicy_binding.go similarity index 97% rename from resource/config/ns/nstimer_autoscalepolicy_binding.go rename to resource/config/nstimer_autoscalepolicy_binding.go index 5b782e9..08e5208 100644 --- a/resource/config/ns/nstimer_autoscalepolicy_binding.go +++ b/resource/config/nstimer_autoscalepolicy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the autoscalepolicy that can be bound to nstimer. -*/ + */ type Nstimerautoscalepolicybinding struct { /** * The timer policy associated with the timer. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the timer policy. - */ + */ Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the vserver which provides the context for the rule in timer policy. When not specified it is treated as a Global Default context. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Denotes the sample size. Sample size value of 'x' means that previous '(x - 1)' policy's rule evaluation results and the current evaluation result are present with the binding. For example, sample size of 10 means that there is a state of previous 9 policy evaluation results and also the current policy evaluation result. - */ + */ Samplesize int `json:"samplesize,omitempty"` /** * Denotes the threshold. If the rule of the policy in the binding relation evaluates 'threshold size' number of times in 'sample size' to true, then the corresponding action is taken. Its value needs to be less than or equal to the sample size value. - */ + */ Threshold int `json:"threshold,omitempty"` /** * Timer name. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nstimer_binding.go b/resource/config/nstimer_binding.go similarity index 91% rename from resource/config/ns/nstimer_binding.go rename to resource/config/nstimer_binding.go index 41b2e67..d473702 100644 --- a/resource/config/ns/nstimer_binding.go +++ b/resource/config/nstimer_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** -* Binding object which returns the resources bound to nstimer_binding. -*/ +* Binding object which returns the resources bound to nstimer_binding. + */ type Nstimerbinding struct { /** - * Timer name.
Minimum value = - */ + * Timer name.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nstimer_policy_binding.go b/resource/config/nstimer_policy_binding.go similarity index 97% rename from resource/config/ns/nstimer_policy_binding.go rename to resource/config/nstimer_policy_binding.go index 447e62c..0050d80 100644 --- a/resource/config/ns/nstimer_policy_binding.go +++ b/resource/config/nstimer_policy_binding.go @@ -12,42 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the policy that can be bound to nstimer. -*/ + */ type Nstimerpolicybinding struct { /** * The timer policy associated with the timer. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Specifies the priority of the timer policy. - */ + */ Priority uint32 `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. - */ + */ Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` /** * Name of the vserver which provides the context for the rule in timer policy. When not specified it is treated as a Global Default context. - */ + */ Vserver string `json:"vserver,omitempty"` /** * Denotes the sample size. Sample size value of 'x' means that previous '(x - 1)' policy's rule evaluation results and the current evaluation result are present with the binding. For example, sample size of 10 means that there is a state of previous 9 policy evaluation results and also the current policy evaluation result. - */ + */ Samplesize uint32 `json:"samplesize,omitempty"` /** * Denotes the threshold. If the rule of the policy in the binding relation evaluates 'threshold size' number of times in 'sample size' to true, then the corresponding action is taken. Its value needs to be less than or equal to the sample size value. - */ + */ Threshold uint32 `json:"threshold,omitempty"` /** * Timer name. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nstimezone.go b/resource/config/nstimezone.go similarity index 97% rename from resource/config/ns/nstimezone.go rename to resource/config/nstimezone.go index 3ab2e9d..d828156 100644 --- a/resource/config/ns/nstimezone.go +++ b/resource/config/nstimezone.go @@ -12,12 +12,10 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package ns + */ +package config type Nstimezone struct { Value string `json:"value,omitempty"` - } diff --git a/resource/config/basic/nstrace.go b/resource/config/nstrace.go similarity index 94% rename from resource/config/basic/nstrace.go rename to resource/config/nstrace.go index 4de8e3b..a21f925 100644 --- a/resource/config/basic/nstrace.go +++ b/resource/config/nstrace.go @@ -12,25 +12,25 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for nstrace operations resource. -*/ + */ type Nstrace struct { /** * Number of files to be generated in cycle. - */ + */ Nf int `json:"nf,omitempty"` /** * Time per file (sec). - */ + */ Time int `json:"time,omitempty"` /** * Size of the captured data. Set 0 for full packet trace. - */ + */ Size int `json:"size,omitempty"` /** * Capturing mode for trace. Mode can be any of the following values or combination of these values: @@ -43,20 +43,20 @@ type Nstrace struct { NS_FR_TX TX/TXB packets are not captured in flow receiver. MPTCP MPTCP master flow HTTP_QUIC HTTP-over-QUIC stream data and stream events - Default mode: NEW_RX TXB + Default mode: NEW_RX TXB */ Mode []string `json:"mode,omitempty"` /** * Use separate trace files for each interface. Works only with cap format. - */ + */ Pernic string `json:"pernic,omitempty"` /** * Name of the trace file. - */ + */ Filename string `json:"filename,omitempty"` /** * ID for the trace file name for uniqueness. Should be used only with -name option. - */ + */ Fileid string `json:"fileid,omitempty"` /** * Filter expression for nstrace. Maximum length of filter is 255 and it can be of following format: @@ -117,10 +117,10 @@ type Nstrace struct { = [ EQ | NE | GT | GE | LT | LE | BETWEEN ] = A valid core ID. - example = CONNECTION.PPEID.EQ(0) + example = CONNECTION.PPEID.EQ(0) = SVCNAME - = [ EQ | NE | CONTAINS | STARTSWITH - | ENDSWITH ] + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] = A valid text string. example = CONNECTION.SVCNAME.EQ("name") = LB_VSERVER.NAME @@ -153,11 +153,11 @@ type Nstrace struct { = A valid traffic domain ID. example = CONNECTION.TRAFFIC_DOMAIN_ID.EQ(0) eg: start nstrace -filter "CONNECTION.SRCIP.EQ(127.0.0.1) || (CONNECTION.SVCNAME.NE("s1") && CONNECTION.SRCPORT.EQ(80))" - The filter expression should be given in double quotes. + The filter expression should be given in double quotes. common use cases: Trace capturing full sized traffic from/to ip 10.102.44.111, excluding loopback traffic start nstrace -size 0 -filter "CONNECTION.IP.NE(127.0.0.1) && CONNECTION.IP.EQ(10.102.44.111)" - Trace capturing all traffic to (terminating at) port 80 or 443 + Trace capturing all traffic to (terminating at) port 80 or 443 start nstrace -size 0 -filter "CONNECTION.DSTPORT.EQ(443) || CONNECTION.DSTPORT.EQ(80)" Trace capturing all backend traffic specific to service service1 along with corresponding client side traffic start nstrace -size 0 -filter "CONNECTION.SVCNAME.EQ("service1")" -link ENABLED @@ -166,44 +166,44 @@ type Nstrace struct { Trace capturing all traffic specific through vlan 2 start nstrace -filter "CONNECTION.VLANID.EQ(2)" Trace capturing all frontend (client side) traffic specific to lb vserver vserver1 along with corresponding server side traffic - start nstrace -size 0 -filter "CONNECTION.LB_VSERVER.NAME.EQ("vserver1")" -link ENABLED + start nstrace -size 0 -filter "CONNECTION.LB_VSERVER.NAME.EQ("vserver1")" -link ENABLED */ Filter string `json:"filter,omitempty"` /** * Includes filtered connection's peer traffic. - */ + */ Link string `json:"link,omitempty"` /** * Nodes on which tracing is started. - */ + */ Nodes []int `json:"nodes,omitempty"` /** * File size, in MB, treshold for rollover. If free disk space is less than 2GB at the time of rollover, trace will stop - */ + */ Filesize int `json:"filesize,omitempty"` /** * Format in which trace will be generated - */ + */ Traceformat string `json:"traceformat,omitempty"` /** * Specify how traces across PE's are merged - */ + */ Merge string `json:"merge,omitempty"` /** * Enable or disable runtime temp file cleanup - */ + */ Doruntimecleanup string `json:"doruntimecleanup,omitempty"` /** * Number of 16KB trace buffers - */ + */ Tracebuffers int `json:"tracebuffers,omitempty"` /** * skip RPC packets - */ + */ Skiprpc string `json:"skiprpc,omitempty"` /** * skip local SSH packets - */ + */ Skiplocalssh string `json:"skiplocalssh,omitempty"` /** * Capture SSL Master keys. Master keys will not be captured on FIPS machine. @@ -212,21 +212,20 @@ type Nstrace struct { Capsslkeys string `json:"capsslkeys,omitempty"` /** * Captures Dropped Packets if set to ENABLED. - */ + */ Capdroppkt string `json:"capdroppkt,omitempty"` /** * Logs packets in appliance's memory and dumps the trace file on stopping the nstrace operation - */ + */ Inmemorytrace string `json:"inmemorytrace,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - State string `json:"state,omitempty"` - Scope string `json:"scope,omitempty"` + State string `json:"state,omitempty"` + Scope string `json:"scope,omitempty"` Tracelocation string `json:"tracelocation,omitempty"` - } diff --git a/resource/config/ns/nstrafficdomain.go b/resource/config/nstrafficdomain.go similarity index 97% rename from resource/config/ns/nstrafficdomain.go rename to resource/config/nstrafficdomain.go index d91f896..8eebac1 100644 --- a/resource/config/ns/nstrafficdomain.go +++ b/resource/config/nstrafficdomain.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Traffic Domain resource. -*/ + */ type Nstrafficdomain struct { /** * Integer value that uniquely identifies a traffic domain. - */ + */ Td int `json:"td,omitempty"` /** * Name of traffic domain being added. - */ + */ Aliasname string `json:"aliasname,omitempty"` /** * Associate the traffic domain with a VMAC address instead of with VLANs. The Citrix ADC then sends the VMAC address of the traffic domain in all responses to ARP queries for network entities in that domain. As a result, the ADC can segregate subsequent incoming traffic for this traffic domain on the basis of the destination MAC address, because the destination MAC address is the VMAC address of the traffic domain. After creating entities on a traffic domain, you can easily manage and monitor them by performing traffic domain level operations. - */ + */ Vmac string `json:"vmac,omitempty"` //------- Read only Parameter ---------; State string `json:"state,omitempty"` - } diff --git a/resource/config/ns/nstrafficdomain_binding.go b/resource/config/nstrafficdomain_binding.go similarity index 95% rename from resource/config/ns/nstrafficdomain_binding.go rename to resource/config/nstrafficdomain_binding.go index c63e10d..94a27b0 100644 --- a/resource/config/ns/nstrafficdomain_binding.go +++ b/resource/config/nstrafficdomain_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** -* Binding object which returns the resources bound to nstrafficdomain_binding. -*/ +* Binding object which returns the resources bound to nstrafficdomain_binding. + */ type Nstrafficdomainbinding struct { /** * Integer value that uniquely identifies a traffic domain.
Minimum value = 1
Maximum value = 4094 - */ + */ Td int `json:"td,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nstrafficdomain_bridgegroup_binding.go b/resource/config/nstrafficdomain_bridgegroup_binding.go similarity index 96% rename from resource/config/ns/nstrafficdomain_bridgegroup_binding.go rename to resource/config/nstrafficdomain_bridgegroup_binding.go index b2d041c..efc0834 100644 --- a/resource/config/ns/nstrafficdomain_bridgegroup_binding.go +++ b/resource/config/nstrafficdomain_bridgegroup_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the bridgegroup that can be bound to nstrafficdomain. -*/ + */ type Nstrafficdomainbridgegroupbinding struct { /** * ID of the configured bridge to bind to this traffic domain. More than one bridge group can be bound to a traffic domain, but the same bridge group cannot be a part of multiple traffic domains. - */ + */ Bridgegroup int `json:"bridgegroup,omitempty"` /** * Integer value that uniquely identifies a traffic domain. - */ + */ Td int `json:"td,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nstrafficdomain_vlan_binding.go b/resource/config/nstrafficdomain_vlan_binding.go similarity index 96% rename from resource/config/ns/nstrafficdomain_vlan_binding.go rename to resource/config/nstrafficdomain_vlan_binding.go index eb609c7..bac18e7 100644 --- a/resource/config/ns/nstrafficdomain_vlan_binding.go +++ b/resource/config/nstrafficdomain_vlan_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the vlan that can be bound to nstrafficdomain. -*/ + */ type Nstrafficdomainvlanbinding struct { /** * ID of the VLAN to bind to this traffic domain. More than one VLAN can be bound to a traffic domain, but the same VLAN cannot be a part of multiple traffic domains. - */ + */ Vlan int `json:"vlan,omitempty"` /** * Integer value that uniquely identifies a traffic domain. - */ + */ Td int `json:"td,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nstrafficdomain_vxlan_binding.go b/resource/config/nstrafficdomain_vxlan_binding.go similarity index 96% rename from resource/config/ns/nstrafficdomain_vxlan_binding.go rename to resource/config/nstrafficdomain_vxlan_binding.go index ac1e203..51bb196 100644 --- a/resource/config/ns/nstrafficdomain_vxlan_binding.go +++ b/resource/config/nstrafficdomain_vxlan_binding.go @@ -12,22 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Binding class showing the vxlan that can be bound to nstrafficdomain. -*/ + */ type Nstrafficdomainvxlanbinding struct { /** * ID of the VXLAN to bind to this traffic domain. More than one VXLAN can be bound to a traffic domain, but the same VXLAN cannot be a part of multiple traffic domains. - */ + */ Vxlan int `json:"vxlan,omitempty"` /** * Integer value that uniquely identifies a traffic domain. - */ + */ Td int `json:"td,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/ns/nsvariable.go b/resource/config/nsvariable.go similarity index 99% rename from resource/config/ns/nsvariable.go rename to resource/config/nsvariable.go index dd9498f..27ad00d 100644 --- a/resource/config/ns/nsvariable.go +++ b/resource/config/nsvariable.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for variable resource. -*/ + */ type Nsvariable struct { /** * Variable name. This follows the same syntax rules as other expression entity names: @@ -76,19 +76,18 @@ type Nsvariable struct { Ifnovalue string `json:"ifnovalue,omitempty"` /** * Initialization value for this variable, to which a singleton variable or map entry will be set if it is referenced before an assignment action has assigned it a value. If the singleton variable or map entry already has been assigned a value, setting this parameter will have no effect on that variable value. Default: 0 for ulong, NULL for text - */ + */ Init string `json:"init,omitempty"` /** * Value expiration in seconds. If the value is not referenced within the expiration period it will be deleted. 0 (the default) means no expiration. - */ + */ Expires int `json:"expires,omitempty"` /** * Comments associated with this variable. - */ + */ Comment string `json:"comment,omitempty"` //------- Read only Parameter ---------; Referencecount string `json:"referencecount,omitempty"` - } diff --git a/resource/config/ns/nsversion.go b/resource/config/nsversion.go similarity index 92% rename from resource/config/ns/nsversion.go rename to resource/config/nsversion.go index 645eaf2..715cf55 100644 --- a/resource/config/ns/nsversion.go +++ b/resource/config/nsversion.go @@ -12,22 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for version resource. -*/ + */ type Nsversion struct { /** * Installed version - */ + */ Installedversion bool `json:"installedversion,omitempty"` //------- Read only Parameter ---------; Version string `json:"version,omitempty"` - Mode string `json:"mode,omitempty"` - + Mode string `json:"mode,omitempty"` } diff --git a/resource/config/ns/nsvpxparam.go b/resource/config/nsvpxparam.go similarity index 88% rename from resource/config/ns/nsvpxparam.go rename to resource/config/nsvpxparam.go index b54d56e..a138ccd 100644 --- a/resource/config/ns/nsvpxparam.go +++ b/resource/config/nsvpxparam.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for "VPX" resource. -*/ + */ type Nsvpxparam struct { /** * This setting applicable in virtual appliances, to move master clock source cpu from management cpu cpu0 to cpu1 ie PE0. @@ -42,15 +42,14 @@ type Nsvpxparam struct { Cpuyield string `json:"cpuyield,omitempty"` /** * ID of the cluster node for which you are setting the cpuyield. It can be configured only through the cluster IP address. - */ + */ Ownernode int `json:"ownernode,omitempty"` //------- Read only Parameter ---------; - Vpxenvironment string `json:"vpxenvironment,omitempty"` - Memorystatus string `json:"memorystatus,omitempty"` - Cloudproductcode string `json:"cloudproductcode,omitempty"` - Vpxoemcode string `json:"vpxoemcode,omitempty"` + Vpxenvironment string `json:"vpxenvironment,omitempty"` + Memorystatus string `json:"memorystatus,omitempty"` + Cloudproductcode string `json:"cloudproductcode,omitempty"` + Vpxoemcode string `json:"vpxoemcode,omitempty"` Technicalsupportpin string `json:"technicalsupportpin,omitempty"` - } diff --git a/resource/config/ns/nsweblogparam.go b/resource/config/nsweblogparam.go similarity index 97% rename from resource/config/ns/nsweblogparam.go rename to resource/config/nsweblogparam.go index 7234ffa..3c9e51f 100644 --- a/resource/config/ns/nsweblogparam.go +++ b/resource/config/nsweblogparam.go @@ -12,30 +12,29 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for Web log parameters resource. -*/ + */ type Nsweblogparam struct { /** * Buffer size, in MB, allocated for log transaction data on the system. The maximum value is limited to the memory available on the system. - */ + */ Buffersizemb int `json:"buffersizemb,omitempty"` /** * Name(s) of HTTP request headers whose values should be exported by the Web Logging feature. - */ + */ Customreqhdrs []string `json:"customreqhdrs,omitempty"` /** * Name(s) of HTTP response headers whose values should be exported by the Web Logging feature. - */ + */ Customrsphdrs []string `json:"customrsphdrs,omitempty"` //------- Read only Parameter ---------; Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/ns/nsxmlnamespace.go b/resource/config/nsxmlnamespace.go similarity index 96% rename from resource/config/ns/nsxmlnamespace.go rename to resource/config/nsxmlnamespace.go index e75fd52..4dd85f1 100644 --- a/resource/config/ns/nsxmlnamespace.go +++ b/resource/config/nsxmlnamespace.go @@ -12,25 +12,24 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ns +package config /** * Configuration for XML namespace resource. -*/ + */ type Nsxmlnamespace struct { /** * XML prefix. - */ + */ Prefix string `json:"prefix,omitempty"` /** * Expanded namespace for which the XML prefix is provided. - */ + */ Namespace string `json:"Namespace,omitempty"` /** * Description for the prefix. - */ + */ Description string `json:"description,omitempty"` - } diff --git a/resource/config/ntp/ntpparam.go b/resource/config/ntpparam.go similarity index 97% rename from resource/config/ntp/ntpparam.go rename to resource/config/ntpparam.go index 1fb6110..bda3f7c 100644 --- a/resource/config/ntp/ntpparam.go +++ b/resource/config/ntpparam.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ntp +package config /** * Configuration for NTP parameter resource. -*/ + */ type Ntpparam struct { /** * Apply NTP authentication, which enables the NTP client (Citrix ADC) to verify that the server is in fact known and trusted. - */ + */ Authentication string `json:"authentication,omitempty"` /** * Key identifiers that are trusted for server authentication with symmetric key cryptography in the keys file. - */ + */ Trustedkey []int `json:"trustedkey,omitempty"` /** * Autokey protocol requires the keys to be refreshed periodically. This parameter specifies the interval between regenerations of new session keys. In seconds, expressed as a power of 2. - */ + */ Autokeylogsec int `json:"autokeylogsec,omitempty"` /** * Interval between re-randomizations of the autokey seeds to prevent brute-force attacks on the autokey algorithms. - */ + */ Revokelogsec int `json:"revokelogsec,omitempty"` - } diff --git a/resource/config/ntp/ntpserver.go b/resource/config/ntpserver.go similarity index 97% rename from resource/config/ntp/ntpserver.go rename to resource/config/ntpserver.go index f1bf003..3944d36 100644 --- a/resource/config/ntp/ntpserver.go +++ b/resource/config/ntpserver.go @@ -12,41 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ntp +package config /** * Configuration for NTP server resource. -*/ + */ type Ntpserver struct { /** * IP address of the NTP server. - */ + */ Serverip string `json:"serverip,omitempty"` /** * Fully qualified domain name of the NTP server. - */ + */ Servername string `json:"servername,omitempty"` /** * Minimum time after which the NTP server must poll the NTP messages. In seconds, expressed as a power of 2. - */ + */ Minpoll int `json:"minpoll,omitempty"` /** * Maximum time after which the NTP server must poll the NTP messages. In seconds, expressed as a power of 2. - */ + */ Maxpoll int `json:"maxpoll,omitempty"` /** * Use the Autokey protocol for key management for this server, with the cryptographic values (for example, symmetric key, host and public certificate files, and sign key) generated by the ntp-keygen utility. To require authentication for communication with the server, you must set either the value of this parameter or the key parameter. - */ + */ Autokey bool `json:"autokey,omitempty"` /** * Key to use for encrypting authentication fields. All packets sent to and received from the server must include authentication fields encrypted by using this key. To require authentication for communication with the server, you must set either the value of this parameter or the autokey parameter. - */ + */ Key int `json:"key,omitempty"` /** * Preferred NTP server. The Citrix ADC chooses this NTP server for time synchronization among a set of correctly operating hosts. - */ + */ Preferredntpserver string `json:"preferredntpserver,omitempty"` - } diff --git a/resource/config/ntp/ntpstatus.go b/resource/config/ntpstatus.go similarity index 97% rename from resource/config/ntp/ntpstatus.go rename to resource/config/ntpstatus.go index 0f7006b..74224d0 100644 --- a/resource/config/ntp/ntpstatus.go +++ b/resource/config/ntpstatus.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ntp +package config /** * Configuration for ntp status resource. -*/ + */ type Ntpstatus struct { //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/ntp/ntpsync.go b/resource/config/ntpsync.go similarity index 97% rename from resource/config/ntp/ntpsync.go rename to resource/config/ntpsync.go index ca026d6..fd2d561 100644 --- a/resource/config/ntp/ntpsync.go +++ b/resource/config/ntpsync.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package ntp +package config /** * Configuration for NTP sync resource. -*/ + */ type Ntpsync struct { //------- Read only Parameter ---------; State string `json:"state,omitempty"` - } diff --git a/resource/config/network/onlinkipv6prefix.go b/resource/config/onlinkipv6prefix.go similarity index 92% rename from resource/config/network/onlinkipv6prefix.go rename to resource/config/onlinkipv6prefix.go index 3bed085..a835dfa 100644 --- a/resource/config/network/onlinkipv6prefix.go +++ b/resource/config/onlinkipv6prefix.go @@ -12,46 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for on-link IPv6 global prefixes for Router Advertisment resource. -*/ + */ type Onlinkipv6prefix struct { /** * Onlink prefixes for RA messages. - */ + */ Ipv6prefix string `json:"ipv6prefix,omitempty"` /** * RA Prefix onlink flag. - */ + */ Onlinkprefix string `json:"onlinkprefix,omitempty"` /** * RA Prefix Autonomus flag. - */ + */ Autonomusprefix string `json:"autonomusprefix,omitempty"` /** * Depricate the prefix. - */ + */ Depricateprefix string `json:"depricateprefix,omitempty"` /** * RA Prefix Autonomus flag. - */ + */ Decrementprefixlifetimes string `json:"decrementprefixlifetimes,omitempty"` /** * Valide life time of the prefix, in seconds. - */ + */ Prefixvalidelifetime int `json:"prefixvalidelifetime,omitempty"` /** * Preferred life time of the prefix, in seconds. - */ + */ Prefixpreferredlifetime int `json:"prefixpreferredlifetime,omitempty"` //------- Read only Parameter ---------; - Prefixcurrvalidelft string `json:"prefixcurrvalidelft,omitempty"` + Prefixcurrvalidelft string `json:"prefixcurrvalidelft,omitempty"` Prefixcurrpreferredlft string `json:"prefixcurrpreferredlft,omitempty"` - } diff --git a/resource/config/pcp/pcpmap.go b/resource/config/pcpmap.go similarity index 63% rename from resource/config/pcp/pcpmap.go rename to resource/config/pcpmap.go index d5df7c5..b0425f5 100644 --- a/resource/config/pcp/pcpmap.go +++ b/resource/config/pcpmap.go @@ -12,32 +12,31 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package pcp +package config /** * Configuration for server resource. -*/ + */ type Pcpmap struct { /** * Type of sessions to be displayed. - */ + */ Nattype string `json:"nattype,omitempty"` //------- Read only Parameter ---------; - Pcpsrcip string `json:"pcpsrcip,omitempty"` - Subscrip string `json:"subscrip,omitempty"` - Pcpsrcport string `json:"pcpsrcport,omitempty"` - Pcpdstip string `json:"pcpdstip,omitempty"` - Pcpdstport string `json:"pcpdstport,omitempty"` - Pcpnatip string `json:"pcpnatip,omitempty"` - Pcpnatport string `json:"pcpnatport,omitempty"` + Pcpsrcip string `json:"pcpsrcip,omitempty"` + Subscrip string `json:"subscrip,omitempty"` + Pcpsrcport string `json:"pcpsrcport,omitempty"` + Pcpdstip string `json:"pcpdstip,omitempty"` + Pcpdstport string `json:"pcpdstport,omitempty"` + Pcpnatip string `json:"pcpnatip,omitempty"` + Pcpnatport string `json:"pcpnatport,omitempty"` Pcpprotocol string `json:"pcpprotocol,omitempty"` - Pcpaddr string `json:"pcpaddr,omitempty"` - Pcpnounce string `json:"pcpnounce,omitempty"` - Pcprefcnt string `json:"pcprefcnt,omitempty"` + Pcpaddr string `json:"pcpaddr,omitempty"` + Pcpnounce string `json:"pcpnounce,omitempty"` + Pcprefcnt string `json:"pcprefcnt,omitempty"` Pcplifetime string `json:"pcplifetime,omitempty"` - } diff --git a/resource/config/pcp/pcpprofile.go b/resource/config/pcpprofile.go similarity index 97% rename from resource/config/pcp/pcpprofile.go rename to resource/config/pcpprofile.go index 24b257a..93df027 100644 --- a/resource/config/pcp/pcpprofile.go +++ b/resource/config/pcpprofile.go @@ -12,41 +12,40 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package pcp +package config /** * Configuration for PCP Profile resource. -*/ + */ type Pcpprofile struct { /** * Name for the PCP Profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my pcpProfile" or my pcpProfile). - */ + */ Name string `json:"name,omitempty"` /** * This argument is for enabling/disabling the MAP opcode of current PCP Profile - */ + */ Mapping string `json:"mapping,omitempty"` /** * This argument is for enabling/disabling the PEER opcode of current PCP Profile - */ + */ Peer string `json:"peer,omitempty"` /** * Integer value that identify the minimum mapping lifetime (in seconds) for a pcp profile. default(120s) - */ + */ Minmaplife int `json:"minmaplife,omitempty"` /** * Integer value that identify the maximum mapping lifetime (in seconds) for a pcp profile. default(86400s = 24Hours). - */ + */ Maxmaplife int `json:"maxmaplife,omitempty"` /** * Integer value that identify the number announce message to be send. - */ + */ Announcemulticount int `json:"announcemulticount,omitempty"` /** * This argument is for enabling/disabling the THIRD PARTY opcode of current PCP Profile - */ + */ Thirdparty string `json:"thirdparty,omitempty"` - } diff --git a/resource/config/pcp/pcpserver.go b/resource/config/pcpserver.go similarity index 96% rename from resource/config/pcp/pcpserver.go rename to resource/config/pcpserver.go index 4f517e2..17d9bfb 100644 --- a/resource/config/pcp/pcpserver.go +++ b/resource/config/pcpserver.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package pcp +package config /** * Configuration for server resource. -*/ + */ type Pcpserver struct { /** * Name for the PCP server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my pcpServer" or my pcpServer). - */ + */ Name string `json:"name,omitempty"` /** * The IP address of the PCP server. - */ + */ Ipaddress string `json:"ipaddress,omitempty"` /** * Port number for the PCP server. - */ + */ Port int `json:"port,omitempty"` /** * pcp profile name - */ + */ Pcpprofile string `json:"pcpprofile,omitempty"` - } diff --git a/resource/config/utility/ping.go b/resource/config/ping.go similarity index 96% rename from resource/config/utility/ping.go rename to resource/config/ping.go index 22d9ae8..9b07437 100644 --- a/resource/config/utility/ping.go +++ b/resource/config/ping.go @@ -12,59 +12,57 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package utility + */ +package config type Ping struct { /** * Number of packets to send. The default value is infinite. For Nitro API, defalut value is taken as 5. - */ + */ C int `json:"c,omitempty"` /** * Waiting time, in seconds. The default value is 1 second. - */ + */ I int `json:"i,omitempty"` /** * Network interface on which to ping, if you have multiple interfaces. - */ + */ I_ string `json:"I,omitempty"` /** * Numeric output only. No name resolution. - */ + */ N bool `json:"n,omitempty"` /** * Pattern to fill in packets. Can be up to 16 bytes, useful for diagnosing data-dependent problems. - */ + */ P string `json:"p,omitempty"` /** * Quiet output. Only the summary is printed. For Nitro API, this flag is set by default. - */ + */ Q bool `json:"q,omitempty"` /** * Data size, in bytes. The default value is 56. - */ + */ S int `json:"s,omitempty"` /** * Source IP address to be used in the outgoing query packets. If the IP addrESS does not belongs to this appliance, an error is returned and nothing is sent. - */ + */ S_ string `json:"S,omitempty"` /** * Traffic Domain Id - */ + */ T int `json:"T,omitempty"` /** * Time-out, in seconds, before ping exits. - */ + */ T_ int `json:"t,omitempty"` /** * Address of host to ping. - */ + */ HostName string `json:"hostName,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/utility/ping6.go b/resource/config/ping6.go similarity index 96% rename from resource/config/utility/ping6.go rename to resource/config/ping6.go index 9d7d293..43dbb06 100644 --- a/resource/config/utility/ping6.go +++ b/resource/config/ping6.go @@ -12,71 +12,69 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - -package utility + */ +package config type Ping6 struct { /** * Set socket buffer size. If used, should be used with roughly +100 then the datalen (-s option). The default value is 8192. - */ + */ B int `json:"b,omitempty"` /** * Number of packets to send. The default value is infinite. For Nitro API, defalut value is taken as 5. - */ + */ C int `json:"c,omitempty"` /** * Waiting time, in seconds. The default value is 1 second. - */ + */ I int `json:"i,omitempty"` /** * Network interface on which to ping, if you have multiple interfaces. - */ + */ I_ string `json:"I,omitempty"` /** * By default, ping6 asks the kernel to fragment packets to fit into the minimum IPv6 MTU.The -m option will suppress the behavior for unicast packets. - */ + */ M bool `json:"m,omitempty"` /** * Numeric output only. No name resolution. - */ + */ N bool `json:"n,omitempty"` /** * Pattern to fill in packets. Can be up to 16 bytes, useful for diagnosing data-dependent problems. - */ + */ P string `json:"p,omitempty"` /** * Quiet output. Only summary is printed. For Nitro API, this flag is set by default - */ + */ Q bool `json:"q,omitempty"` /** * Data size, in bytes. The default value is 32. - */ + */ S int `json:"s,omitempty"` /** * VLAN ID for link local address. - */ + */ V int `json:"V,omitempty"` /** * Source IP address to be used in the outgoing query packets. - */ + */ S_ string `json:"S,omitempty"` /** * Traffic Domain Id - */ + */ T int `json:"T,omitempty"` /** * Timeout in seconds before ping6 exits - */ + */ T_ int `json:"t,omitempty"` /** * Address of host to ping. - */ + */ HostName string `json:"hostName,omitempty"` //------- Read only Parameter ---------; Response string `json:"response,omitempty"` - } diff --git a/resource/config/policy/policyevaluation.go b/resource/config/policy/policyevaluation.go deleted file mode 100644 index b79f292..0000000 --- a/resource/config/policy/policyevaluation.go +++ /dev/null @@ -1,81 +0,0 @@ -/* -* Copyright (c) 2021 Citrix Systems, Inc. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package policy - -/** -* Configuration for expr evaluation resource. -*/ -type Policyevaluation struct { - /** - * Expression string. For example: http.req.body(100).contains("this"). - */ - Expression string `json:"expression,omitempty"` - /** - * Rewrite action name. Supported rewrite action types are: - -delete - -delete_all - -delete_http_header - -insert_after - -insert_after_all - -insert_before - -insert_before_all - -insert_http_header - -replace - -replace_all - */ - Action string `json:"action,omitempty"` - /** - * Indicates request or response input packet - */ - Type string `json:"type,omitempty"` - /** - * Text representation of input packet. - */ - Input string `json:"input,omitempty"` - - //------- Read only Parameter ---------; - - Pitmodifiedinputdata string `json:"pitmodifiedinputdata,omitempty"` - Pitboolresult string `json:"pitboolresult,omitempty"` - Pitnumresult string `json:"pitnumresult,omitempty"` - Pitdoubleresult string `json:"pitdoubleresult,omitempty"` - Pitulongresult string `json:"pitulongresult,omitempty"` - Pitrefresult string `json:"pitrefresult,omitempty"` - Pitoffsetresult string `json:"pitoffsetresult,omitempty"` - Pitoffsetresultlen string `json:"pitoffsetresultlen,omitempty"` - Istruncatedrefresult string `json:"istruncatedrefresult,omitempty"` - Pitboolevaltime string `json:"pitboolevaltime,omitempty"` - Pitnumevaltime string `json:"pitnumevaltime,omitempty"` - Pitdoubleevaltime string `json:"pitdoubleevaltime,omitempty"` - Pitulongevaltime string `json:"pitulongevaltime,omitempty"` - Pitrefevaltime string `json:"pitrefevaltime,omitempty"` - Pitoffsetevaltime string `json:"pitoffsetevaltime,omitempty"` - Pitactionevaltime string `json:"pitactionevaltime,omitempty"` - Pitoperationperformerarray string `json:"pitoperationperformerarray,omitempty"` - Pitoldoffsetarray string `json:"pitoldoffsetarray,omitempty"` - Pitnewoffsetarray string `json:"pitnewoffsetarray,omitempty"` - Pitoffsetlengtharray string `json:"pitoffsetlengtharray,omitempty"` - Pitoffsetnewlengtharray string `json:"pitoffsetnewlengtharray,omitempty"` - Pitboolerrorresult string `json:"pitboolerrorresult,omitempty"` - Pitnumerrorresult string `json:"pitnumerrorresult,omitempty"` - Pitdoubleerrorresult string `json:"pitdoubleerrorresult,omitempty"` - Pitulongerrorresult string `json:"pitulongerrorresult,omitempty"` - Pitreferrorresult string `json:"pitreferrorresult,omitempty"` - Pitoffseterrorresult string `json:"pitoffseterrorresult,omitempty"` - Pitactionerrorresult string `json:"pitactionerrorresult,omitempty"` - -} diff --git a/resource/config/policy/policydataset.go b/resource/config/policydataset.go similarity index 96% rename from resource/config/policy/policydataset.go rename to resource/config/policydataset.go index 8adf1e2..481974f 100644 --- a/resource/config/policy/policydataset.go +++ b/resource/config/policydataset.go @@ -12,37 +12,36 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for TYPE set resource. -*/ + */ type Policydataset struct { /** * Name of the dataset. Must not exceed 127 characters. - */ + */ Name string `json:"name,omitempty"` /** * Type of value to bind to the dataset. - */ + */ Type string `json:"type,omitempty"` /** * Index type. - */ + */ Indextype string `json:"indextype,omitempty"` /** * Any comments to preserve information about this dataset or a data bound to this dataset. - */ + */ Comment string `json:"comment,omitempty"` /** * File which contains list of patterns that needs to be bound to the dataset. A patsetfile cannot be associated with multiple datasets. - */ + */ Patsetfile string `json:"patsetfile,omitempty"` //------- Read only Parameter ---------; Description string `json:"description,omitempty"` - } diff --git a/resource/config/policy/policydataset_binding.go b/resource/config/policydataset_binding.go similarity index 93% rename from resource/config/policy/policydataset_binding.go rename to resource/config/policydataset_binding.go index 0d30776..8fafb2d 100644 --- a/resource/config/policy/policydataset_binding.go +++ b/resource/config/policydataset_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** -* Binding object which returns the resources bound to policydataset_binding. -*/ +* Binding object which returns the resources bound to policydataset_binding. + */ type Policydatasetbinding struct { /** - * Name of the dataset. Must not exceed 127 characters.
Minimum value = - */ + * Name of the dataset. Must not exceed 127 characters.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/policy/policydataset_value_binding.go b/resource/config/policydataset_value_binding.go similarity index 96% rename from resource/config/policy/policydataset_value_binding.go rename to resource/config/policydataset_value_binding.go index 6014d46..5ee6a9a 100644 --- a/resource/config/policy/policydataset_value_binding.go +++ b/resource/config/policydataset_value_binding.go @@ -12,34 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Binding class showing the value that can be bound to policydataset. -*/ + */ type Policydatasetvaluebinding struct { /** * Value of the specified type that is associated with the dataset. - */ + */ Value string `json:"value,omitempty"` /** * The index of the value (ipv4, ipv6, number) associated with the set. - */ + */ Index int `json:"index,omitempty"` /** * Any comments to preserve information about this dataset or a data bound to this dataset. - */ + */ Comment string `json:"comment,omitempty"` /** * The dataset entry is a range from through , inclusive - */ + */ Endrange string `json:"endrange,omitempty"` /** * Name of the dataset to which to bind the value. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/policyevaluation.go b/resource/config/policyevaluation.go new file mode 100644 index 0000000..dff3383 --- /dev/null +++ b/resource/config/policyevaluation.go @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. + */ + +package config + +/** +* Configuration for expr evaluation resource. + */ +type Policyevaluation struct { + /** + * Expression string. For example: http.req.body(100).contains("this"). + */ + Expression string `json:"expression,omitempty"` + /** + * Rewrite action name. Supported rewrite action types are: + -delete + -delete_all + -delete_http_header + -insert_after + -insert_after_all + -insert_before + -insert_before_all + -insert_http_header + -replace + -replace_all + */ + Action string `json:"action,omitempty"` + /** + * Indicates request or response input packet + */ + Type string `json:"type,omitempty"` + /** + * Text representation of input packet. + */ + Input string `json:"input,omitempty"` + + //------- Read only Parameter ---------; + + Pitmodifiedinputdata string `json:"pitmodifiedinputdata,omitempty"` + Pitboolresult string `json:"pitboolresult,omitempty"` + Pitnumresult string `json:"pitnumresult,omitempty"` + Pitdoubleresult string `json:"pitdoubleresult,omitempty"` + Pitulongresult string `json:"pitulongresult,omitempty"` + Pitrefresult string `json:"pitrefresult,omitempty"` + Pitoffsetresult string `json:"pitoffsetresult,omitempty"` + Pitoffsetresultlen string `json:"pitoffsetresultlen,omitempty"` + Istruncatedrefresult string `json:"istruncatedrefresult,omitempty"` + Pitboolevaltime string `json:"pitboolevaltime,omitempty"` + Pitnumevaltime string `json:"pitnumevaltime,omitempty"` + Pitdoubleevaltime string `json:"pitdoubleevaltime,omitempty"` + Pitulongevaltime string `json:"pitulongevaltime,omitempty"` + Pitrefevaltime string `json:"pitrefevaltime,omitempty"` + Pitoffsetevaltime string `json:"pitoffsetevaltime,omitempty"` + Pitactionevaltime string `json:"pitactionevaltime,omitempty"` + Pitoperationperformerarray string `json:"pitoperationperformerarray,omitempty"` + Pitoldoffsetarray string `json:"pitoldoffsetarray,omitempty"` + Pitnewoffsetarray string `json:"pitnewoffsetarray,omitempty"` + Pitoffsetlengtharray string `json:"pitoffsetlengtharray,omitempty"` + Pitoffsetnewlengtharray string `json:"pitoffsetnewlengtharray,omitempty"` + Pitboolerrorresult string `json:"pitboolerrorresult,omitempty"` + Pitnumerrorresult string `json:"pitnumerrorresult,omitempty"` + Pitdoubleerrorresult string `json:"pitdoubleerrorresult,omitempty"` + Pitulongerrorresult string `json:"pitulongerrorresult,omitempty"` + Pitreferrorresult string `json:"pitreferrorresult,omitempty"` + Pitoffseterrorresult string `json:"pitoffseterrorresult,omitempty"` + Pitactionerrorresult string `json:"pitactionerrorresult,omitempty"` +} diff --git a/resource/config/policy/policyexpression.go b/resource/config/policyexpression.go similarity index 87% rename from resource/config/policy/policyexpression.go rename to resource/config/policyexpression.go index d31dc83..90b66bd 100644 --- a/resource/config/policy/policyexpression.go +++ b/resource/config/policyexpression.go @@ -12,46 +12,45 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for expression resource. -*/ + */ type Policyexpression struct { /** * Unique name for the expression. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as an expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, stringmap, or HTTP callout. - */ + */ Name string `json:"name,omitempty"` /** * Expression string. For example: http.req.body(100).contains("this"). - */ + */ Value string `json:"value,omitempty"` /** * Description for the expression. - */ + */ Description string `json:"description,omitempty"` /** * Any comments associated with the expression. Displayed upon viewing the policy expression. - */ + */ Comment string `json:"comment,omitempty"` /** * Message to display if the expression fails. Allowed for classic end-point check expressions only. - */ + */ Clientsecuritymessage string `json:"clientsecuritymessage,omitempty"` /** * Type of expression. Can be a classic or default syntax (advanced) expression. - */ + */ Type string `json:"type,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Pihits string `json:"pihits,omitempty"` - Type1 string `json:"type1,omitempty"` + Hits string `json:"hits,omitempty"` + Pihits string `json:"pihits,omitempty"` + Type1 string `json:"type1,omitempty"` Isdefault string `json:"isdefault,omitempty"` - Builtin string `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` } diff --git a/resource/config/policy/policyhttpcallout.go b/resource/config/policyhttpcallout.go similarity index 92% rename from resource/config/policy/policyhttpcallout.go rename to resource/config/policyhttpcallout.go index c4adb79..39af6f4 100644 --- a/resource/config/policy/policyhttpcallout.go +++ b/resource/config/policyhttpcallout.go @@ -12,17 +12,17 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for HTTP callout resource. -*/ + */ type Policyhttpcallout struct { /** * Name for the HTTP callout. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as an expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, stringmap, or HTTP callout. - */ + */ Name string `json:"name,omitempty"` /** * IP Address of the server (callout agent) to which the callout is sent. Can be an IPv4 or IPv6 address. @@ -31,44 +31,44 @@ type Policyhttpcallout struct { Ipaddress string `json:"ipaddress,omitempty"` /** * Server port to which the HTTP callout agent is mapped. Mutually exclusive with the Virtual Server parameter. Therefore, you cannot set the and the Virtual Server in the same HTTP callout. - */ + */ Port int `json:"port,omitempty"` /** * Name of the load balancing, content switching, or cache redirection virtual server (the callout agent) to which the HTTP callout is sent. The service type of the virtual server must be HTTP. Mutually exclusive with the IP address and port parameters. Therefore, you cannot set the and the Virtual Server in the same HTTP callout. - */ + */ Vserver string `json:"vserver,omitempty"` /** - * Type of data that the target callout agent returns in response to the callout. + * Type of data that the target callout agent returns in response to the callout. Available settings function as follows: - * TEXT - Treat the returned value as a text string. + * TEXT - Treat the returned value as a text string. * NUM - Treat the returned value as a number. - * BOOL - Treat the returned value as a Boolean value. + * BOOL - Treat the returned value as a Boolean value. Note: You cannot change the return type after it is set. */ Returntype string `json:"returntype,omitempty"` /** * Method used in the HTTP request that this callout sends. Mutually exclusive with the full HTTP request expression. - */ + */ Httpmethod string `json:"httpmethod,omitempty"` /** * String expression to configure the Host header. Can contain a literal value (for example, 10.101.10.11) or a derived value (for example, http.req.header("Host")). The literal value can be an IP address or a fully qualified domain name. Mutually exclusive with the full HTTP request expression. - */ + */ Hostexpr string `json:"hostexpr,omitempty"` /** * String expression for generating the URL stem. Can contain a literal string (for example, "/mysite/index.html") or an expression that derives the value (for example, http.req.url). Mutually exclusive with the full HTTP request expression. - */ + */ Urlstemexpr string `json:"urlstemexpr,omitempty"` /** * One or more headers to insert into the HTTP request. Each header is specified as "name(expr)", where expr is an expression that is evaluated at runtime to provide the value for the named header. You can configure a maximum of eight headers for an HTTP callout. Mutually exclusive with the full HTTP request expression. - */ + */ Headers []string `json:"headers,omitempty"` /** * One or more query parameters to insert into the HTTP request URL (for a GET request) or into the request body (for a POST request). Each parameter is specified as "name(expr)", where expr is an expression that is evaluated at run time to provide the value for the named parameter (name=value). The parameter values are URL encoded. Mutually exclusive with the full HTTP request expression. - */ + */ Parameters []string `json:"parameters,omitempty"` /** * An advanced string expression for generating the body of the request. The expression can contain a literal string or an expression that derives the value (for example, client.ip.src). Mutually exclusive with -fullReqExpr. - */ + */ Bodyexpr string `json:"bodyexpr,omitempty"` /** * Exact HTTP request, in the form of an expression, which the Citrix ADC sends to the callout agent. If you set this parameter, you must not include HTTP method, host expression, URL stem expression, headers, or parameters. @@ -78,11 +78,11 @@ type Policyhttpcallout struct { Fullreqexpr string `json:"fullreqexpr,omitempty"` /** * Type of scheme for the callout server. - */ + */ Scheme string `json:"scheme,omitempty"` /** * Expression that extracts the callout results from the response sent by the HTTP callout agent. Must be a response based expression, that is, it must begin with HTTP.RES. The operations in this expression must match the return type. For example, if you configure a return type of TEXT, the result expression must be a text based expression. If the return type is NUM, the result expression (resultExpr) must return a numeric value, as in the following example: http.res.body(10000).length. - */ + */ Resultexpr string `json:"resultexpr,omitempty"` /** * Duration, in seconds, for which the callout response is cached. The cached responses are stored in an integrated caching content group named "calloutContentGroup". If no duration is configured, the callout responses will not be cached unless normal caching configuration is used to cache them. This parameter takes precedence over any normal caching configuration that would otherwise apply to these responses. @@ -91,16 +91,15 @@ type Policyhttpcallout struct { Cacheforsecs int `json:"cacheforsecs,omitempty"` /** * Any comments to preserve information about this HTTP callout. - */ + */ Comment string `json:"comment,omitempty"` //------- Read only Parameter ---------; - Hits string `json:"hits,omitempty"` - Undefhits string `json:"undefhits,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Effectivestate string `json:"effectivestate,omitempty"` - Undefreason string `json:"undefreason,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Effectivestate string `json:"effectivestate,omitempty"` + Undefreason string `json:"undefreason,omitempty"` Recursivecallout string `json:"recursivecallout,omitempty"` - } diff --git a/resource/config/policy/policymap.go b/resource/config/policymap.go similarity index 97% rename from resource/config/policy/policymap.go rename to resource/config/policymap.go index 97df2ae..cc98698 100644 --- a/resource/config/policy/policymap.go +++ b/resource/config/policymap.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for map policy resource. -*/ + */ type Policymap struct { /** * Name for the map policy. Must begin with a letter, number, or the underscore (_) character and must consist only of letters, numbers, and the hash (#), period (.), colon (:), space ( ), at (@), equals (=), hyphen (-), and underscore (_) characters. @@ -27,23 +27,22 @@ type Policymap struct { Mappolicyname string `json:"mappolicyname,omitempty"` /** * Publicly known source domain name. This is the domain name with which a client request arrives at a reverse proxy virtual server for cache redirection. If you specify a source domain, you must specify a target domain. - */ + */ Sd string `json:"sd,omitempty"` /** * Source URL. Specify all or part of the source URL, in the following format: /[[prefix] [*]] [.suffix]. - */ + */ Su string `json:"su,omitempty"` /** * Target domain name sent to the server. The source domain name is replaced with this domain name. - */ + */ Td string `json:"td,omitempty"` /** * Target URL. Specify the target URL in the following format: /[[prefix] [*]][.suffix]. - */ + */ Tu string `json:"tu,omitempty"` //------- Read only Parameter ---------; Targetname string `json:"targetname,omitempty"` - } diff --git a/resource/config/policy/policyparam.go b/resource/config/policyparam.go similarity index 97% rename from resource/config/policy/policyparam.go rename to resource/config/policyparam.go index 113aed3..5017871 100644 --- a/resource/config/policy/policyparam.go +++ b/resource/config/policyparam.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for policy parameter resource. -*/ + */ type Policyparam struct { /** * Maximum time in milliseconds to allow for processing expressions without interruption. If the timeout is reached then the evaluation causes an UNDEF to be raised and no further processing is performed. - */ + */ Timeout int `json:"timeout,omitempty"` - } diff --git a/resource/config/policy/policypatset.go b/resource/config/policypatset.go similarity index 97% rename from resource/config/policy/policypatset.go rename to resource/config/policypatset.go index 6965c4b..e45feba 100644 --- a/resource/config/policy/policypatset.go +++ b/resource/config/policypatset.go @@ -12,33 +12,32 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for PAT set resource. -*/ + */ type Policypatset struct { /** * Unique name of the pattern set. Not case sensitive. Must begin with an ASCII letter or underscore (_) character and must contain only alphanumeric and underscore characters. Must not be the name of an existing named expression, pattern set, dataset, string map, or HTTP callout. - */ + */ Name string `json:"name,omitempty"` /** * Index type. - */ + */ Indextype string `json:"indextype,omitempty"` /** * Any comments to preserve information about this patset or a pattern bound to this patset. - */ + */ Comment string `json:"comment,omitempty"` /** * File which contains list of patterns that needs to be bound to the patset. A patsetfile cannot be associated with multiple patsets. - */ + */ Patsetfile string `json:"patsetfile,omitempty"` //------- Read only Parameter ---------; Description string `json:"description,omitempty"` - } diff --git a/resource/config/policy/policypatset_binding.go b/resource/config/policypatset_binding.go similarity index 89% rename from resource/config/policy/policypatset_binding.go rename to resource/config/policypatset_binding.go index db6e7f7..d67e8de 100644 --- a/resource/config/policy/policypatset_binding.go +++ b/resource/config/policypatset_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** -* Binding object which returns the resources bound to policypatset_binding. -*/ +* Binding object which returns the resources bound to policypatset_binding. + */ type Policypatsetbinding struct { /** - * Name of the pattern set for which to display the detailed information. If a name is not provided, a list of all pattern sets configured on the appliance is shown.
Minimum value = - */ + * Name of the pattern set for which to display the detailed information. If a name is not provided, a list of all pattern sets configured on the appliance is shown.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/policy/policypatset_pattern_binding.go b/resource/config/policypatset_pattern_binding.go similarity index 97% rename from resource/config/policy/policypatset_pattern_binding.go rename to resource/config/policypatset_pattern_binding.go index df7255d..7389710 100644 --- a/resource/config/policy/policypatset_pattern_binding.go +++ b/resource/config/policypatset_pattern_binding.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Binding class showing the pattern that can be bound to policypatset. -*/ + */ type Policypatsetpatternbinding struct { /** * String of characters that constitutes a pattern. For more information about the characters that can be used, refer to the character set parameter. @@ -27,7 +27,7 @@ type Policypatsetpatternbinding struct { String string `json:"String,omitempty"` /** * The index of the string associated with the patset. - */ + */ Index int `json:"index,omitempty"` /** * Character set associated with the characters in the string. @@ -36,20 +36,18 @@ type Policypatsetpatternbinding struct { Charset string `json:"charset,omitempty"` /** * Any comments to preserve information about this patset or a pattern bound to this patset. - */ + */ Comment string `json:"comment,omitempty"` /** * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. - */ + */ Builtin []string `json:"builtin,omitempty"` /** * The feature to be checked while applying this config - */ + */ Feature string `json:"feature,omitempty"` /** * Name of the pattern set to which to bind the string. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/policy/policypatsetfile.go b/resource/config/policypatsetfile.go similarity index 87% rename from resource/config/policy/policypatsetfile.go rename to resource/config/policypatsetfile.go index 9c58c05..31176e8 100644 --- a/resource/config/policy/policypatsetfile.go +++ b/resource/config/policypatsetfile.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for patset file resource. -*/ + */ type Policypatsetfile struct { /** * URL in protocol, host, path, and file name format from where the patset file will be imported. If file is already present, then it can be imported using local keyword (import patsetfile local:filename patsetfile1) @@ -27,35 +27,34 @@ type Policypatsetfile struct { Src string `json:"src,omitempty"` /** * Name to assign to the imported patset file. Unique name of the pattern set. Not case sensitive. Must begin with an ASCII letter or underscore (_) character and must contain only alphanumeric and underscore characters. - */ + */ Name string `json:"name,omitempty"` /** * Overwrites the existing file - */ + */ Overwrite bool `json:"overwrite,omitempty"` /** * patset file patterns delimiter. - */ + */ Delimiter string `json:"delimiter,omitempty"` /** * Character set associated with the characters in the string. - */ + */ Charset string `json:"charset,omitempty"` /** * Any comments to preserve information about this patsetfile. - */ + */ Comment string `json:"comment,omitempty"` /** * When set, display only shows all imported patsetfiles. - */ + */ Imported bool `json:"imported,omitempty"` //------- Read only Parameter ---------; - Totalpatterns string `json:"totalpatterns,omitempty"` - Boundpatterns string `json:"boundpatterns,omitempty"` - Patsetname string `json:"patsetname,omitempty"` + Totalpatterns string `json:"totalpatterns,omitempty"` + Boundpatterns string `json:"boundpatterns,omitempty"` + Patsetname string `json:"patsetname,omitempty"` Bindstatuscode string `json:"bindstatuscode,omitempty"` - Bindstatus string `json:"bindstatus,omitempty"` - + Bindstatus string `json:"bindstatus,omitempty"` } diff --git a/resource/config/policy/policystringmap.go b/resource/config/policystringmap.go similarity index 97% rename from resource/config/policy/policystringmap.go rename to resource/config/policystringmap.go index e758f9c..9c3aa22 100644 --- a/resource/config/policy/policystringmap.go +++ b/resource/config/policystringmap.go @@ -12,21 +12,20 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for string map resource. -*/ + */ type Policystringmap struct { /** * Unique name for the string map. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as an expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, string map, or HTTP callout. - */ + */ Name string `json:"name,omitempty"` /** * Comments associated with the string map or key-value pair bound to this string map. - */ + */ Comment string `json:"comment,omitempty"` - } diff --git a/resource/config/policy/policystringmap_binding.go b/resource/config/policystringmap_binding.go similarity index 94% rename from resource/config/policy/policystringmap_binding.go rename to resource/config/policystringmap_binding.go index 2a06d05..e58cb96 100644 --- a/resource/config/policy/policystringmap_binding.go +++ b/resource/config/policystringmap_binding.go @@ -12,18 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** -* Binding object which returns the resources bound to policystringmap_binding. -*/ +* Binding object which returns the resources bound to policystringmap_binding. + */ type Policystringmapbinding struct { /** - * Name of the string map to display. If a name is not provided, a list of all the configured string maps is shown.
Minimum value = - */ + * Name of the string map to display. If a name is not provided, a list of all the configured string maps is shown.
Minimum value = + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/policy/policystringmap_pattern_binding.go b/resource/config/policystringmap_pattern_binding.go similarity index 97% rename from resource/config/policy/policystringmap_pattern_binding.go rename to resource/config/policystringmap_pattern_binding.go index bf579d2..e222c83 100644 --- a/resource/config/policy/policystringmap_pattern_binding.go +++ b/resource/config/policystringmap_pattern_binding.go @@ -12,30 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Binding class showing the pattern that can be bound to policystringmap. -*/ + */ type Policystringmappatternbinding struct { /** * Character string constituting the key to be bound to the string map. The key is matched against the data processed by the operation that uses the string map. The default character set is ASCII. UTF-8 characters can be included if the character set is UTF-8. UTF-8 characters can be entered directly (if the UI supports it) or can be encoded as a sequence of hexadecimal bytes '\xNN'. For example, the UTF-8 character 'ue' can be encoded as '\xC3\xBC'. - */ + */ Key string `json:"key,omitempty"` /** * Character string constituting the value associated with the key. This value is returned when processed data matches the associated key. Refer to the key parameter for details of the value character set. - */ + */ Value string `json:"value,omitempty"` /** * Comments associated with the string map or key-value pair bound to this string map. - */ + */ Comment string `json:"comment,omitempty"` /** * Name of the string map to which to bind the key-value pair. - */ + */ Name string `json:"name,omitempty"` - - -} \ No newline at end of file +} diff --git a/resource/config/policy/policyurlset.go b/resource/config/policyurlset.go similarity index 97% rename from resource/config/policy/policyurlset.go rename to resource/config/policyurlset.go index 2ed28ab..2e21503 100644 --- a/resource/config/policy/policyurlset.go +++ b/resource/config/policyurlset.go @@ -12,65 +12,64 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package policy +package config /** * Configuration for URL set resource. -*/ + */ type Policyurlset struct { /** * Unique name of the url set. Not case sensitive. Must begin with an ASCII letter or underscore (_) character and must contain only alphanumeric and underscore characters. Must not be the name of an existing named expression, pattern set, dataset, string map, or HTTP callout. - */ + */ Name string `json:"name,omitempty"` /** * Any comments to preserve information about this url set. - */ + */ Comment string `json:"comment,omitempty"` /** * when set, display shows all imported urlsets. - */ + */ Imported bool `json:"imported,omitempty"` /** * Overwrites the existing file. - */ + */ Overwrite bool `json:"overwrite,omitempty"` /** * CSV file record delimiter. - */ + */ Delimiter string `json:"delimiter,omitempty"` /** * CSV file row separator. - */ + */ Rowseparator string `json:"rowseparator,omitempty"` /** * URL (protocol, host, path and file name) from where the CSV (comma separated file) file will be imported or exported. Each record/line will one entry within the urlset. The first field contains the URL pattern, subsequent fields contains the metadata, if available. HTTP, HTTPS and FTP protocols are supported. NOTE: The operation fails if the destination HTTPS server requires client certificate authentication for access. - */ + */ Url string `json:"url,omitempty"` /** * The interval, in seconds, rounded down to the nearest 15 minutes, at which the update of urlset occurs. - */ + */ Interval int `json:"interval,omitempty"` /** * Prevent this urlset from being exported. - */ + */ Privateset bool `json:"privateset,omitempty"` /** * Force exact subdomain matching, ex. given an entry 'google.com' in the urlset, a request to 'news.google.com' won't match, if subdomainExactMatch is set. - */ + */ Subdomainexactmatch bool `json:"subdomainexactmatch,omitempty"` /** * An ID that would be sent to AppFlow to indicate which URLSet was the last one that matched the requested URL. - */ + */ Matchedid int `json:"matchedid,omitempty"` /** * Add this URL to this urlset. Used for testing when contents of urlset is kept confidential. - */ + */ Canaryurl string `json:"canaryurl,omitempty"` //------- Read only Parameter ---------; Patterncount string `json:"patterncount,omitempty"` - } diff --git a/resource/config/pq/pqbinding.go b/resource/config/pqbinding.go similarity index 75% rename from resource/config/pq/pqbinding.go rename to resource/config/pqbinding.go index 306d229..973a201 100644 --- a/resource/config/pq/pqbinding.go +++ b/resource/config/pqbinding.go @@ -12,27 +12,26 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package pq +package config /** * Configuration for PQ bindings resource. -*/ + */ type Pqbinding struct { /** * Name of the load balancing virtual server for which to display the priority queuing policy. - */ + */ Vservername string `json:"vservername,omitempty"` //------- Read only Parameter ---------; Policyname string `json:"policyname,omitempty"` - Rule string `json:"rule,omitempty"` - Priority string `json:"priority,omitempty"` - Weight string `json:"weight,omitempty"` - Qdepth string `json:"qdepth,omitempty"` - Polqdepth string `json:"polqdepth,omitempty"` - Hits string `json:"hits,omitempty"` - + Rule string `json:"rule,omitempty"` + Priority string `json:"priority,omitempty"` + Weight string `json:"weight,omitempty"` + Qdepth string `json:"qdepth,omitempty"` + Polqdepth string `json:"polqdepth,omitempty"` + Hits string `json:"hits,omitempty"` } diff --git a/resource/config/pq/pqpolicy.go b/resource/config/pqpolicy.go similarity index 97% rename from resource/config/pq/pqpolicy.go rename to resource/config/pqpolicy.go index d4c69b4..b69d6fb 100644 --- a/resource/config/pq/pqpolicy.go +++ b/resource/config/pqpolicy.go @@ -12,30 +12,30 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package pq +package config /** * Configuration for PQ policy resource. -*/ + */ type Pqpolicy struct { /** * Name for the priority queuing policy. Must begin with a letter, number, or the underscore symbol (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), and colon (:) characters. - */ + */ Policyname string `json:"policyname,omitempty"` /** * Expression or name of a named expression, against which the request is evaluated. The priority queuing policy is applied if the rule evaluates to true. Note: * On the command line interface, if the expression includes blank spaces, the entire expression must be enclosed in double quotation marks. - * If the expression itself includes double quotation marks, you must escape the quotations by using the \ character. + * If the expression itself includes double quotation marks, you must escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you will not have to escape the double quotation marks. * Maximum length of a string literal in the expression is 255 characters. A longer string can be split into smaller strings of up to 255 characters each, and the smaller strings concatenated with the + operator. For example, you can create a 500-character string as follows: '"" + ""' */ Rule string `json:"rule,omitempty"` /** * Priority for queuing the request. If server resources are not available for a request that matches the configured rule, this option specifies a priority for queuing the request until the server resources are available again. Enter the value of positive_integer as 1, 2 or 3. The highest priority level is 1 and the lowest priority value is 3. - */ + */ Priority int `json:"priority,omitempty"` /** * Weight of the priority. Each priority is assigned a weight according to which it is served when server resources are available. The weight for a higher priority request must be set higher than that of a lower priority request. @@ -50,15 +50,14 @@ type Pqpolicy struct { Weight int `json:"weight,omitempty"` /** * Queue depth threshold value. When the queue size (number of requests in the queue) on the virtual server to which this policy is bound, increases to the specified qDepth value, subsequent requests are dropped to the lowest priority level. - */ + */ Qdepth int `json:"qdepth,omitempty"` /** * Policy queue depth threshold value. When the policy queue size (number of requests in all the queues belonging to this policy) increases to the specified polqDepth value, subsequent requests are dropped to the lowest priority level. - */ + */ Polqdepth int `json:"polqdepth,omitempty"` //------- Read only Parameter ---------; Hits string `json:"hits,omitempty"` - } diff --git a/resource/config/protocol/protocolhttpband.go b/resource/config/protocolhttpband.go similarity index 76% rename from resource/config/protocol/protocolhttpband.go rename to resource/config/protocolhttpband.go index 603d70d..f8694f1 100644 --- a/resource/config/protocol/protocolhttpband.go +++ b/resource/config/protocolhttpband.go @@ -12,13 +12,13 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package protocol +package config /** * Configuration for HTTP request/response band resource. -*/ + */ type Protocolhttpband struct { /** * Band size, in bytes, for HTTP request band statistics. For example, if you specify a band size of 100 bytes, statistics will be maintained and displayed for the following size ranges: @@ -36,25 +36,24 @@ type Protocolhttpband struct { Respbandsize int `json:"respbandsize,omitempty"` /** * Type of statistics to display. - */ + */ Type string `json:"type,omitempty"` /** * Unique number that identifies the cluster node. - */ + */ Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; - Bandrange string `json:"bandrange,omitempty"` - Numberofbands string `json:"numberofbands,omitempty"` - Totalbandsize string `json:"totalbandsize,omitempty"` - Avgbandsize string `json:"avgbandsize,omitempty"` + Bandrange string `json:"bandrange,omitempty"` + Numberofbands string `json:"numberofbands,omitempty"` + Totalbandsize string `json:"totalbandsize,omitempty"` + Avgbandsize string `json:"avgbandsize,omitempty"` Avgbandsizenew string `json:"avgbandsizenew,omitempty"` - Banddata string `json:"banddata,omitempty"` - Banddatanew string `json:"banddatanew,omitempty"` - Accesscount string `json:"accesscount,omitempty"` - Accessratio string `json:"accessratio,omitempty"` + Banddata string `json:"banddata,omitempty"` + Banddatanew string `json:"banddatanew,omitempty"` + Accesscount string `json:"accesscount,omitempty"` + Accessratio string `json:"accessratio,omitempty"` Accessrationew string `json:"accessrationew,omitempty"` - Totals string `json:"totals,omitempty"` - + Totals string `json:"totals,omitempty"` } diff --git a/resource/config/network/ptp.go b/resource/config/ptp.go similarity index 96% rename from resource/config/network/ptp.go rename to resource/config/ptp.go index d91d9f9..54848d9 100644 --- a/resource/config/network/ptp.go +++ b/resource/config/ptp.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package network +package config /** * Configuration for Precision Time Protocol resource. -*/ + */ type Ptp struct { /** * Enables or disables Precision Time Protocol (PTP) on the appliance. If you disable PTP, make sure you enable Network Time Protocol (NTP) on the cluster. - */ + */ State string `json:"state,omitempty"` - } diff --git a/resource/config/quicbridge/quicbridgeprofile.go b/resource/config/quicbridgeprofile.go similarity index 97% rename from resource/config/quicbridge/quicbridgeprofile.go rename to resource/config/quicbridgeprofile.go index 54051f1..1d51124 100644 --- a/resource/config/quicbridge/quicbridgeprofile.go +++ b/resource/config/quicbridgeprofile.go @@ -12,29 +12,28 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package quicbridge +package config /** * Configuration for QUIC BRIDGE profile resource. -*/ + */ type Quicbridgeprofile struct { /** * Name for the QUIC profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@),equals sign (=), and hyphen (-) characters. Cannot be changed after the profile is created. - */ + */ Name string `json:"name,omitempty"` /** * Routing algorithm to generate routable connection IDs. - */ + */ Routingalgorithm string `json:"routingalgorithm,omitempty"` /** * Length of serverid to encode/decode server information - */ + */ Serveridlength int `json:"serveridlength,omitempty"` //------- Read only Parameter ---------; Refcnt string `json:"refcnt,omitempty"` - } diff --git a/resource/config/quic/quicparam.go b/resource/config/quicparam.go similarity index 97% rename from resource/config/quic/quicparam.go rename to resource/config/quicparam.go index 17bf7f1..d0474fc 100644 --- a/resource/config/quic/quicparam.go +++ b/resource/config/quicparam.go @@ -12,17 +12,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package quic +package config /** * Configuration for Citrix ADC QUIC parameters resource. -*/ + */ type Quicparam struct { /** * Rotation frequency, in seconds, for the secret used to generate address validation tokens that will be issued in QUIC Retry packets and QUIC NEW_TOKEN frames sent by the Citrix ADC. A value of 0 can be configured if secret rotation is not desired. - */ + */ Quicsecrettimeout int `json:"quicsecrettimeout,omitempty"` - } diff --git a/resource/config/quic/quicprofile.go b/resource/config/quicprofile.go similarity index 97% rename from resource/config/quic/quicprofile.go rename to resource/config/quicprofile.go index 3486792..5ccbf09 100644 --- a/resource/config/quic/quicprofile.go +++ b/resource/config/quicprofile.go @@ -12,91 +12,90 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package quic +package config /** * Configuration for QUIC profile resource. -*/ + */ type Quicprofile struct { /** * Name for the QUIC profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@),equals sign (=), and hyphen (-) characters. Cannot be changed after the profile is created. - */ + */ Name string `json:"name,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, indicating an exponent that the remote QUIC endpoint should use, to decode the ACK Delay field in QUIC ACK frames sent by the Citrix ADC. - */ + */ Ackdelayexponent int `json:"ackdelayexponent,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the maximum number of QUIC connection IDs from the remote QUIC endpoint, that the Citrix ADC is willing to store. - */ + */ Activeconnectionidlimit int `json:"activeconnectionidlimit,omitempty"` /** * Specify whether the Citrix ADC should allow the remote QUIC endpoint to perform active QUIC connection migration. - */ + */ Activeconnectionmigration string `json:"activeconnectionmigration,omitempty"` /** * Specify the congestion control algorithm to be used for QUIC connections. The default congestion control algorithm is CUBIC. - */ + */ Congestionctrlalgorithm string `json:"congestionctrlalgorithm,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the initial value, in bytes, for the maximum amount of data that can be sent on a QUIC connection. - */ + */ Initialmaxdata int `json:"initialmaxdata,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the initial flow control limit, in bytes, for bidirectional QUIC streams initiated by the Citrix ADC. - */ + */ Initialmaxstreamdatabidilocal int `json:"initialmaxstreamdatabidilocal,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the initial flow control limit, in bytes, for bidirectional QUIC streams initiated by the remote QUIC endpoint. - */ + */ Initialmaxstreamdatabidiremote int `json:"initialmaxstreamdatabidiremote,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the initial flow control limit, in bytes, for unidirectional streams initiated by the remote QUIC endpoint. - */ + */ Initialmaxstreamdatauni int `json:"initialmaxstreamdatauni,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the initial maximum number of bidirectional streams the remote QUIC endpoint may initiate. - */ + */ Initialmaxstreamsbidi int `json:"initialmaxstreamsbidi,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the initial maximum number of unidirectional streams the remote QUIC endpoint may initiate. - */ + */ Initialmaxstreamsuni int `json:"initialmaxstreamsuni,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the maximum amount of time, in milliseconds, by which the Citrix ADC will delay sending acknowledgments. - */ + */ Maxackdelay int `json:"maxackdelay,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the maximum idle timeout, in seconds, for a QUIC connection. A QUIC connection will be silently discarded by the Citrix ADC if it remains idle for longer than the minimum of the idle timeout values advertised by the Citrix ADC and the remote QUIC endpoint, and three times the current Probe Timeout (PTO). - */ + */ Maxidletimeout int `json:"maxidletimeout,omitempty"` /** * An integer value, specifying the maximum number of UDP datagrams that can be transmitted by the Citrix ADC in a single transmission burst on a QUIC connection. - */ + */ Maxudpdatagramsperburst int `json:"maxudpdatagramsperburst,omitempty"` /** * An integer value advertised by the Citrix ADC to the remote QUIC endpoint, specifying the size of the largest UDP datagram payload, in bytes, that the Citrix ADC is willing to receive on a QUIC connection. - */ + */ Maxudppayloadsize int `json:"maxudppayloadsize,omitempty"` /** * An integer value, specifying the validity period, in seconds, of address validation tokens issued through QUIC NEW_TOKEN frames sent by the Citrix ADC. - */ + */ Newtokenvalidityperiod int `json:"newtokenvalidityperiod,omitempty"` /** * An integer value, specifying the validity period, in seconds, of address validation tokens issued through QUIC Retry packets sent by the Citrix ADC. - */ + */ Retrytokenvalidityperiod int `json:"retrytokenvalidityperiod,omitempty"` /** * Specify whether the Citrix ADC should perform stateless address validation for QUIC clients, by sending tokens in QUIC Retry packets during QUIC connection establishment, and by sending tokens in QUIC NEW_TOKEN frames after QUIC connection establishment. - */ + */ Statelessaddressvalidation string `json:"statelessaddressvalidation,omitempty"` //------- Read only Parameter ---------; - Refcnt string `json:"refcnt,omitempty"` + Refcnt string `json:"refcnt,omitempty"` Builtin string `json:"builtin,omitempty"` Feature string `json:"feature,omitempty"` - } diff --git a/resource/config/basic/radiusnode.go b/resource/config/radiusnode.go similarity index 97% rename from resource/config/basic/radiusnode.go rename to resource/config/radiusnode.go index eca643a..eda679a 100644 --- a/resource/config/basic/radiusnode.go +++ b/resource/config/radiusnode.go @@ -12,22 +12,21 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package basic +package config /** * Configuration for RADIUS Node resource. -*/ + */ type Radiusnode struct { /** * IP address/IP prefix of radius node in CIDR format - */ + */ Nodeprefix string `json:"nodeprefix,omitempty"` /** * The key shared between the RADIUS server and clients. Required for Citrix ADC to communicate with the RADIUS nodes. */ Radkey string `json:"radkey,omitempty"` - } diff --git a/resource/config/utility/raid.go b/resource/config/raid.go similarity index 96% rename from resource/config/utility/raid.go rename to resource/config/raid.go index 3f65a51..a8c6785 100644 --- a/resource/config/utility/raid.go +++ b/resource/config/raid.go @@ -12,13 +12,12 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package utility +package config /** * Configuration for raid support resource. -*/ + */ type Raid struct { - } diff --git a/resource/config/rdp/rdpclientprofile.go b/resource/config/rdpclientprofile.go similarity index 97% rename from resource/config/rdp/rdpclientprofile.go rename to resource/config/rdpclientprofile.go index bf6a95a..dc20494 100644 --- a/resource/config/rdp/rdpclientprofile.go +++ b/resource/config/rdpclientprofile.go @@ -12,89 +12,89 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ + */ -package rdp +package config /** * Configuration for RDP clientprofile resource. -*/ + */ type Rdpclientprofile struct { /** * The name of the rdp profile - */ + */ Name string `json:"name,omitempty"` /** * This setting determines whether the RDP parameters supplied in the vpn url override those specified in the RDP profile. - */ + */ Rdpurloverride string `json:"rdpurloverride,omitempty"` /** * This setting corresponds to the Clipboard check box on the Local Resources tab under Options in RDC. - */ + */ Redirectclipboard string `json:"redirectclipboard,omitempty"` /** * This setting corresponds to the selections for Drives under More on the Local Resources tab under Options in RDC. - */ + */ Redirectdrives string `json:"redirectdrives,omitempty"` /** * This setting corresponds to the selection in the Printers check box on the Local Resources tab under Options in RDC. - */ + */ Redirectprinters string `json:"redirectprinters,omitempty"` /** * This setting corresponds to the selections for comports under More on the Local Resources tab under Options in RDC. - */ + */ Redirectcomports string `json:"redirectcomports,omitempty"` /** * This setting corresponds to the selections for pnpdevices under More on the Local Resources tab under Options in RDC. - */ + */ Redirectpnpdevices string `json:"redirectpnpdevices,omitempty"` /** * This setting corresponds to the selection in the Keyboard drop-down list on the Local Resources tab under Options in RDC. - */ + */ Keyboardhook string `json:"keyboardhook,omitempty"` /** * This setting corresponds to the selections in the Remote audio area on the Local Resources tab under Options in RDC. - */ + */ Audiocapturemode string `json:"audiocapturemode,omitempty"` /** * This setting determines if Remote Desktop Connection (RDC) will use RDP efficient multimedia streaming for video playback. - */ + */ Videoplaybackmode string `json:"videoplaybackmode,omitempty"` /** * Enable/Disable Multiple Monitor Support for Remote Desktop Connection (RDC). - */ + */ Multimonitorsupport string `json:"multimonitorsupport,omitempty"` /** * RDP cookie validity period. RDP cookie validity time is applicable for new connection and also for any re-connection that might happen, mostly due to network disruption or during fail-over. - */ + */ Rdpcookievalidity int `json:"rdpcookievalidity,omitempty"` /** * Add username in rdp file. - */ + */ Addusernameinrdpfile string `json:"addusernameinrdpfile,omitempty"` /** * RDP file name to be sent to End User - */ + */ Rdpfilename string `json:"rdpfilename,omitempty"` /** * Fully-qualified domain name (FQDN) of the RDP Listener. - */ + */ Rdphost string `json:"rdphost,omitempty"` /** * IP address (or) Fully-qualified domain name(FQDN) of the RDP Listener with the port in the format IP:Port (or) FQDN:Port - */ + */ Rdplistener string `json:"rdplistener,omitempty"` /** * Option for RDP custom parameters settings (if any). Custom params needs to be separated by '&' - */ + */ Rdpcustomparams string `json:"rdpcustomparams,omitempty"` /** * Pre shared key value - */ + */ Psk string `json:"psk,omitempty"` /** * Will generate unique filename everytime rdp file is downloaded by appending output of time() function in the format _