@@ -93,11 +93,11 @@ func (op *VersionOp) Delete(ctx context.Context, id v1.ApplicationVersionNumber)
9393var _ VersionAPI = (* VersionOp )(nil )
9494
9595type ExposedPort struct {
96- TargetPort v1.Port
97- LoadBalancerPort * v1.Port
98- UseLetsEncrypt bool
99- Host []string
100- HealthCheck * v1.HealthCheck
96+ TargetPort v1.Port `json:"targetPort"`
97+ LoadBalancerPort * v1.Port `json:"loadBalancerPort"`
98+ UseLetsEncrypt bool `json:"useLetsEncrypt"`
99+ Host []string `json:"host"`
100+ HealthCheck * v1.HealthCheck `json:"healthCheck"`
101101}
102102
103103func (p ExposedPort ) into () (ret v1.ExposedPort ) {
@@ -119,9 +119,9 @@ func (p *ExposedPort) From(res *v1.ExposedPort) {
119119}
120120
121121type EnvironmentVariable struct {
122- Key string
123- Value * string
124- Secret bool
122+ Key string `json:"key"`
123+ Value * string `json:"value"`
124+ Secret bool `json:"secret"`
125125}
126126
127127func (e EnvironmentVariable ) into () (ret v1.CreateEnvironmentVariable ) {
@@ -139,21 +139,21 @@ func (e *EnvironmentVariable) From(res *v1.ReadEnvironmentVariable) {
139139}
140140
141141type CreateParams struct {
142- CPU int64
143- Memory int64
144- ScalingMode v1.ScalingMode
145- FixedScale * int32
146- MinScale * int32
147- MaxScale * int32
148- ScaleInThreshold * int32
149- ScaleOutThreshold * int32
150- Image string
151- Cmd []string
152- RegistryUsername * string
153- RegistryPassword * string
154- RegistryPasswordAction v1.RegistryPasswordAction
155- ExposedPorts []ExposedPort
156- EnvVars []EnvironmentVariable
142+ CPU int64 `json:"cpu"`
143+ Memory int64 `json:"memory"`
144+ ScalingMode v1.ScalingMode `json:"scalingMode"`
145+ FixedScale * int32 `json:"fixedScale"`
146+ MinScale * int32 `json:"minScale"`
147+ MaxScale * int32 `json:"maxScale"`
148+ ScaleInThreshold * int32 `json:"scaleInThreshold"`
149+ ScaleOutThreshold * int32 `json:"scaleOutThreshold"`
150+ Image string `json:"image"`
151+ Cmd []string `json:"cmd"`
152+ RegistryUsername * string `json:"registryUsername"`
153+ RegistryPassword * string `json:"registryPassword"`
154+ RegistryPasswordAction v1.RegistryPasswordAction `json:"registryPasswordAction"`
155+ ExposedPorts []ExposedPort `json:"exposedPorts"`
156+ EnvVars []EnvironmentVariable `json:"envVars"`
157157}
158158
159159func (c * CreateParams ) into () (ret v1.CreateApplicationVersion ) {
@@ -177,23 +177,23 @@ func (c *CreateParams) into() (ret v1.CreateApplicationVersion) {
177177}
178178
179179type VersionDetail struct {
180- Version v1.ApplicationVersionNumber
181- CPU int64
182- Memory int64
183- ScalingMode v1.ScalingMode
184- FixedScale * int32
185- MinScale * int32
186- MaxScale * int32
187- ScaleInThreshold * int32
188- ScaleOutThreshold * int32
189- Image string
190- Cmd []string
191- RegistryUsername * string
192- RegistryPassword * string
193- ActiveNodeCount int64
194- Created int
195- ExposedPorts []ExposedPort
196- EnvVars []EnvironmentVariable
180+ Version v1.ApplicationVersionNumber `json:"version"`
181+ CPU int64 `json:"cpu"`
182+ Memory int64 `json:"memory"`
183+ ScalingMode v1.ScalingMode `json:"scalingMode"`
184+ FixedScale * int32 `json:"fixedScale"`
185+ MinScale * int32 `json:"minScale"`
186+ MaxScale * int32 `json:"maxScale"`
187+ ScaleInThreshold * int32 `json:"scaleInThreshold"`
188+ ScaleOutThreshold * int32 `json:"scaleOutThreshold"`
189+ Image string `json:"image"`
190+ Cmd []string `json:"cmd"`
191+ RegistryUsername * string `json:"registryUsername"`
192+ RegistryPassword * string `json:"registryPassword"`
193+ ActiveNodeCount int64 `json:"activeNodeCount"`
194+ Created int `json:"created"`
195+ ExposedPorts []ExposedPort `json:"exposedPorts"`
196+ EnvVars []EnvironmentVariable `json:"envVars"`
197197}
198198
199199func (v * VersionDetail ) from (res * v1.ReadApplicationVersionDetail ) {
0 commit comments