docs: fix invalid godoc for generated settings methods

This commit is contained in:
Mateusz Filipowicz
2025-03-02 22:27:49 +01:00
parent a5955a6358
commit bdc73a9811
41 changed files with 82 additions and 82 deletions

View File

@@ -85,7 +85,7 @@ func (c *client) list{{ .StructName }}(ctx context.Context, site string) ([]{{ .
{{- end }}
{{ if .IsSetting }}
// Update {{ .StructName }} Experimental! This function is not yet stable and may change in the future.
// Get{{ .StructName }} Experimental! This function is not yet stable and may change in the future.
func (c *client) Get{{ .StructName }}(ctx context.Context, site string) (*{{ .StructName }}, error) {
s, f, err := c.GetSetting(ctx, site, {{ .StructName }}Key)
if err != nil {
@@ -148,7 +148,7 @@ func (c *client) create{{ .StructName }}(ctx context.Context, site string, d *{{
{{- end }}
{{ if .IsSetting }}
// Update {{ .StructName }} Experimental! This function is not yet stable and may change in the future.
// Update{{ .StructName }} Experimental! This function is not yet stable and may change in the future.
func (c *client) Update{{ .StructName }}(ctx context.Context, site string, s *{{ .StructName}}) (*{{ .StructName }}, error) {
s.Key = {{ .StructName }}Key
result, err := c.SetSetting(ctx, site, {{ .StructName }}Key, s)

View File

@@ -49,7 +49,7 @@ func (dst *SettingAutoSpeedtest) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingAutoSpeedtest Experimental! This function is not yet stable and may change in the future.
// GetSettingAutoSpeedtest Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingAutoSpeedtest(ctx context.Context, site string) (*SettingAutoSpeedtest, error) {
s, f, err := c.GetSetting(ctx, site, SettingAutoSpeedtestKey)
if err != nil {
@@ -61,7 +61,7 @@ func (c *client) GetSettingAutoSpeedtest(ctx context.Context, site string) (*Set
return f.(*SettingAutoSpeedtest), nil
}
// Update SettingAutoSpeedtest Experimental! This function is not yet stable and may change in the future.
// UpdateSettingAutoSpeedtest Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingAutoSpeedtest(ctx context.Context, site string, s *SettingAutoSpeedtest) (*SettingAutoSpeedtest, error) {
s.Key = SettingAutoSpeedtestKey
result, err := c.SetSetting(ctx, site, SettingAutoSpeedtestKey, s)

View File

@@ -51,7 +51,7 @@ func (dst *SettingBaresip) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingBaresip Experimental! This function is not yet stable and may change in the future.
// GetSettingBaresip Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingBaresip(ctx context.Context, site string) (*SettingBaresip, error) {
s, f, err := c.GetSetting(ctx, site, SettingBaresipKey)
if err != nil {
@@ -63,7 +63,7 @@ func (c *client) GetSettingBaresip(ctx context.Context, site string) (*SettingBa
return f.(*SettingBaresip), nil
}
// Update SettingBaresip Experimental! This function is not yet stable and may change in the future.
// UpdateSettingBaresip Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingBaresip(ctx context.Context, site string, s *SettingBaresip) (*SettingBaresip, error) {
s.Key = SettingBaresipKey
result, err := c.SetSetting(ctx, site, SettingBaresipKey, s)

View File

@@ -53,7 +53,7 @@ func (dst *SettingBroadcast) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingBroadcast Experimental! This function is not yet stable and may change in the future.
// GetSettingBroadcast Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingBroadcast(ctx context.Context, site string) (*SettingBroadcast, error) {
s, f, err := c.GetSetting(ctx, site, SettingBroadcastKey)
if err != nil {
@@ -65,7 +65,7 @@ func (c *client) GetSettingBroadcast(ctx context.Context, site string) (*Setting
return f.(*SettingBroadcast), nil
}
// Update SettingBroadcast Experimental! This function is not yet stable and may change in the future.
// UpdateSettingBroadcast Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingBroadcast(ctx context.Context, site string, s *SettingBroadcast) (*SettingBroadcast, error) {
s.Key = SettingBroadcastKey
result, err := c.SetSetting(ctx, site, SettingBroadcastKey, s)

View File

@@ -53,7 +53,7 @@ func (dst *SettingConnectivity) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingConnectivity Experimental! This function is not yet stable and may change in the future.
// GetSettingConnectivity Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingConnectivity(ctx context.Context, site string) (*SettingConnectivity, error) {
s, f, err := c.GetSetting(ctx, site, SettingConnectivityKey)
if err != nil {
@@ -65,7 +65,7 @@ func (c *client) GetSettingConnectivity(ctx context.Context, site string) (*Sett
return f.(*SettingConnectivity), nil
}
// Update SettingConnectivity Experimental! This function is not yet stable and may change in the future.
// UpdateSettingConnectivity Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingConnectivity(ctx context.Context, site string, s *SettingConnectivity) (*SettingConnectivity, error) {
s.Key = SettingConnectivityKey
result, err := c.SetSetting(ctx, site, SettingConnectivityKey, s)

View File

@@ -51,7 +51,7 @@ func (dst *SettingCountry) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingCountry Experimental! This function is not yet stable and may change in the future.
// GetSettingCountry Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingCountry(ctx context.Context, site string) (*SettingCountry, error) {
s, f, err := c.GetSetting(ctx, site, SettingCountryKey)
if err != nil {
@@ -63,7 +63,7 @@ func (c *client) GetSettingCountry(ctx context.Context, site string) (*SettingCo
return f.(*SettingCountry), nil
}
// Update SettingCountry Experimental! This function is not yet stable and may change in the future.
// UpdateSettingCountry Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingCountry(ctx context.Context, site string, s *SettingCountry) (*SettingCountry, error) {
s.Key = SettingCountryKey
result, err := c.SetSetting(ctx, site, SettingCountryKey, s)

View File

@@ -70,7 +70,7 @@ func (dst *SettingDashboardWidgets) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingDashboard Experimental! This function is not yet stable and may change in the future.
// GetSettingDashboard Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingDashboard(ctx context.Context, site string) (*SettingDashboard, error) {
s, f, err := c.GetSetting(ctx, site, SettingDashboardKey)
if err != nil {
@@ -82,7 +82,7 @@ func (c *client) GetSettingDashboard(ctx context.Context, site string) (*Setting
return f.(*SettingDashboard), nil
}
// Update SettingDashboard Experimental! This function is not yet stable and may change in the future.
// UpdateSettingDashboard Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingDashboard(ctx context.Context, site string, s *SettingDashboard) (*SettingDashboard, error) {
s.Key = SettingDashboardKey
result, err := c.SetSetting(ctx, site, SettingDashboardKey, s)

View File

@@ -72,7 +72,7 @@ func (dst *SettingDohCustomServers) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingDoh Experimental! This function is not yet stable and may change in the future.
// GetSettingDoh Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingDoh(ctx context.Context, site string) (*SettingDoh, error) {
s, f, err := c.GetSetting(ctx, site, SettingDohKey)
if err != nil {
@@ -84,7 +84,7 @@ func (c *client) GetSettingDoh(ctx context.Context, site string) (*SettingDoh, e
return f.(*SettingDoh), nil
}
// Update SettingDoh Experimental! This function is not yet stable and may change in the future.
// UpdateSettingDoh Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingDoh(ctx context.Context, site string, s *SettingDoh) (*SettingDoh, error) {
s.Key = SettingDohKey
result, err := c.SetSetting(ctx, site, SettingDohKey, s)

View File

@@ -49,7 +49,7 @@ func (dst *SettingDpi) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingDpi Experimental! This function is not yet stable and may change in the future.
// GetSettingDpi Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingDpi(ctx context.Context, site string) (*SettingDpi, error) {
s, f, err := c.GetSetting(ctx, site, SettingDpiKey)
if err != nil {
@@ -61,7 +61,7 @@ func (c *client) GetSettingDpi(ctx context.Context, site string) (*SettingDpi, e
return f.(*SettingDpi), nil
}
// Update SettingDpi Experimental! This function is not yet stable and may change in the future.
// UpdateSettingDpi Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingDpi(ctx context.Context, site string, s *SettingDpi) (*SettingDpi, error) {
s.Key = SettingDpiKey
result, err := c.SetSetting(ctx, site, SettingDpiKey, s)

View File

@@ -50,7 +50,7 @@ func (dst *SettingElementAdopt) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingElementAdopt Experimental! This function is not yet stable and may change in the future.
// GetSettingElementAdopt Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingElementAdopt(ctx context.Context, site string) (*SettingElementAdopt, error) {
s, f, err := c.GetSetting(ctx, site, SettingElementAdoptKey)
if err != nil {
@@ -62,7 +62,7 @@ func (c *client) GetSettingElementAdopt(ctx context.Context, site string) (*Sett
return f.(*SettingElementAdopt), nil
}
// Update SettingElementAdopt Experimental! This function is not yet stable and may change in the future.
// UpdateSettingElementAdopt Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingElementAdopt(ctx context.Context, site string, s *SettingElementAdopt) (*SettingElementAdopt, error) {
s.Key = SettingElementAdoptKey
result, err := c.SetSetting(ctx, site, SettingElementAdoptKey, s)

View File

@@ -91,7 +91,7 @@ func (dst *SettingEtherLightingSpeedOverrides) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingEtherLighting Experimental! This function is not yet stable and may change in the future.
// GetSettingEtherLighting Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingEtherLighting(ctx context.Context, site string) (*SettingEtherLighting, error) {
s, f, err := c.GetSetting(ctx, site, SettingEtherLightingKey)
if err != nil {
@@ -103,7 +103,7 @@ func (c *client) GetSettingEtherLighting(ctx context.Context, site string) (*Set
return f.(*SettingEtherLighting), nil
}
// Update SettingEtherLighting Experimental! This function is not yet stable and may change in the future.
// UpdateSettingEtherLighting Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingEtherLighting(ctx context.Context, site string, s *SettingEtherLighting) (*SettingEtherLighting, error) {
s.Key = SettingEtherLightingKey
result, err := c.SetSetting(ctx, site, SettingEtherLightingKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingEvaluationScore) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingEvaluationScore Experimental! This function is not yet stable and may change in the future.
// GetSettingEvaluationScore Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingEvaluationScore(ctx context.Context, site string) (*SettingEvaluationScore, error) {
s, f, err := c.GetSetting(ctx, site, SettingEvaluationScoreKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingEvaluationScore(ctx context.Context, site string) (*S
return f.(*SettingEvaluationScore), nil
}
// Update SettingEvaluationScore Experimental! This function is not yet stable and may change in the future.
// UpdateSettingEvaluationScore Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingEvaluationScore(ctx context.Context, site string, s *SettingEvaluationScore) (*SettingEvaluationScore, error) {
s.Key = SettingEvaluationScoreKey
result, err := c.SetSetting(ctx, site, SettingEvaluationScoreKey, s)

View File

@@ -70,7 +70,7 @@ func (dst *SettingGlobalAp) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingGlobalAp Experimental! This function is not yet stable and may change in the future.
// GetSettingGlobalAp Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingGlobalAp(ctx context.Context, site string) (*SettingGlobalAp, error) {
s, f, err := c.GetSetting(ctx, site, SettingGlobalApKey)
if err != nil {
@@ -82,7 +82,7 @@ func (c *client) GetSettingGlobalAp(ctx context.Context, site string) (*SettingG
return f.(*SettingGlobalAp), nil
}
// Update SettingGlobalAp Experimental! This function is not yet stable and may change in the future.
// UpdateSettingGlobalAp Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingGlobalAp(ctx context.Context, site string, s *SettingGlobalAp) (*SettingGlobalAp, error) {
s.Key = SettingGlobalApKey
result, err := c.SetSetting(ctx, site, SettingGlobalApKey, s)

View File

@@ -49,7 +49,7 @@ func (dst *SettingGlobalNat) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingGlobalNat Experimental! This function is not yet stable and may change in the future.
// GetSettingGlobalNat Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingGlobalNat(ctx context.Context, site string) (*SettingGlobalNat, error) {
s, f, err := c.GetSetting(ctx, site, SettingGlobalNatKey)
if err != nil {
@@ -61,7 +61,7 @@ func (c *client) GetSettingGlobalNat(ctx context.Context, site string) (*Setting
return f.(*SettingGlobalNat), nil
}
// Update SettingGlobalNat Experimental! This function is not yet stable and may change in the future.
// UpdateSettingGlobalNat Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingGlobalNat(ctx context.Context, site string, s *SettingGlobalNat) (*SettingGlobalNat, error) {
s.Key = SettingGlobalNatKey
result, err := c.SetSetting(ctx, site, SettingGlobalNatKey, s)

View File

@@ -78,7 +78,7 @@ func (dst *SettingGlobalSwitchAclL3Isolation) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingGlobalSwitch Experimental! This function is not yet stable and may change in the future.
// GetSettingGlobalSwitch Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingGlobalSwitch(ctx context.Context, site string) (*SettingGlobalSwitch, error) {
s, f, err := c.GetSetting(ctx, site, SettingGlobalSwitchKey)
if err != nil {
@@ -90,7 +90,7 @@ func (c *client) GetSettingGlobalSwitch(ctx context.Context, site string) (*Sett
return f.(*SettingGlobalSwitch), nil
}
// Update SettingGlobalSwitch Experimental! This function is not yet stable and may change in the future.
// UpdateSettingGlobalSwitch Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingGlobalSwitch(ctx context.Context, site string, s *SettingGlobalSwitch) (*SettingGlobalSwitch, error) {
s.Key = SettingGlobalSwitchKey
result, err := c.SetSetting(ctx, site, SettingGlobalSwitchKey, s)

View File

@@ -159,7 +159,7 @@ func (dst *SettingGuestAccess) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingGuestAccess Experimental! This function is not yet stable and may change in the future.
// GetSettingGuestAccess Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingGuestAccess(ctx context.Context, site string) (*SettingGuestAccess, error) {
s, f, err := c.GetSetting(ctx, site, SettingGuestAccessKey)
if err != nil {
@@ -171,7 +171,7 @@ func (c *client) GetSettingGuestAccess(ctx context.Context, site string) (*Setti
return f.(*SettingGuestAccess), nil
}
// Update SettingGuestAccess Experimental! This function is not yet stable and may change in the future.
// UpdateSettingGuestAccess Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingGuestAccess(ctx context.Context, site string, s *SettingGuestAccess) (*SettingGuestAccess, error) {
s.Key = SettingGuestAccessKey
result, err := c.SetSetting(ctx, site, SettingGuestAccessKey, s)

View File

@@ -224,7 +224,7 @@ func (dst *SettingIpsWhitelist) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingIps Experimental! This function is not yet stable and may change in the future.
// GetSettingIps Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingIps(ctx context.Context, site string) (*SettingIps, error) {
s, f, err := c.GetSetting(ctx, site, SettingIpsKey)
if err != nil {
@@ -236,7 +236,7 @@ func (c *client) GetSettingIps(ctx context.Context, site string) (*SettingIps, e
return f.(*SettingIps), nil
}
// Update SettingIps Experimental! This function is not yet stable and may change in the future.
// UpdateSettingIps Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingIps(ctx context.Context, site string, s *SettingIps) (*SettingIps, error) {
s.Key = SettingIpsKey
result, err := c.SetSetting(ctx, site, SettingIpsKey, s)

View File

@@ -57,7 +57,7 @@ func (dst *SettingLcm) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingLcm Experimental! This function is not yet stable and may change in the future.
// GetSettingLcm Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingLcm(ctx context.Context, site string) (*SettingLcm, error) {
s, f, err := c.GetSetting(ctx, site, SettingLcmKey)
if err != nil {
@@ -69,7 +69,7 @@ func (c *client) GetSettingLcm(ctx context.Context, site string) (*SettingLcm, e
return f.(*SettingLcm), nil
}
// Update SettingLcm Experimental! This function is not yet stable and may change in the future.
// UpdateSettingLcm Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingLcm(ctx context.Context, site string, s *SettingLcm) (*SettingLcm, error) {
s.Key = SettingLcmKey
result, err := c.SetSetting(ctx, site, SettingLcmKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingLocale) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingLocale Experimental! This function is not yet stable and may change in the future.
// GetSettingLocale Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingLocale(ctx context.Context, site string) (*SettingLocale, error) {
s, f, err := c.GetSetting(ctx, site, SettingLocaleKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingLocale(ctx context.Context, site string) (*SettingLoc
return f.(*SettingLocale), nil
}
// Update SettingLocale Experimental! This function is not yet stable and may change in the future.
// UpdateSettingLocale Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingLocale(ctx context.Context, site string, s *SettingLocale) (*SettingLocale, error) {
s.Key = SettingLocaleKey
result, err := c.SetSetting(ctx, site, SettingLocaleKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingMagicSiteToSiteVpn) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingMagicSiteToSiteVpn Experimental! This function is not yet stable and may change in the future.
// GetSettingMagicSiteToSiteVpn Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingMagicSiteToSiteVpn(ctx context.Context, site string) (*SettingMagicSiteToSiteVpn, error) {
s, f, err := c.GetSetting(ctx, site, SettingMagicSiteToSiteVpnKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingMagicSiteToSiteVpn(ctx context.Context, site string)
return f.(*SettingMagicSiteToSiteVpn), nil
}
// Update SettingMagicSiteToSiteVpn Experimental! This function is not yet stable and may change in the future.
// UpdateSettingMagicSiteToSiteVpn Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingMagicSiteToSiteVpn(ctx context.Context, site string, s *SettingMagicSiteToSiteVpn) (*SettingMagicSiteToSiteVpn, error) {
s.Key = SettingMagicSiteToSiteVpnKey
result, err := c.SetSetting(ctx, site, SettingMagicSiteToSiteVpnKey, s)

View File

@@ -95,7 +95,7 @@ func (dst *SettingMgmtXSshKeys) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingMgmt Experimental! This function is not yet stable and may change in the future.
// GetSettingMgmt Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingMgmt(ctx context.Context, site string) (*SettingMgmt, error) {
s, f, err := c.GetSetting(ctx, site, SettingMgmtKey)
if err != nil {
@@ -107,7 +107,7 @@ func (c *client) GetSettingMgmt(ctx context.Context, site string) (*SettingMgmt,
return f.(*SettingMgmt), nil
}
// Update SettingMgmt Experimental! This function is not yet stable and may change in the future.
// UpdateSettingMgmt Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingMgmt(ctx context.Context, site string, s *SettingMgmt) (*SettingMgmt, error) {
s.Key = SettingMgmtKey
result, err := c.SetSetting(ctx, site, SettingMgmtKey, s)

View File

@@ -71,7 +71,7 @@ func (dst *SettingNetflow) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingNetflow Experimental! This function is not yet stable and may change in the future.
// GetSettingNetflow Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingNetflow(ctx context.Context, site string) (*SettingNetflow, error) {
s, f, err := c.GetSetting(ctx, site, SettingNetflowKey)
if err != nil {
@@ -83,7 +83,7 @@ func (c *client) GetSettingNetflow(ctx context.Context, site string) (*SettingNe
return f.(*SettingNetflow), nil
}
// Update SettingNetflow Experimental! This function is not yet stable and may change in the future.
// UpdateSettingNetflow Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingNetflow(ctx context.Context, site string, s *SettingNetflow) (*SettingNetflow, error) {
s.Key = SettingNetflowKey
result, err := c.SetSetting(ctx, site, SettingNetflowKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingNetworkOptimization) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingNetworkOptimization Experimental! This function is not yet stable and may change in the future.
// GetSettingNetworkOptimization Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingNetworkOptimization(ctx context.Context, site string) (*SettingNetworkOptimization, error) {
s, f, err := c.GetSetting(ctx, site, SettingNetworkOptimizationKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingNetworkOptimization(ctx context.Context, site string)
return f.(*SettingNetworkOptimization), nil
}
// Update SettingNetworkOptimization Experimental! This function is not yet stable and may change in the future.
// UpdateSettingNetworkOptimization Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingNetworkOptimization(ctx context.Context, site string, s *SettingNetworkOptimization) (*SettingNetworkOptimization, error) {
s.Key = SettingNetworkOptimizationKey
result, err := c.SetSetting(ctx, site, SettingNetworkOptimizationKey, s)

View File

@@ -52,7 +52,7 @@ func (dst *SettingNtp) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingNtp Experimental! This function is not yet stable and may change in the future.
// GetSettingNtp Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingNtp(ctx context.Context, site string) (*SettingNtp, error) {
s, f, err := c.GetSetting(ctx, site, SettingNtpKey)
if err != nil {
@@ -64,7 +64,7 @@ func (c *client) GetSettingNtp(ctx context.Context, site string) (*SettingNtp, e
return f.(*SettingNtp), nil
}
// Update SettingNtp Experimental! This function is not yet stable and may change in the future.
// UpdateSettingNtp Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingNtp(ctx context.Context, site string, s *SettingNtp) (*SettingNtp, error) {
s.Key = SettingNtpKey
result, err := c.SetSetting(ctx, site, SettingNtpKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingPorta) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingPorta Experimental! This function is not yet stable and may change in the future.
// GetSettingPorta Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingPorta(ctx context.Context, site string) (*SettingPorta, error) {
s, f, err := c.GetSetting(ctx, site, SettingPortaKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingPorta(ctx context.Context, site string) (*SettingPort
return f.(*SettingPorta), nil
}
// Update SettingPorta Experimental! This function is not yet stable and may change in the future.
// UpdateSettingPorta Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingPorta(ctx context.Context, site string, s *SettingPorta) (*SettingPorta, error) {
s.Key = SettingPortaKey
result, err := c.SetSetting(ctx, site, SettingPortaKey, s)

View File

@@ -115,7 +115,7 @@ func (dst *SettingRadioAiChannelsBlacklist) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingRadioAi Experimental! This function is not yet stable and may change in the future.
// GetSettingRadioAi Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingRadioAi(ctx context.Context, site string) (*SettingRadioAi, error) {
s, f, err := c.GetSetting(ctx, site, SettingRadioAiKey)
if err != nil {
@@ -127,7 +127,7 @@ func (c *client) GetSettingRadioAi(ctx context.Context, site string) (*SettingRa
return f.(*SettingRadioAi), nil
}
// Update SettingRadioAi Experimental! This function is not yet stable and may change in the future.
// UpdateSettingRadioAi Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingRadioAi(ctx context.Context, site string, s *SettingRadioAi) (*SettingRadioAi, error) {
s.Key = SettingRadioAiKey
result, err := c.SetSetting(ctx, site, SettingRadioAiKey, s)

View File

@@ -62,7 +62,7 @@ func (dst *SettingRadius) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingRadius Experimental! This function is not yet stable and may change in the future.
// GetSettingRadius Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingRadius(ctx context.Context, site string) (*SettingRadius, error) {
s, f, err := c.GetSetting(ctx, site, SettingRadiusKey)
if err != nil {
@@ -74,7 +74,7 @@ func (c *client) GetSettingRadius(ctx context.Context, site string) (*SettingRad
return f.(*SettingRadius), nil
}
// Update SettingRadius Experimental! This function is not yet stable and may change in the future.
// UpdateSettingRadius Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingRadius(ctx context.Context, site string, s *SettingRadius) (*SettingRadius, error) {
s.Key = SettingRadiusKey
result, err := c.SetSetting(ctx, site, SettingRadiusKey, s)

View File

@@ -63,7 +63,7 @@ func (dst *SettingRsyslogd) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingRsyslogd Experimental! This function is not yet stable and may change in the future.
// GetSettingRsyslogd Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingRsyslogd(ctx context.Context, site string) (*SettingRsyslogd, error) {
s, f, err := c.GetSetting(ctx, site, SettingRsyslogdKey)
if err != nil {
@@ -75,7 +75,7 @@ func (c *client) GetSettingRsyslogd(ctx context.Context, site string) (*SettingR
return f.(*SettingRsyslogd), nil
}
// Update SettingRsyslogd Experimental! This function is not yet stable and may change in the future.
// UpdateSettingRsyslogd Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingRsyslogd(ctx context.Context, site string, s *SettingRsyslogd) (*SettingRsyslogd, error) {
s.Key = SettingRsyslogdKey
result, err := c.SetSetting(ctx, site, SettingRsyslogdKey, s)

View File

@@ -52,7 +52,7 @@ func (dst *SettingSnmp) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSnmp Experimental! This function is not yet stable and may change in the future.
// GetSettingSnmp Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSnmp(ctx context.Context, site string) (*SettingSnmp, error) {
s, f, err := c.GetSetting(ctx, site, SettingSnmpKey)
if err != nil {
@@ -64,7 +64,7 @@ func (c *client) GetSettingSnmp(ctx context.Context, site string) (*SettingSnmp,
return f.(*SettingSnmp), nil
}
// Update SettingSnmp Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSnmp Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSnmp(ctx context.Context, site string, s *SettingSnmp) (*SettingSnmp, error) {
s.Key = SettingSnmpKey
result, err := c.SetSetting(ctx, site, SettingSnmpKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingSslInspection) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSslInspection Experimental! This function is not yet stable and may change in the future.
// GetSettingSslInspection Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSslInspection(ctx context.Context, site string) (*SettingSslInspection, error) {
s, f, err := c.GetSetting(ctx, site, SettingSslInspectionKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingSslInspection(ctx context.Context, site string) (*Set
return f.(*SettingSslInspection), nil
}
// Update SettingSslInspection Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSslInspection Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSslInspection(ctx context.Context, site string, s *SettingSslInspection) (*SettingSslInspection, error) {
s.Key = SettingSslInspectionKey
result, err := c.SetSetting(ctx, site, SettingSslInspectionKey, s)

View File

@@ -54,7 +54,7 @@ func (dst *SettingSuperCloudaccess) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSuperCloudaccess Experimental! This function is not yet stable and may change in the future.
// GetSettingSuperCloudaccess Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSuperCloudaccess(ctx context.Context, site string) (*SettingSuperCloudaccess, error) {
s, f, err := c.GetSetting(ctx, site, SettingSuperCloudaccessKey)
if err != nil {
@@ -66,7 +66,7 @@ func (c *client) GetSettingSuperCloudaccess(ctx context.Context, site string) (*
return f.(*SettingSuperCloudaccess), nil
}
// Update SettingSuperCloudaccess Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSuperCloudaccess Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSuperCloudaccess(ctx context.Context, site string, s *SettingSuperCloudaccess) (*SettingSuperCloudaccess, error) {
s.Key = SettingSuperCloudaccessKey
result, err := c.SetSetting(ctx, site, SettingSuperCloudaccessKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingSuperEvents) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSuperEvents Experimental! This function is not yet stable and may change in the future.
// GetSettingSuperEvents Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSuperEvents(ctx context.Context, site string) (*SettingSuperEvents, error) {
s, f, err := c.GetSetting(ctx, site, SettingSuperEventsKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingSuperEvents(ctx context.Context, site string) (*Setti
return f.(*SettingSuperEvents), nil
}
// Update SettingSuperEvents Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSuperEvents Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSuperEvents(ctx context.Context, site string, s *SettingSuperEvents) (*SettingSuperEvents, error) {
s.Key = SettingSuperEventsKey
result, err := c.SetSetting(ctx, site, SettingSuperEventsKey, s)

View File

@@ -50,7 +50,7 @@ func (dst *SettingSuperFwupdate) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSuperFwupdate Experimental! This function is not yet stable and may change in the future.
// GetSettingSuperFwupdate Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSuperFwupdate(ctx context.Context, site string) (*SettingSuperFwupdate, error) {
s, f, err := c.GetSetting(ctx, site, SettingSuperFwupdateKey)
if err != nil {
@@ -62,7 +62,7 @@ func (c *client) GetSettingSuperFwupdate(ctx context.Context, site string) (*Set
return f.(*SettingSuperFwupdate), nil
}
// Update SettingSuperFwupdate Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSuperFwupdate Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSuperFwupdate(ctx context.Context, site string, s *SettingSuperFwupdate) (*SettingSuperFwupdate, error) {
s.Key = SettingSuperFwupdateKey
result, err := c.SetSetting(ctx, site, SettingSuperFwupdateKey, s)

View File

@@ -49,7 +49,7 @@ func (dst *SettingSuperIdentity) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSuperIdentity Experimental! This function is not yet stable and may change in the future.
// GetSettingSuperIdentity Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSuperIdentity(ctx context.Context, site string) (*SettingSuperIdentity, error) {
s, f, err := c.GetSetting(ctx, site, SettingSuperIdentityKey)
if err != nil {
@@ -61,7 +61,7 @@ func (c *client) GetSettingSuperIdentity(ctx context.Context, site string) (*Set
return f.(*SettingSuperIdentity), nil
}
// Update SettingSuperIdentity Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSuperIdentity Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSuperIdentity(ctx context.Context, site string, s *SettingSuperIdentity) (*SettingSuperIdentity, error) {
s.Key = SettingSuperIdentityKey
result, err := c.SetSetting(ctx, site, SettingSuperIdentityKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingSuperMail) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSuperMail Experimental! This function is not yet stable and may change in the future.
// GetSettingSuperMail Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSuperMail(ctx context.Context, site string) (*SettingSuperMail, error) {
s, f, err := c.GetSetting(ctx, site, SettingSuperMailKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingSuperMail(ctx context.Context, site string) (*Setting
return f.(*SettingSuperMail), nil
}
// Update SettingSuperMail Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSuperMail Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSuperMail(ctx context.Context, site string, s *SettingSuperMail) (*SettingSuperMail, error) {
s.Key = SettingSuperMailKey
result, err := c.SetSetting(ctx, site, SettingSuperMailKey, s)

View File

@@ -113,7 +113,7 @@ func (dst *SettingSuperMgmt) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSuperMgmt Experimental! This function is not yet stable and may change in the future.
// GetSettingSuperMgmt Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSuperMgmt(ctx context.Context, site string) (*SettingSuperMgmt, error) {
s, f, err := c.GetSetting(ctx, site, SettingSuperMgmtKey)
if err != nil {
@@ -125,7 +125,7 @@ func (c *client) GetSettingSuperMgmt(ctx context.Context, site string) (*Setting
return f.(*SettingSuperMgmt), nil
}
// Update SettingSuperMgmt Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSuperMgmt Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSuperMgmt(ctx context.Context, site string, s *SettingSuperMgmt) (*SettingSuperMgmt, error) {
s.Key = SettingSuperMgmtKey
result, err := c.SetSetting(ctx, site, SettingSuperMgmtKey, s)

View File

@@ -53,7 +53,7 @@ func (dst *SettingSuperSdn) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSuperSdn Experimental! This function is not yet stable and may change in the future.
// GetSettingSuperSdn Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSuperSdn(ctx context.Context, site string) (*SettingSuperSdn, error) {
s, f, err := c.GetSetting(ctx, site, SettingSuperSdnKey)
if err != nil {
@@ -65,7 +65,7 @@ func (c *client) GetSettingSuperSdn(ctx context.Context, site string) (*SettingS
return f.(*SettingSuperSdn), nil
}
// Update SettingSuperSdn Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSuperSdn Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSuperSdn(ctx context.Context, site string, s *SettingSuperSdn) (*SettingSuperSdn, error) {
s.Key = SettingSuperSdnKey
result, err := c.SetSetting(ctx, site, SettingSuperSdnKey, s)

View File

@@ -59,7 +59,7 @@ func (dst *SettingSuperSmtp) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingSuperSmtp Experimental! This function is not yet stable and may change in the future.
// GetSettingSuperSmtp Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingSuperSmtp(ctx context.Context, site string) (*SettingSuperSmtp, error) {
s, f, err := c.GetSetting(ctx, site, SettingSuperSmtpKey)
if err != nil {
@@ -71,7 +71,7 @@ func (c *client) GetSettingSuperSmtp(ctx context.Context, site string) (*Setting
return f.(*SettingSuperSmtp), nil
}
// Update SettingSuperSmtp Experimental! This function is not yet stable and may change in the future.
// UpdateSettingSuperSmtp Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingSuperSmtp(ctx context.Context, site string, s *SettingSuperSmtp) (*SettingSuperSmtp, error) {
s.Key = SettingSuperSmtpKey
result, err := c.SetSetting(ctx, site, SettingSuperSmtpKey, s)

View File

@@ -49,7 +49,7 @@ func (dst *SettingTeleport) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingTeleport Experimental! This function is not yet stable and may change in the future.
// GetSettingTeleport Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingTeleport(ctx context.Context, site string) (*SettingTeleport, error) {
s, f, err := c.GetSetting(ctx, site, SettingTeleportKey)
if err != nil {
@@ -61,7 +61,7 @@ func (c *client) GetSettingTeleport(ctx context.Context, site string) (*SettingT
return f.(*SettingTeleport), nil
}
// Update SettingTeleport Experimental! This function is not yet stable and may change in the future.
// UpdateSettingTeleport Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingTeleport(ctx context.Context, site string, s *SettingTeleport) (*SettingTeleport, error) {
s.Key = SettingTeleportKey
result, err := c.SetSetting(ctx, site, SettingTeleportKey, s)

View File

@@ -160,7 +160,7 @@ func (dst *SettingUsgDNSVerification) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingUsg Experimental! This function is not yet stable and may change in the future.
// GetSettingUsg Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingUsg(ctx context.Context, site string) (*SettingUsg, error) {
s, f, err := c.GetSetting(ctx, site, SettingUsgKey)
if err != nil {
@@ -172,7 +172,7 @@ func (c *client) GetSettingUsg(ctx context.Context, site string) (*SettingUsg, e
return f.(*SettingUsg), nil
}
// Update SettingUsg Experimental! This function is not yet stable and may change in the future.
// UpdateSettingUsg Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingUsg(ctx context.Context, site string, s *SettingUsg) (*SettingUsg, error) {
s.Key = SettingUsgKey
result, err := c.SetSetting(ctx, site, SettingUsgKey, s)

View File

@@ -48,7 +48,7 @@ func (dst *SettingUsw) UnmarshalJSON(b []byte) error {
return nil
}
// Update SettingUsw Experimental! This function is not yet stable and may change in the future.
// GetSettingUsw Experimental! This function is not yet stable and may change in the future.
func (c *client) GetSettingUsw(ctx context.Context, site string) (*SettingUsw, error) {
s, f, err := c.GetSetting(ctx, site, SettingUswKey)
if err != nil {
@@ -60,7 +60,7 @@ func (c *client) GetSettingUsw(ctx context.Context, site string) (*SettingUsw, e
return f.(*SettingUsw), nil
}
// Update SettingUsw Experimental! This function is not yet stable and may change in the future.
// UpdateSettingUsw Experimental! This function is not yet stable and may change in the future.
func (c *client) UpdateSettingUsw(ctx context.Context, site string, s *SettingUsw) (*SettingUsw, error) {
s.Key = SettingUswKey
result, err := c.SetSetting(ctx, site, SettingUswKey, s)