Skip to content

Commit 8627f39

Browse files
authored
Merge pull request #9 from zeropsio/addVpnNotFound
Add vpnPublicKeyNotFound
2 parents 694fe73 + 222981e commit 8627f39

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

dto/input/body/putProjectRemoteLogging.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ var _ strconv.NumError
1414
var _ json.Unmarshaler = (*PutProjectRemoteLogging)(nil)
1515

1616
type PutProjectRemoteLogging struct {
17-
SyslogConfig types.Text `json:"syslogConfig"`
18-
Certificate types.Text `json:"certificate"`
17+
SyslogConfig types.Text `json:"syslogConfig"`
18+
Certificate types.Text `json:"certificate"`
19+
Type types.StringNull `json:"type"`
1920
}
2021

2122
func (dto PutProjectRemoteLogging) GetSyslogConfig() types.Text {
@@ -24,11 +25,15 @@ func (dto PutProjectRemoteLogging) GetSyslogConfig() types.Text {
2425
func (dto PutProjectRemoteLogging) GetCertificate() types.Text {
2526
return dto.Certificate
2627
}
28+
func (dto PutProjectRemoteLogging) GetType() types.StringNull {
29+
return dto.Type
30+
}
2731

2832
func (dto *PutProjectRemoteLogging) UnmarshalJSON(b []byte) error {
2933
var aux = struct {
3034
SyslogConfig *types.Text
3135
Certificate *types.Text
36+
Type types.StringNull
3237
}{}
3338
err := json.Unmarshal(b, &aux)
3439
if err != nil {
@@ -46,6 +51,7 @@ func (dto *PutProjectRemoteLogging) UnmarshalJSON(b []byte) error {
4651
}
4752
dto.SyslogConfig = *aux.SyslogConfig
4853
dto.Certificate = *aux.Certificate
54+
dto.Type = aux.Type
4955

5056
return nil
5157
}

dto/output/esProject.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ type EsProject struct {
2424
PublicIpV4 types.StringNull `json:"publicIpV4"`
2525
PublicIpV6 types.StringNull `json:"publicIpV6"`
2626
ZeropsSubdomainHost types.StringNull `json:"zeropsSubdomainHost"`
27+
LogForwardingType types.StringNull `json:"logForwardingType"`
2728
AutoStartup types.Bool `json:"autoStartup"`
2829
}

dto/output/project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ type Project struct {
2424
PublicIpV4 types.StringNull `json:"publicIpV4"`
2525
PublicIpV6 types.StringNull `json:"publicIpV6"`
2626
ZeropsSubdomainHost types.StringNull `json:"zeropsSubdomainHost"`
27+
LogForwardingType types.StringNull `json:"logForwardingType"`
2728
AutoStartup types.Bool `json:"autoStartup"`
2829
}

errorCode/codes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ const (
297297
PriceListNotFound ErrorCode = "priceListNotFound"
298298
CostLimitTooSmall ErrorCode = "costLimitTooSmall"
299299
InvalidVpnPublicKey ErrorCode = "invalidVpnPublicKey"
300+
VpnPublicKeyNotFound ErrorCode = "vpnPublicKeyNotFound"
300301
YamlPreprocessingMaxDurationExceeded ErrorCode = "yamlPreprocessingMaxDurationExceeded"
301302
YamlPreprocessingError ErrorCode = "yamlPreprocessingError"
302303
ProjectImportInvalidYaml ErrorCode = "projectImportInvalidYaml"

0 commit comments

Comments
 (0)