@@ -31,8 +31,8 @@ func WorkstationClusterSpec_ToProto(mapCtx *direct.MapContext, in *krm.Workstati
31
31
DisplayName : direct .ValueOf (in .DisplayName ),
32
32
Annotations : WorkstationClusterAnnotations_ToProto (mapCtx , in .Annotations ),
33
33
Labels : WorkstationClusterLabels_ToProto (mapCtx , in .Labels ),
34
- Network : WorkstationClusterNetworkRef_ToProto ( mapCtx , in .NetworkRef ) ,
35
- Subnetwork : WorkstationClusterSubnetworkRef_ToProto ( mapCtx , in .SubnetworkRef ) ,
34
+ Network : in .NetworkRef . External ,
35
+ Subnetwork : in .SubnetworkRef . External ,
36
36
PrivateClusterConfig : WorkstationCluster_PrivateClusterConfig_ToProto (mapCtx , in .PrivateClusterConfig ),
37
37
}
38
38
return out
@@ -60,20 +60,6 @@ func WorkstationClusterLabels_ToProto(mapCtx *direct.MapContext, in []krm.Workst
60
60
return out
61
61
}
62
62
63
- func WorkstationClusterNetworkRef_ToProto (mapCtx * direct.MapContext , in * refs.ComputeNetworkRef ) string {
64
- if in == nil {
65
- return ""
66
- }
67
- return in .External
68
- }
69
-
70
- func WorkstationClusterSubnetworkRef_ToProto (mapCtx * direct.MapContext , in * refs.ComputeSubnetworkRef ) string {
71
- if in == nil {
72
- return ""
73
- }
74
- return in .External
75
- }
76
-
77
63
func WorkstationCluster_PrivateClusterConfig_ToProto (mapCtx * direct.MapContext , in * krm.WorkstationCluster_PrivateClusterConfig ) * pb.WorkstationCluster_PrivateClusterConfig {
78
64
if in == nil {
79
65
return nil
@@ -101,11 +87,15 @@ func WorkstationClusterSpec_FromProto(mapCtx *direct.MapContext, in *pb.Workstat
101
87
return nil
102
88
}
103
89
out := & krm.WorkstationClusterSpec {
104
- DisplayName : direct .LazyPtr (in .GetDisplayName ()),
105
- Annotations : WorkstationClusterAnnotations_FromProto (mapCtx , in .GetAnnotations ()),
106
- Labels : WorkstationClusterLabels_FromProto (mapCtx , in .GetLabels ()),
107
- NetworkRef : WorkstationClusterNetworkRef_FromProto (mapCtx , in .GetNetwork ()),
108
- SubnetworkRef : WorkstationClusterSubnetworkRef_FromProto (mapCtx , in .GetSubnetwork ()),
90
+ DisplayName : direct .LazyPtr (in .GetDisplayName ()),
91
+ Annotations : WorkstationClusterAnnotations_FromProto (mapCtx , in .GetAnnotations ()),
92
+ Labels : WorkstationClusterLabels_FromProto (mapCtx , in .GetLabels ()),
93
+ NetworkRef : refs.ComputeNetworkRef {
94
+ External : in .GetNetwork (),
95
+ },
96
+ SubnetworkRef : refs.ComputeSubnetworkRef {
97
+ External : in .GetSubnetwork (),
98
+ },
109
99
PrivateClusterConfig : WorkstationCluster_PrivateClusterConfig_FromProto (mapCtx , in .GetPrivateClusterConfig ()),
110
100
}
111
101
return out
@@ -139,24 +129,6 @@ func WorkstationClusterLabels_FromProto(mapCtx *direct.MapContext, in map[string
139
129
return out
140
130
}
141
131
142
- func WorkstationClusterNetworkRef_FromProto (mapCtx * direct.MapContext , in string ) * refs.ComputeNetworkRef {
143
- if in == "" {
144
- return nil
145
- }
146
- return & refs.ComputeNetworkRef {
147
- External : in ,
148
- }
149
- }
150
-
151
- func WorkstationClusterSubnetworkRef_FromProto (mapCtx * direct.MapContext , in string ) * refs.ComputeSubnetworkRef {
152
- if in == "" {
153
- return nil
154
- }
155
- return & refs.ComputeSubnetworkRef {
156
- External : in ,
157
- }
158
- }
159
-
160
132
func WorkstationCluster_PrivateClusterConfig_FromProto (mapCtx * direct.MapContext , in * pb.WorkstationCluster_PrivateClusterConfig ) * krm.WorkstationCluster_PrivateClusterConfig {
161
133
if in == nil {
162
134
return nil
0 commit comments