From fabd5a61251d5b338e266222b3b86d8025c571c0 Mon Sep 17 00:00:00 2001 From: staebler Date: Tue, 26 Sep 2017 16:05:48 -0400 Subject: [PATCH] Update generated types. Remove properties state parameters from unstructured round-trip test. --- pkg/apis/servicecatalog/unstructured_test.go | 8 + .../v1alpha1/types.generated.go | 2687 +++++++++++------ 2 files changed, 1801 insertions(+), 894 deletions(-) diff --git a/pkg/apis/servicecatalog/unstructured_test.go b/pkg/apis/servicecatalog/unstructured_test.go index efca6ee3ccb..6553751f36b 100644 --- a/pkg/apis/servicecatalog/unstructured_test.go +++ b/pkg/apis/servicecatalog/unstructured_test.go @@ -77,6 +77,14 @@ func doUnstructuredRoundTrip(t *testing.T, group testapi.TestGroup, kind string) } bs.Parameters = nil }, + func(ps *servicecatalog.ServiceInstancePropertiesState, c fuzz.Continue) { + c.FuzzNoCustom(ps) + ps.Parameters = nil + }, + func(ps *servicecatalog.ServiceInstanceCredentialPropertiesState, c fuzz.Continue) { + c.FuzzNoCustom(ps) + ps.Parameters = nil + }, ).Fuzz(internalObj) item, err := api.Scheme.New(group.GroupVersion().WithKind(kind)) diff --git a/pkg/apis/servicecatalog/v1alpha1/types.generated.go b/pkg/apis/servicecatalog/v1alpha1/types.generated.go index 28c49310aca..bb9dbddc9bc 100644 --- a/pkg/apis/servicecatalog/v1alpha1/types.generated.go +++ b/pkg/apis/servicecatalog/v1alpha1/types.generated.go @@ -7281,7 +7281,7 @@ func (x *ServiceInstanceStatus) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [7]bool + var yyq2 [9]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[2] = x.LastOperation != nil @@ -7290,9 +7290,9 @@ func (x *ServiceInstanceStatus) CodecEncodeSelf(e *codec1978.Encoder) { yyq2[6] = x.OperationStartTime != nil var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(7) + r.EncodeArrayStart(9) } else { - yynn2 = 3 + yynn2 = 5 for _, b := range yyq2 { if b { yynn2++ @@ -7494,6 +7494,40 @@ func (x *ServiceInstanceStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.InProgressProperties == nil { + r.EncodeNil() + } else { + x.InProgressProperties.CodecEncodeSelf(e) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("InProgressProperties")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.InProgressProperties == nil { + r.EncodeNil() + } else { + x.InProgressProperties.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.ExternalProperties == nil { + r.EncodeNil() + } else { + x.ExternalProperties.CodecEncodeSelf(e) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ExternalProperties")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ExternalProperties == nil { + r.EncodeNil() + } else { + x.ExternalProperties.CodecEncodeSelf(e) + } + } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -7651,6 +7685,28 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decod z.DecFallback(x.OperationStartTime, false) } } + case "InProgressProperties": + if r.TryDecodeAsNil() { + if x.InProgressProperties != nil { + x.InProgressProperties = nil + } + } else { + if x.InProgressProperties == nil { + x.InProgressProperties = new(ServiceInstancePropertiesState) + } + x.InProgressProperties.CodecDecodeSelf(d) + } + case "ExternalProperties": + if r.TryDecodeAsNil() { + if x.ExternalProperties != nil { + x.ExternalProperties = nil + } + } else { + if x.ExternalProperties == nil { + x.ExternalProperties = new(ServiceInstancePropertiesState) + } + x.ExternalProperties.CodecDecodeSelf(d) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 @@ -7662,16 +7718,16 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj17 int - var yyb17 bool - var yyhl17 bool = l >= 0 - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + var yyj19 int + var yyb19 bool + var yyhl19 bool = l >= 0 + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l } else { - yyb17 = r.CheckBreak() + yyb19 = r.CheckBreak() } - if yyb17 { + if yyb19 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7679,21 +7735,21 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv18 := &x.Conditions - yym19 := z.DecBinary() - _ = yym19 + yyv20 := &x.Conditions + yym21 := z.DecBinary() + _ = yym21 if false { } else { - h.decSliceServiceInstanceCondition((*[]ServiceInstanceCondition)(yyv18), d) + h.decSliceServiceInstanceCondition((*[]ServiceInstanceCondition)(yyv20), d) } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l } else { - yyb17 = r.CheckBreak() + yyb19 = r.CheckBreak() } - if yyb17 { + if yyb19 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7701,21 +7757,21 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.AsyncOpInProgress = false } else { - yyv20 := &x.AsyncOpInProgress - yym21 := z.DecBinary() - _ = yym21 + yyv22 := &x.AsyncOpInProgress + yym23 := z.DecBinary() + _ = yym23 if false { } else { - *((*bool)(yyv20)) = r.DecodeBool() + *((*bool)(yyv22)) = r.DecodeBool() } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l } else { - yyb17 = r.CheckBreak() + yyb19 = r.CheckBreak() } - if yyb17 { + if yyb19 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7728,20 +7784,20 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.LastOperation == nil { x.LastOperation = new(string) } - yym23 := z.DecBinary() - _ = yym23 + yym25 := z.DecBinary() + _ = yym25 if false { } else { *((*string)(x.LastOperation)) = r.DecodeString() } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l } else { - yyb17 = r.CheckBreak() + yyb19 = r.CheckBreak() } - if yyb17 { + if yyb19 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7754,20 +7810,20 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.DashboardURL == nil { x.DashboardURL = new(string) } - yym25 := z.DecBinary() - _ = yym25 + yym27 := z.DecBinary() + _ = yym27 if false { } else { *((*string)(x.DashboardURL)) = r.DecodeString() } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l } else { - yyb17 = r.CheckBreak() + yyb19 = r.CheckBreak() } - if yyb17 { + if yyb19 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7775,16 +7831,16 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.CurrentOperation = "" } else { - yyv26 := &x.CurrentOperation - yyv26.CodecDecodeSelf(d) + yyv28 := &x.CurrentOperation + yyv28.CodecDecodeSelf(d) } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l } else { - yyb17 = r.CheckBreak() + yyb19 = r.CheckBreak() } - if yyb17 { + if yyb19 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7792,21 +7848,21 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ReconciledGeneration = 0 } else { - yyv27 := &x.ReconciledGeneration - yym28 := z.DecBinary() - _ = yym28 + yyv29 := &x.ReconciledGeneration + yym30 := z.DecBinary() + _ = yym30 if false { } else { - *((*int64)(yyv27)) = int64(r.DecodeInt(64)) + *((*int64)(yyv29)) = int64(r.DecodeInt(64)) } } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l } else { - yyb17 = r.CheckBreak() + yyb19 = r.CheckBreak() } - if yyb17 { + if yyb19 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7819,30 +7875,72 @@ func (x *ServiceInstanceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.OperationStartTime == nil { x.OperationStartTime = new(pkg1_v1.Time) } - yym30 := z.DecBinary() - _ = yym30 + yym32 := z.DecBinary() + _ = yym32 if false { } else if z.HasExtensions() && z.DecExt(x.OperationStartTime) { - } else if yym30 { + } else if yym32 { z.DecBinaryUnmarshal(x.OperationStartTime) - } else if !yym30 && z.IsJSONHandle() { + } else if !yym32 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.OperationStartTime) } else { z.DecFallback(x.OperationStartTime, false) } } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.InProgressProperties != nil { + x.InProgressProperties = nil + } + } else { + if x.InProgressProperties == nil { + x.InProgressProperties = new(ServiceInstancePropertiesState) + } + x.InProgressProperties.CodecDecodeSelf(d) + } + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l + } else { + yyb19 = r.CheckBreak() + } + if yyb19 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ExternalProperties != nil { + x.ExternalProperties = nil + } + } else { + if x.ExternalProperties == nil { + x.ExternalProperties = new(ServiceInstancePropertiesState) + } + x.ExternalProperties.CodecDecodeSelf(d) + } for { - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + yyj19++ + if yyhl19 { + yyb19 = yyj19 > l } else { - yyb17 = r.CheckBreak() + yyb19 = r.CheckBreak() } - if yyb17 { + if yyb19 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj17-1, "") + z.DecStructFieldNotFound(yyj19-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8267,7 +8365,7 @@ func (x *ServiceInstanceOperation) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ServiceInstanceCredentialList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *ServiceInstancePropertiesState) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -8284,9 +8382,9 @@ func (x *ServiceInstanceCredentialList) CodecEncodeSelf(e *codec1978.Encoder) { var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[0] = x.Kind != "" - yyq2[1] = x.APIVersion != "" - yyq2[2] = true + yyq2[1] = x.Parameters != nil + yyq2[2] = x.ParametersChecksum != "" + yyq2[3] = x.UserInfo != nil var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) @@ -8302,107 +8400,107 @@ func (x *ServiceInstanceCredentialList) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[0] { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + yym4 := z.EncBinary() + _ = yym4 + if false { } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeString(codecSelferC_UTF81234, string(x.PlanName)) } } else { - if yyq2[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym5 := z.EncBinary() - _ = yym5 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("planName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PlanName)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - yym7 := z.EncBinary() - _ = yym7 - if false { + if x.Parameters == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym7 := z.EncBinary() + _ = yym7 + if false { + } else if z.HasExtensions() && z.EncExt(x.Parameters) { + } else if !yym7 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Parameters) + } else { + z.EncFallback(x.Parameters) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("parameters")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym8 := z.EncBinary() - _ = yym8 - if false { + if x.Parameters == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else if z.HasExtensions() && z.EncExt(x.Parameters) { + } else if !yym8 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Parameters) + } else { + z.EncFallback(x.Parameters) + } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy10 := &x.ListMeta - yym11 := z.EncBinary() - _ = yym11 + yym10 := z.EncBinary() + _ = yym10 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { } else { - z.EncFallback(yy10) + r.EncodeString(codecSelferC_UTF81234, string(x.ParametersChecksum)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("parameterChecksum")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.ListMeta - yym13 := z.EncBinary() - _ = yym13 + yym11 := z.EncBinary() + _ = yym11 if false { - } else if z.HasExtensions() && z.EncExt(yy12) { } else { - z.EncFallback(yy12) + r.EncodeString(codecSelferC_UTF81234, string(x.ParametersChecksum)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym15 := z.EncBinary() - _ = yym15 - if false { + if yyq2[3] { + if x.UserInfo == nil { + r.EncodeNil() } else { - h.encSliceServiceInstanceCredential(([]ServiceInstanceCredential)(x.Items), e) + x.UserInfo.CodecEncodeSelf(e) } + } else { + r.EncodeNil() } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym16 := z.EncBinary() - _ = yym16 - if false { + if yyq2[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("userInfo")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.UserInfo == nil { + r.EncodeNil() } else { - h.encSliceServiceInstanceCredential(([]ServiceInstanceCredential)(x.Items), e) + x.UserInfo.CodecEncodeSelf(e) } } } @@ -8415,7 +8513,7 @@ func (x *ServiceInstanceCredentialList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ServiceInstanceCredentialList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ServiceInstancePropertiesState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -8445,7 +8543,7 @@ func (x *ServiceInstanceCredentialList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ServiceInstanceCredentialList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ServiceInstancePropertiesState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -8467,11 +8565,11 @@ func (x *ServiceInstanceCredentialList) codecDecodeSelfFromMap(l int, d *codec19 yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3 { - case "kind": + case "planName": if r.TryDecodeAsNil() { - x.Kind = "" + x.PlanName = "" } else { - yyv4 := &x.Kind + yyv4 := &x.PlanName yym5 := z.DecBinary() _ = yym5 if false { @@ -8479,42 +8577,47 @@ func (x *ServiceInstanceCredentialList) codecDecodeSelfFromMap(l int, d *codec19 *((*string)(yyv4)) = r.DecodeString() } } - case "apiVersion": + case "parameters": if r.TryDecodeAsNil() { - x.APIVersion = "" + if x.Parameters != nil { + x.Parameters = nil + } } else { - yyv6 := &x.APIVersion + if x.Parameters == nil { + x.Parameters = new(pkg4_runtime.RawExtension) + } yym7 := z.DecBinary() _ = yym7 if false { + } else if z.HasExtensions() && z.DecExt(x.Parameters) { + } else if !yym7 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Parameters) } else { - *((*string)(yyv6)) = r.DecodeString() + z.DecFallback(x.Parameters, false) } } - case "metadata": + case "parameterChecksum": if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} + x.ParametersChecksum = "" } else { - yyv8 := &x.ListMeta + yyv8 := &x.ParametersChecksum yym9 := z.DecBinary() _ = yym9 if false { - } else if z.HasExtensions() && z.DecExt(yyv8) { } else { - z.DecFallback(yyv8, false) + *((*string)(yyv8)) = r.DecodeString() } } - case "items": + case "userInfo": if r.TryDecodeAsNil() { - x.Items = nil + if x.UserInfo != nil { + x.UserInfo = nil + } } else { - yyv10 := &x.Items - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - h.decSliceServiceInstanceCredential((*[]ServiceInstanceCredential)(yyv10), d) + if x.UserInfo == nil { + x.UserInfo = new(UserInfo) } + x.UserInfo.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) @@ -8523,119 +8626,124 @@ func (x *ServiceInstanceCredentialList) codecDecodeSelfFromMap(l int, d *codec19 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ServiceInstanceCredentialList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ServiceInstancePropertiesState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l } else { - yyb12 = r.CheckBreak() + yyb11 = r.CheckBreak() } - if yyb12 { + if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.PlanName = "" } else { - yyv13 := &x.Kind - yym14 := z.DecBinary() - _ = yym14 + yyv12 := &x.PlanName + yym13 := z.DecBinary() + _ = yym13 if false { } else { - *((*string)(yyv13)) = r.DecodeString() + *((*string)(yyv12)) = r.DecodeString() } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l } else { - yyb12 = r.CheckBreak() + yyb11 = r.CheckBreak() } - if yyb12 { + if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + if x.Parameters != nil { + x.Parameters = nil + } } else { - yyv15 := &x.APIVersion - yym16 := z.DecBinary() - _ = yym16 + if x.Parameters == nil { + x.Parameters = new(pkg4_runtime.RawExtension) + } + yym15 := z.DecBinary() + _ = yym15 if false { + } else if z.HasExtensions() && z.DecExt(x.Parameters) { + } else if !yym15 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Parameters) } else { - *((*string)(yyv15)) = r.DecodeString() + z.DecFallback(x.Parameters, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l } else { - yyb12 = r.CheckBreak() + yyb11 = r.CheckBreak() } - if yyb12 { + if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg1_v1.ListMeta{} + x.ParametersChecksum = "" } else { - yyv17 := &x.ListMeta - yym18 := z.DecBinary() - _ = yym18 + yyv16 := &x.ParametersChecksum + yym17 := z.DecBinary() + _ = yym17 if false { - } else if z.HasExtensions() && z.DecExt(yyv17) { } else { - z.DecFallback(yyv17, false) + *((*string)(yyv16)) = r.DecodeString() } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l } else { - yyb12 = r.CheckBreak() + yyb11 = r.CheckBreak() } - if yyb12 { + if yyb11 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Items = nil + if x.UserInfo != nil { + x.UserInfo = nil + } } else { - yyv19 := &x.Items - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - h.decSliceServiceInstanceCredential((*[]ServiceInstanceCredential)(yyv19), d) + if x.UserInfo == nil { + x.UserInfo = new(UserInfo) } + x.UserInfo.CodecDecodeSelf(d) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l } else { - yyb12 = r.CheckBreak() + yyb11 = r.CheckBreak() } - if yyb12 { + if yyb11 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj11-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ServiceInstanceCredential) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *ServiceInstanceCredentialList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -8649,7 +8757,7 @@ func (x *ServiceInstanceCredential) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool + var yyq2 [4]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = x.Kind != "" @@ -8657,9 +8765,9 @@ func (x *ServiceInstanceCredential) CodecEncodeSelf(e *codec1978.Encoder) { yyq2[2] = true var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) + r.EncodeArrayStart(4) } else { - yynn2 = 2 + yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ @@ -8721,7 +8829,7 @@ func (x *ServiceInstanceCredential) CodecEncodeSelf(e *codec1978.Encoder) { if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - yy10 := &x.ObjectMeta + yy10 := &x.ListMeta yym11 := z.EncBinary() _ = yym11 if false { @@ -8737,7 +8845,7 @@ func (x *ServiceInstanceCredential) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.ObjectMeta + yy12 := &x.ListMeta yym13 := z.EncBinary() _ = yym13 if false { @@ -8749,25 +8857,30 @@ func (x *ServiceInstanceCredential) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy15 := &x.Spec - yy15.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy17 := &x.Spec - yy17.CodecEncodeSelf(e) - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy20 := &x.Status - yy20.CodecEncodeSelf(e) + if x.Items == nil { + r.EncodeNil() + } else { + yym15 := z.EncBinary() + _ = yym15 + if false { + } else { + h.encSliceServiceInstanceCredential(([]ServiceInstanceCredential)(x.Items), e) + } + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) + r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy22 := &x.Status - yy22.CodecEncodeSelf(e) + if x.Items == nil { + r.EncodeNil() + } else { + yym16 := z.EncBinary() + _ = yym16 + if false { + } else { + h.encSliceServiceInstanceCredential(([]ServiceInstanceCredential)(x.Items), e) + } + } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -8778,7 +8891,7 @@ func (x *ServiceInstanceCredential) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ServiceInstanceCredential) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -8808,7 +8921,7 @@ func (x *ServiceInstanceCredential) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ServiceInstanceCredential) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -8856,9 +8969,9 @@ func (x *ServiceInstanceCredential) codecDecodeSelfFromMap(l int, d *codec1978.D } case "metadata": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg1_v1.ObjectMeta{} + x.ListMeta = pkg1_v1.ListMeta{} } else { - yyv8 := &x.ObjectMeta + yyv8 := &x.ListMeta yym9 := z.DecBinary() _ = yym9 if false { @@ -8867,19 +8980,17 @@ func (x *ServiceInstanceCredential) codecDecodeSelfFromMap(l int, d *codec1978.D z.DecFallback(yyv8, false) } } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ServiceInstanceCredentialSpec{} - } else { - yyv10 := &x.Spec - yyv10.CodecDecodeSelf(d) - } - case "status": + case "items": if r.TryDecodeAsNil() { - x.Status = ServiceInstanceCredentialStatus{} + x.Items = nil } else { - yyv11 := &x.Status - yyv11.CodecDecodeSelf(d) + yyv10 := &x.Items + yym11 := z.DecBinary() + _ = yym11 + if false { + } else { + h.decSliceServiceInstanceCredential((*[]ServiceInstanceCredential)(yyv10), d) + } } default: z.DecStructFieldNotFound(-1, yys3) @@ -8888,7 +8999,7 @@ func (x *ServiceInstanceCredential) codecDecodeSelfFromMap(l int, d *codec1978.D z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ServiceInstanceCredential) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -8951,9 +9062,9 @@ func (x *ServiceInstanceCredential) codecDecodeSelfFromArray(l int, d *codec1978 } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg1_v1.ObjectMeta{} + x.ListMeta = pkg1_v1.ListMeta{} } else { - yyv17 := &x.ObjectMeta + yyv17 := &x.ListMeta yym18 := z.DecBinary() _ = yym18 if false { @@ -8974,27 +9085,15 @@ func (x *ServiceInstanceCredential) codecDecodeSelfFromArray(l int, d *codec1978 } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ServiceInstanceCredentialSpec{} - } else { - yyv19 := &x.Spec - yyv19.CodecDecodeSelf(d) - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ServiceInstanceCredentialStatus{} + x.Items = nil } else { - yyv20 := &x.Status - yyv20.CodecDecodeSelf(d) + yyv19 := &x.Items + yym20 := z.DecBinary() + _ = yym20 + if false { + } else { + h.decSliceServiceInstanceCredential((*[]ServiceInstanceCredential)(yyv19), d) + } } for { yyj12++ @@ -9012,7 +9111,7 @@ func (x *ServiceInstanceCredential) codecDecodeSelfFromArray(l int, d *codec1978 z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ServiceInstanceCredentialSpec) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *ServiceInstanceCredential) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -9026,16 +9125,15 @@ func (x *ServiceInstanceCredentialSpec) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [6]bool + var yyq2 [5]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[1] = x.Parameters != nil - yyq2[2] = len(x.ParametersFrom) != 0 - yyq2[3] = x.SecretName != "" - yyq2[5] = x.UserInfo != nil + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" + yyq2[2] = true var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(6) + r.EncodeArrayStart(5) } else { yynn2 = 2 for _, b := range yyq2 { @@ -9048,66 +9146,64 @@ func (x *ServiceInstanceCredentialSpec) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4 := &x.ServiceInstanceRef - yy4.CodecEncodeSelf(e) + if yyq2[0] { + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("instanceRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy6 := &x.ServiceInstanceRef - yy6.CodecEncodeSelf(e) + if yyq2[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { - if x.Parameters == nil { - r.EncodeNil() + yym7 := z.EncBinary() + _ = yym7 + if false { } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else if z.HasExtensions() && z.EncExt(x.Parameters) { - } else if !yym9 && z.IsJSONHandle() { - z.EncJSONMarshal(x.Parameters) - } else { - z.EncFallback(x.Parameters) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("parameters")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Parameters == nil { - r.EncodeNil() + yym8 := z.EncBinary() + _ = yym8 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else if z.HasExtensions() && z.EncExt(x.Parameters) { - } else if !yym10 && z.IsJSONHandle() { - z.EncJSONMarshal(x.Parameters) - } else { - z.EncFallback(x.Parameters) - } + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { - if x.ParametersFrom == nil { - r.EncodeNil() + yy10 := &x.ObjectMeta + yym11 := z.EncBinary() + _ = yym11 + if false { + } else if z.HasExtensions() && z.EncExt(yy10) { } else { - yym12 := z.EncBinary() - _ = yym12 - if false { - } else { - h.encSliceParametersFromSource(([]ParametersFromSource)(x.ParametersFrom), e) - } + z.EncFallback(yy10) } } else { r.EncodeNil() @@ -9115,86 +9211,39 @@ func (x *ServiceInstanceCredentialSpec) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("parametersFrom")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ParametersFrom == nil { - r.EncodeNil() - } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else { - h.encSliceParametersFromSource(([]ParametersFromSource)(x.ParametersFrom), e) - } - } - } - } - if yyr2 || yy2arr2 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - yym15 := z.EncBinary() - _ = yym15 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretName")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + yy12 := &x.ObjectMeta + yym13 := z.EncBinary() + _ = yym13 if false { + } else if z.HasExtensions() && z.EncExt(yy12) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + z.EncFallback(yy12) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym18 := z.EncBinary() - _ = yym18 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) - } + yy15 := &x.Spec + yy15.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("externalID")) + r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) - } + yy17 := &x.Spec + yy17.CodecEncodeSelf(e) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[5] { - if x.UserInfo == nil { - r.EncodeNil() - } else { - x.UserInfo.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } + yy20 := &x.Status + yy20.CodecEncodeSelf(e) } else { - if yyq2[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("userInfo")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.UserInfo == nil { - r.EncodeNil() - } else { - x.UserInfo.CodecEncodeSelf(e) - } - } + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy22 := &x.Status + yy22.CodecEncodeSelf(e) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -9205,7 +9254,7 @@ func (x *ServiceInstanceCredentialSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ServiceInstanceCredentialSpec) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ServiceInstanceCredential) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -9235,7 +9284,7 @@ func (x *ServiceInstanceCredentialSpec) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ServiceInstanceCredentialSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ServiceInstanceCredential) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -9257,78 +9306,56 @@ func (x *ServiceInstanceCredentialSpec) codecDecodeSelfFromMap(l int, d *codec19 yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3 { - case "instanceRef": - if r.TryDecodeAsNil() { - x.ServiceInstanceRef = pkg3_v1.LocalObjectReference{} - } else { - yyv4 := &x.ServiceInstanceRef - yyv4.CodecDecodeSelf(d) - } - case "parameters": + case "kind": if r.TryDecodeAsNil() { - if x.Parameters != nil { - x.Parameters = nil - } + x.Kind = "" } else { - if x.Parameters == nil { - x.Parameters = new(pkg4_runtime.RawExtension) - } - yym6 := z.DecBinary() - _ = yym6 + yyv4 := &x.Kind + yym5 := z.DecBinary() + _ = yym5 if false { - } else if z.HasExtensions() && z.DecExt(x.Parameters) { - } else if !yym6 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.Parameters) } else { - z.DecFallback(x.Parameters, false) + *((*string)(yyv4)) = r.DecodeString() } } - case "parametersFrom": + case "apiVersion": if r.TryDecodeAsNil() { - x.ParametersFrom = nil + x.APIVersion = "" } else { - yyv7 := &x.ParametersFrom - yym8 := z.DecBinary() - _ = yym8 + yyv6 := &x.APIVersion + yym7 := z.DecBinary() + _ = yym7 if false { } else { - h.decSliceParametersFromSource((*[]ParametersFromSource)(yyv7), d) + *((*string)(yyv6)) = r.DecodeString() } } - case "secretName": + case "metadata": if r.TryDecodeAsNil() { - x.SecretName = "" + x.ObjectMeta = pkg1_v1.ObjectMeta{} } else { - yyv9 := &x.SecretName - yym10 := z.DecBinary() - _ = yym10 + yyv8 := &x.ObjectMeta + yym9 := z.DecBinary() + _ = yym9 if false { + } else if z.HasExtensions() && z.DecExt(yyv8) { } else { - *((*string)(yyv9)) = r.DecodeString() + z.DecFallback(yyv8, false) } } - case "externalID": + case "spec": if r.TryDecodeAsNil() { - x.ExternalID = "" + x.Spec = ServiceInstanceCredentialSpec{} } else { - yyv11 := &x.ExternalID - yym12 := z.DecBinary() - _ = yym12 - if false { - } else { - *((*string)(yyv11)) = r.DecodeString() - } + yyv10 := &x.Spec + yyv10.CodecDecodeSelf(d) } - case "userInfo": + case "status": if r.TryDecodeAsNil() { - if x.UserInfo != nil { - x.UserInfo = nil - } + x.Status = ServiceInstanceCredentialStatus{} } else { - if x.UserInfo == nil { - x.UserInfo = new(UserInfo) - } - x.UserInfo.CodecDecodeSelf(d) + yyv11 := &x.Status + yyv11.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) @@ -9337,163 +9364,131 @@ func (x *ServiceInstanceCredentialSpec) codecDecodeSelfFromMap(l int, d *codec19 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ServiceInstanceCredentialSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ServiceInstanceCredential) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l } else { - yyb14 = r.CheckBreak() + yyb12 = r.CheckBreak() } - if yyb14 { + if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ServiceInstanceRef = pkg3_v1.LocalObjectReference{} + x.Kind = "" } else { - yyv15 := &x.ServiceInstanceRef - yyv15.CodecDecodeSelf(d) + yyv13 := &x.Kind + yym14 := z.DecBinary() + _ = yym14 + if false { + } else { + *((*string)(yyv13)) = r.DecodeString() + } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l } else { - yyb14 = r.CheckBreak() + yyb12 = r.CheckBreak() } - if yyb14 { + if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.Parameters != nil { - x.Parameters = nil - } + x.APIVersion = "" } else { - if x.Parameters == nil { - x.Parameters = new(pkg4_runtime.RawExtension) - } - yym17 := z.DecBinary() - _ = yym17 + yyv15 := &x.APIVersion + yym16 := z.DecBinary() + _ = yym16 if false { - } else if z.HasExtensions() && z.DecExt(x.Parameters) { - } else if !yym17 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.Parameters) } else { - z.DecFallback(x.Parameters, false) + *((*string)(yyv15)) = r.DecodeString() } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ParametersFrom = nil - } else { - yyv18 := &x.ParametersFrom - yym19 := z.DecBinary() - _ = yym19 - if false { - } else { - h.decSliceParametersFromSource((*[]ParametersFromSource)(yyv18), d) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() + yyb12 = r.CheckBreak() } - if yyb14 { + if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.SecretName = "" + x.ObjectMeta = pkg1_v1.ObjectMeta{} } else { - yyv20 := &x.SecretName - yym21 := z.DecBinary() - _ = yym21 + yyv17 := &x.ObjectMeta + yym18 := z.DecBinary() + _ = yym18 if false { + } else if z.HasExtensions() && z.DecExt(yyv17) { } else { - *((*string)(yyv20)) = r.DecodeString() + z.DecFallback(yyv17, false) } } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l } else { - yyb14 = r.CheckBreak() + yyb12 = r.CheckBreak() } - if yyb14 { + if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ExternalID = "" + x.Spec = ServiceInstanceCredentialSpec{} } else { - yyv22 := &x.ExternalID - yym23 := z.DecBinary() - _ = yym23 - if false { - } else { - *((*string)(yyv22)) = r.DecodeString() - } + yyv19 := &x.Spec + yyv19.CodecDecodeSelf(d) } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l } else { - yyb14 = r.CheckBreak() + yyb12 = r.CheckBreak() } - if yyb14 { + if yyb12 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.UserInfo != nil { - x.UserInfo = nil - } + x.Status = ServiceInstanceCredentialStatus{} } else { - if x.UserInfo == nil { - x.UserInfo = new(UserInfo) - } - x.UserInfo.CodecDecodeSelf(d) + yyv20 := &x.Status + yyv20.CodecDecodeSelf(d) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l } else { - yyb14 = r.CheckBreak() + yyb12 = r.CheckBreak() } - if yyb14 { + if yyb12 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj14-1, "") + z.DecStructFieldNotFound(yyj12-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ServiceInstanceCredentialStatus) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *ServiceInstanceCredentialSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -9507,14 +9502,16 @@ func (x *ServiceInstanceCredentialStatus) CodecEncodeSelf(e *codec1978.Encoder) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [4]bool + var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false - yyq2[1] = x.CurrentOperation != "" - yyq2[3] = x.OperationStartTime != nil + yyq2[1] = x.Parameters != nil + yyq2[2] = len(x.ParametersFrom) != 0 + yyq2[3] = x.SecretName != "" + yyq2[5] = x.UserInfo != nil var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(4) + r.EncodeArrayStart(6) } else { yynn2 = 2 for _, b := range yyq2 { @@ -9527,105 +9524,151 @@ func (x *ServiceInstanceCredentialStatus) CodecEncodeSelf(e *codec1978.Encoder) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym4 := z.EncBinary() - _ = yym4 - if false { - } else { - h.encSliceServiceInstanceCredentialCondition(([]ServiceInstanceCredentialCondition)(x.Conditions), e) - } - } + yy4 := &x.ServiceInstanceRef + yy4.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) + r.EncodeString(codecSelferC_UTF81234, string("instanceRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { + yy6 := &x.ServiceInstanceRef + yy6.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[1] { + if x.Parameters == nil { + r.EncodeNil() + } else { + yym9 := z.EncBinary() + _ = yym9 + if false { + } else if z.HasExtensions() && z.EncExt(x.Parameters) { + } else if !yym9 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Parameters) + } else { + z.EncFallback(x.Parameters) + } + } + } else { r.EncodeNil() + } + } else { + if yyq2[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("parameters")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Parameters == nil { + r.EncodeNil() + } else { + yym10 := z.EncBinary() + _ = yym10 + if false { + } else if z.HasExtensions() && z.EncExt(x.Parameters) { + } else if !yym10 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Parameters) + } else { + z.EncFallback(x.Parameters) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[2] { + if x.ParametersFrom == nil { + r.EncodeNil() + } else { + yym12 := z.EncBinary() + _ = yym12 + if false { + } else { + h.encSliceParametersFromSource(([]ParametersFromSource)(x.ParametersFrom), e) + } + } } else { - yym5 := z.EncBinary() - _ = yym5 - if false { + r.EncodeNil() + } + } else { + if yyq2[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("parametersFrom")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ParametersFrom == nil { + r.EncodeNil() } else { - h.encSliceServiceInstanceCredentialCondition(([]ServiceInstanceCredentialCondition)(x.Conditions), e) + yym13 := z.EncBinary() + _ = yym13 + if false { + } else { + h.encSliceParametersFromSource(([]ParametersFromSource)(x.ParametersFrom), e) + } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - x.CurrentOperation.CodecEncodeSelf(e) + if yyq2[3] { + yym15 := z.EncBinary() + _ = yym15 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2[1] { + if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("currentOperation")) + r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.CurrentOperation.CodecEncodeSelf(e) + yym16 := z.EncBinary() + _ = yym16 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym10 := z.EncBinary() - _ = yym10 + yym18 := z.EncBinary() + _ = yym18 if false { } else { - r.EncodeInt(int64(x.ReconciledGeneration)) + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reconciledGeneration")) + r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym11 := z.EncBinary() - _ = yym11 + yym19 := z.EncBinary() + _ = yym19 if false { } else { - r.EncodeInt(int64(x.ReconciledGeneration)) + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[3] { - if x.OperationStartTime == nil { + if yyq2[5] { + if x.UserInfo == nil { r.EncodeNil() } else { - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(x.OperationStartTime) { - } else if yym13 { - z.EncBinaryMarshal(x.OperationStartTime) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(x.OperationStartTime) - } else { - z.EncFallback(x.OperationStartTime) - } + x.UserInfo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { - if yyq2[3] { + if yyq2[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("operationStartTime")) + r.EncodeString(codecSelferC_UTF81234, string("userInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OperationStartTime == nil { + if x.UserInfo == nil { r.EncodeNil() } else { - yym14 := z.EncBinary() - _ = yym14 - if false { - } else if z.HasExtensions() && z.EncExt(x.OperationStartTime) { - } else if yym14 { - z.EncBinaryMarshal(x.OperationStartTime) - } else if !yym14 && z.IsJSONHandle() { - z.EncJSONMarshal(x.OperationStartTime) - } else { - z.EncFallback(x.OperationStartTime) - } + x.UserInfo.CodecEncodeSelf(e) } } } @@ -9638,7 +9681,7 @@ func (x *ServiceInstanceCredentialStatus) CodecEncodeSelf(e *codec1978.Encoder) } } -func (x *ServiceInstanceCredentialStatus) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -9668,7 +9711,7 @@ func (x *ServiceInstanceCredentialStatus) CodecDecodeSelf(d *codec1978.Decoder) } } -func (x *ServiceInstanceCredentialStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -9690,58 +9733,79 @@ func (x *ServiceInstanceCredentialStatus) codecDecodeSelfFromMap(l int, d *codec yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3 { - case "conditions": + case "instanceRef": if r.TryDecodeAsNil() { - x.Conditions = nil + x.ServiceInstanceRef = pkg3_v1.LocalObjectReference{} } else { - yyv4 := &x.Conditions - yym5 := z.DecBinary() - _ = yym5 - if false { - } else { - h.decSliceServiceInstanceCredentialCondition((*[]ServiceInstanceCredentialCondition)(yyv4), d) - } + yyv4 := &x.ServiceInstanceRef + yyv4.CodecDecodeSelf(d) } - case "currentOperation": + case "parameters": if r.TryDecodeAsNil() { - x.CurrentOperation = "" + if x.Parameters != nil { + x.Parameters = nil + } } else { - yyv6 := &x.CurrentOperation - yyv6.CodecDecodeSelf(d) + if x.Parameters == nil { + x.Parameters = new(pkg4_runtime.RawExtension) + } + yym6 := z.DecBinary() + _ = yym6 + if false { + } else if z.HasExtensions() && z.DecExt(x.Parameters) { + } else if !yym6 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Parameters) + } else { + z.DecFallback(x.Parameters, false) + } } - case "reconciledGeneration": + case "parametersFrom": if r.TryDecodeAsNil() { - x.ReconciledGeneration = 0 + x.ParametersFrom = nil } else { - yyv7 := &x.ReconciledGeneration + yyv7 := &x.ParametersFrom yym8 := z.DecBinary() _ = yym8 if false { } else { - *((*int64)(yyv7)) = int64(r.DecodeInt(64)) + h.decSliceParametersFromSource((*[]ParametersFromSource)(yyv7), d) } } - case "operationStartTime": + case "secretName": if r.TryDecodeAsNil() { - if x.OperationStartTime != nil { - x.OperationStartTime = nil - } + x.SecretName = "" } else { - if x.OperationStartTime == nil { - x.OperationStartTime = new(pkg1_v1.Time) - } + yyv9 := &x.SecretName yym10 := z.DecBinary() _ = yym10 if false { - } else if z.HasExtensions() && z.DecExt(x.OperationStartTime) { - } else if yym10 { - z.DecBinaryUnmarshal(x.OperationStartTime) - } else if !yym10 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.OperationStartTime) } else { - z.DecFallback(x.OperationStartTime, false) + *((*string)(yyv9)) = r.DecodeString() } } + case "externalID": + if r.TryDecodeAsNil() { + x.ExternalID = "" + } else { + yyv11 := &x.ExternalID + yym12 := z.DecBinary() + _ = yym12 + if false { + } else { + *((*string)(yyv11)) = r.DecodeString() + } + } + case "userInfo": + if r.TryDecodeAsNil() { + if x.UserInfo != nil { + x.UserInfo = nil + } + } else { + if x.UserInfo == nil { + x.UserInfo = new(UserInfo) + } + x.UserInfo.CodecDecodeSelf(d) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 @@ -9749,122 +9813,163 @@ func (x *ServiceInstanceCredentialStatus) codecDecodeSelfFromMap(l int, d *codec z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ServiceInstanceCredentialStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb11 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb11 { + if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Conditions = nil + x.ServiceInstanceRef = pkg3_v1.LocalObjectReference{} } else { - yyv12 := &x.Conditions - yym13 := z.DecBinary() - _ = yym13 + yyv15 := &x.ServiceInstanceRef + yyv15.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Parameters != nil { + x.Parameters = nil + } + } else { + if x.Parameters == nil { + x.Parameters = new(pkg4_runtime.RawExtension) + } + yym17 := z.DecBinary() + _ = yym17 if false { + } else if z.HasExtensions() && z.DecExt(x.Parameters) { + } else if !yym17 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Parameters) } else { - h.decSliceServiceInstanceCredentialCondition((*[]ServiceInstanceCredentialCondition)(yyv12), d) + z.DecFallback(x.Parameters, false) } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb11 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb11 { + if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.CurrentOperation = "" + x.ParametersFrom = nil } else { - yyv14 := &x.CurrentOperation - yyv14.CodecDecodeSelf(d) + yyv18 := &x.ParametersFrom + yym19 := z.DecBinary() + _ = yym19 + if false { + } else { + h.decSliceParametersFromSource((*[]ParametersFromSource)(yyv18), d) + } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb11 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb11 { + if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ReconciledGeneration = 0 + x.SecretName = "" } else { - yyv15 := &x.ReconciledGeneration - yym16 := z.DecBinary() - _ = yym16 + yyv20 := &x.SecretName + yym21 := z.DecBinary() + _ = yym21 if false { } else { - *((*int64)(yyv15)) = int64(r.DecodeInt(64)) + *((*string)(yyv20)) = r.DecodeString() } } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb11 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb11 { + if yyb14 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.OperationStartTime != nil { - x.OperationStartTime = nil - } + x.ExternalID = "" } else { - if x.OperationStartTime == nil { - x.OperationStartTime = new(pkg1_v1.Time) - } - yym18 := z.DecBinary() - _ = yym18 + yyv22 := &x.ExternalID + yym23 := z.DecBinary() + _ = yym23 if false { - } else if z.HasExtensions() && z.DecExt(x.OperationStartTime) { - } else if yym18 { - z.DecBinaryUnmarshal(x.OperationStartTime) - } else if !yym18 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.OperationStartTime) } else { - z.DecFallback(x.OperationStartTime, false) + *((*string)(yyv22)) = r.DecodeString() + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.UserInfo != nil { + x.UserInfo = nil + } + } else { + if x.UserInfo == nil { + x.UserInfo = new(UserInfo) } + x.UserInfo.CodecDecodeSelf(d) } for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb11 = r.CheckBreak() + yyb14 = r.CheckBreak() } - if yyb11 { + if yyb14 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj11-1, "") + z.DecStructFieldNotFound(yyj14-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ServiceInstanceCredentialCondition) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *ServiceInstanceCredentialStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -9878,14 +9983,16 @@ func (x *ServiceInstanceCredentialCondition) CodecEncodeSelf(e *codec1978.Encode } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [5]bool + var yyq2 [6]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false + yyq2[1] = x.CurrentOperation != "" + yyq2[3] = x.OperationStartTime != nil var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(5) + r.EncodeArrayStart(6) } else { - yynn2 = 5 + yynn2 = 4 for _, b := range yyq2 { if b { yynn2++ @@ -9896,89 +10003,979 @@ func (x *ServiceInstanceCredentialCondition) CodecEncodeSelf(e *codec1978.Encode } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Type.CodecEncodeSelf(e) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + h.encSliceServiceInstanceCredentialCondition(([]ServiceInstanceCredentialCondition)(x.Conditions), e) + } + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + h.encSliceServiceInstanceCredentialCondition(([]ServiceInstanceCredentialCondition)(x.Conditions), e) + } + } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Status.CodecEncodeSelf(e) + if yyq2[1] { + x.CurrentOperation.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Status.CodecEncodeSelf(e) + if yyq2[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("currentOperation")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.CurrentOperation.CodecEncodeSelf(e) + } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy10 := &x.LastTransitionTime + yym10 := z.EncBinary() + _ = yym10 + if false { + } else { + r.EncodeInt(int64(x.ReconciledGeneration)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reconciledGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym11 := z.EncBinary() _ = yym11 if false { - } else if z.HasExtensions() && z.EncExt(yy10) { - } else if yym11 { - z.EncBinaryMarshal(yy10) - } else if !yym11 && z.IsJSONHandle() { - z.EncJSONMarshal(yy10) } else { - z.EncFallback(yy10) + r.EncodeInt(int64(x.ReconciledGeneration)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[3] { + if x.OperationStartTime == nil { + r.EncodeNil() + } else { + yym13 := z.EncBinary() + _ = yym13 + if false { + } else if z.HasExtensions() && z.EncExt(x.OperationStartTime) { + } else if yym13 { + z.EncBinaryMarshal(x.OperationStartTime) + } else if !yym13 && z.IsJSONHandle() { + z.EncJSONMarshal(x.OperationStartTime) + } else { + z.EncFallback(x.OperationStartTime) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("operationStartTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OperationStartTime == nil { + r.EncodeNil() + } else { + yym14 := z.EncBinary() + _ = yym14 + if false { + } else if z.HasExtensions() && z.EncExt(x.OperationStartTime) { + } else if yym14 { + z.EncBinaryMarshal(x.OperationStartTime) + } else if !yym14 && z.IsJSONHandle() { + z.EncJSONMarshal(x.OperationStartTime) + } else { + z.EncFallback(x.OperationStartTime) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.InProgressProperties == nil { + r.EncodeNil() + } else { + x.InProgressProperties.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + r.EncodeString(codecSelferC_UTF81234, string("InProgressProperties")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy12 := &x.LastTransitionTime - yym13 := z.EncBinary() - _ = yym13 - if false { - } else if z.HasExtensions() && z.EncExt(yy12) { - } else if yym13 { - z.EncBinaryMarshal(yy12) - } else if !yym13 && z.IsJSONHandle() { - z.EncJSONMarshal(yy12) + if x.InProgressProperties == nil { + r.EncodeNil() } else { - z.EncFallback(yy12) + x.InProgressProperties.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym15 := z.EncBinary() - _ = yym15 - if false { + if x.ExternalProperties == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + x.ExternalProperties.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) + r.EncodeString(codecSelferC_UTF81234, string("ExternalProperties")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym16 := z.EncBinary() - _ = yym16 + if x.ExternalProperties == nil { + r.EncodeNil() + } else { + x.ExternalProperties.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceInstanceCredentialStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1 := z.DecBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap1234 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray1234 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ServiceInstanceCredentialStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3Slc + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3Slc = r.DecodeBytes(yys3Slc, true, true) + yys3 := string(yys3Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3 { + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv4 := &x.Conditions + yym5 := z.DecBinary() + _ = yym5 + if false { + } else { + h.decSliceServiceInstanceCredentialCondition((*[]ServiceInstanceCredentialCondition)(yyv4), d) + } + } + case "currentOperation": + if r.TryDecodeAsNil() { + x.CurrentOperation = "" + } else { + yyv6 := &x.CurrentOperation + yyv6.CodecDecodeSelf(d) + } + case "reconciledGeneration": + if r.TryDecodeAsNil() { + x.ReconciledGeneration = 0 + } else { + yyv7 := &x.ReconciledGeneration + yym8 := z.DecBinary() + _ = yym8 + if false { + } else { + *((*int64)(yyv7)) = int64(r.DecodeInt(64)) + } + } + case "operationStartTime": + if r.TryDecodeAsNil() { + if x.OperationStartTime != nil { + x.OperationStartTime = nil + } + } else { + if x.OperationStartTime == nil { + x.OperationStartTime = new(pkg1_v1.Time) + } + yym10 := z.DecBinary() + _ = yym10 if false { + } else if z.HasExtensions() && z.DecExt(x.OperationStartTime) { + } else if yym10 { + z.DecBinaryUnmarshal(x.OperationStartTime) + } else if !yym10 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.OperationStartTime) + } else { + z.DecFallback(x.OperationStartTime, false) + } + } + case "InProgressProperties": + if r.TryDecodeAsNil() { + if x.InProgressProperties != nil { + x.InProgressProperties = nil + } + } else { + if x.InProgressProperties == nil { + x.InProgressProperties = new(ServiceInstanceCredentialPropertiesState) + } + x.InProgressProperties.CodecDecodeSelf(d) + } + case "ExternalProperties": + if r.TryDecodeAsNil() { + if x.ExternalProperties != nil { + x.ExternalProperties = nil + } + } else { + if x.ExternalProperties == nil { + x.ExternalProperties = new(ServiceInstanceCredentialPropertiesState) + } + x.ExternalProperties.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ServiceInstanceCredentialStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv14 := &x.Conditions + yym15 := z.DecBinary() + _ = yym15 + if false { + } else { + h.decSliceServiceInstanceCredentialCondition((*[]ServiceInstanceCredentialCondition)(yyv14), d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CurrentOperation = "" + } else { + yyv16 := &x.CurrentOperation + yyv16.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReconciledGeneration = 0 + } else { + yyv17 := &x.ReconciledGeneration + yym18 := z.DecBinary() + _ = yym18 + if false { + } else { + *((*int64)(yyv17)) = int64(r.DecodeInt(64)) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.OperationStartTime != nil { + x.OperationStartTime = nil + } + } else { + if x.OperationStartTime == nil { + x.OperationStartTime = new(pkg1_v1.Time) + } + yym20 := z.DecBinary() + _ = yym20 + if false { + } else if z.HasExtensions() && z.DecExt(x.OperationStartTime) { + } else if yym20 { + z.DecBinaryUnmarshal(x.OperationStartTime) + } else if !yym20 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.OperationStartTime) + } else { + z.DecFallback(x.OperationStartTime, false) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.InProgressProperties != nil { + x.InProgressProperties = nil + } + } else { + if x.InProgressProperties == nil { + x.InProgressProperties = new(ServiceInstanceCredentialPropertiesState) + } + x.InProgressProperties.CodecDecodeSelf(d) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ExternalProperties != nil { + x.ExternalProperties = nil + } + } else { + if x.ExternalProperties == nil { + x.ExternalProperties = new(ServiceInstanceCredentialPropertiesState) + } + x.ExternalProperties.CodecDecodeSelf(d) + } + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = r.CheckBreak() + } + if yyb13 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj13-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceInstanceCredentialCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1 := z.EncBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + var yyq2 [5]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(5) + } else { + yynn2 = 5 + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.EncodeMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Type.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Status.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Status.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy10 := &x.LastTransitionTime + yym11 := z.EncBinary() + _ = yym11 + if false { + } else if z.HasExtensions() && z.EncExt(yy10) { + } else if yym11 { + z.EncBinaryMarshal(yy10) + } else if !yym11 && z.IsJSONHandle() { + z.EncJSONMarshal(yy10) + } else { + z.EncFallback(yy10) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy12 := &x.LastTransitionTime + yym13 := z.EncBinary() + _ = yym13 + if false { + } else if z.HasExtensions() && z.EncExt(yy12) { + } else if yym13 { + z.EncBinaryMarshal(yy12) + } else if !yym13 && z.IsJSONHandle() { + z.EncJSONMarshal(yy12) + } else { + z.EncFallback(yy12) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym15 := z.EncBinary() + _ = yym15 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym16 := z.EncBinary() + _ = yym16 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym18 := z.EncBinary() + _ = yym18 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym19 := z.EncBinary() + _ = yym19 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceInstanceCredentialCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1 := z.DecBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap1234 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray1234 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ServiceInstanceCredentialCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3Slc + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3Slc = r.DecodeBytes(yys3Slc, true, true) + yys3 := string(yys3Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + yyv4 := &x.Type + yyv4.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + yyv5 := &x.Status + yyv5.CodecDecodeSelf(d) + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_v1.Time{} + } else { + yyv6 := &x.LastTransitionTime + yym7 := z.DecBinary() + _ = yym7 + if false { + } else if z.HasExtensions() && z.DecExt(yyv6) { + } else if yym7 { + z.DecBinaryUnmarshal(yyv6) + } else if !yym7 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv6) + } else { + z.DecFallback(yyv6, false) + } + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + yyv8 := &x.Reason + yym9 := z.DecBinary() + _ = yym9 + if false { + } else { + *((*string)(yyv8)) = r.DecodeString() + } + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + yyv10 := &x.Message + yym11 := z.DecBinary() + _ = yym11 + if false { + } else { + *((*string)(yyv10)) = r.DecodeString() + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ServiceInstanceCredentialCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + yyv13 := &x.Type + yyv13.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + yyv14 := &x.Status + yyv14.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_v1.Time{} + } else { + yyv15 := &x.LastTransitionTime + yym16 := z.DecBinary() + _ = yym16 + if false { + } else if z.HasExtensions() && z.DecExt(yyv15) { + } else if yym16 { + z.DecBinaryUnmarshal(yyv15) + } else if !yym16 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv15) + } else { + z.DecFallback(yyv15, false) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + yyv17 := &x.Reason + yym18 := z.DecBinary() + _ = yym18 + if false { + } else { + *((*string)(yyv17)) = r.DecodeString() + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + yyv19 := &x.Message + yym20 := z.DecBinary() + _ = yym20 + if false { + } else { + *((*string)(yyv19)) = r.DecodeString() + } + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj12-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ServiceInstanceCredentialConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1 := z.EncBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ServiceInstanceCredentialConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1 := z.DecBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x ServiceInstanceCredentialOperation) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1 := z.EncBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ServiceInstanceCredentialOperation) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1 := z.DecBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ServiceInstanceCredentialPropertiesState) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1 := z.EncBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + var yyq2 [3]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + yyq2[0] = x.Parameters != nil + yyq2[1] = x.ParametersChecksum != "" + yyq2[2] = x.UserInfo != nil + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(3) + } else { + yynn2 = 0 + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.EncodeMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[0] { + if x.Parameters == nil { + r.EncodeNil() + } else { + yym4 := z.EncBinary() + _ = yym4 + if false { + } else if z.HasExtensions() && z.EncExt(x.Parameters) { + } else if !yym4 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Parameters) + } else { + z.EncFallback(x.Parameters) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("parameters")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Parameters == nil { + r.EncodeNil() + } else { + yym5 := z.EncBinary() + _ = yym5 + if false { + } else if z.HasExtensions() && z.EncExt(x.Parameters) { + } else if !yym5 && z.IsJSONHandle() { + z.EncJSONMarshal(x.Parameters) + } else { + z.EncFallback(x.Parameters) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ParametersChecksum)) + } } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("parameterChecksum")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ParametersChecksum)) + } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym18 := z.EncBinary() - _ = yym18 - if false { + if yyq2[2] { + if x.UserInfo == nil { + r.EncodeNil() + } else { + x.UserInfo.CodecEncodeSelf(e) + } } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + r.EncodeNil() } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym19 := z.EncBinary() - _ = yym19 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + if yyq2[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("userInfo")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.UserInfo == nil { + r.EncodeNil() + } else { + x.UserInfo.CodecEncodeSelf(e) + } } } if yyr2 || yy2arr2 { @@ -9990,7 +10987,7 @@ func (x *ServiceInstanceCredentialCondition) CodecEncodeSelf(e *codec1978.Encode } } -func (x *ServiceInstanceCredentialCondition) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialPropertiesState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -10020,7 +11017,7 @@ func (x *ServiceInstanceCredentialCondition) CodecDecodeSelf(d *codec1978.Decode } } -func (x *ServiceInstanceCredentialCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialPropertiesState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -10042,60 +11039,47 @@ func (x *ServiceInstanceCredentialCondition) codecDecodeSelfFromMap(l int, d *co yys3 := string(yys3Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv4 := &x.Type - yyv4.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv5 := &x.Status - yyv5.CodecDecodeSelf(d) - } - case "lastTransitionTime": + case "parameters": if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg1_v1.Time{} + if x.Parameters != nil { + x.Parameters = nil + } } else { - yyv6 := &x.LastTransitionTime - yym7 := z.DecBinary() - _ = yym7 + if x.Parameters == nil { + x.Parameters = new(pkg4_runtime.RawExtension) + } + yym5 := z.DecBinary() + _ = yym5 if false { - } else if z.HasExtensions() && z.DecExt(yyv6) { - } else if yym7 { - z.DecBinaryUnmarshal(yyv6) - } else if !yym7 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv6) + } else if z.HasExtensions() && z.DecExt(x.Parameters) { + } else if !yym5 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Parameters) } else { - z.DecFallback(yyv6, false) + z.DecFallback(x.Parameters, false) } } - case "reason": + case "parameterChecksum": if r.TryDecodeAsNil() { - x.Reason = "" + x.ParametersChecksum = "" } else { - yyv8 := &x.Reason - yym9 := z.DecBinary() - _ = yym9 + yyv6 := &x.ParametersChecksum + yym7 := z.DecBinary() + _ = yym7 if false { } else { - *((*string)(yyv8)) = r.DecodeString() + *((*string)(yyv6)) = r.DecodeString() } } - case "message": + case "userInfo": if r.TryDecodeAsNil() { - x.Message = "" + if x.UserInfo != nil { + x.UserInfo = nil + } } else { - yyv10 := &x.Message - yym11 := z.DecBinary() - _ = yym11 - if false { - } else { - *((*string)(yyv10)) = r.DecodeString() + if x.UserInfo == nil { + x.UserInfo = new(UserInfo) } + x.UserInfo.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) @@ -10104,186 +11088,101 @@ func (x *ServiceInstanceCredentialCondition) codecDecodeSelfFromMap(l int, d *co z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ServiceInstanceCredentialCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ServiceInstanceCredentialPropertiesState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj12 int - var yyb12 bool - var yyhl12 bool = l >= 0 - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - yyv13 := &x.Type - yyv13.CodecDecodeSelf(d) - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l - } else { - yyb12 = r.CheckBreak() - } - if yyb12 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - yyv14 := &x.Status - yyv14.CodecDecodeSelf(d) - } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l } else { - yyb12 = r.CheckBreak() + yyb9 = r.CheckBreak() } - if yyb12 { + if yyb9 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg1_v1.Time{} + if x.Parameters != nil { + x.Parameters = nil + } } else { - yyv15 := &x.LastTransitionTime - yym16 := z.DecBinary() - _ = yym16 + if x.Parameters == nil { + x.Parameters = new(pkg4_runtime.RawExtension) + } + yym11 := z.DecBinary() + _ = yym11 if false { - } else if z.HasExtensions() && z.DecExt(yyv15) { - } else if yym16 { - z.DecBinaryUnmarshal(yyv15) - } else if !yym16 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv15) + } else if z.HasExtensions() && z.DecExt(x.Parameters) { + } else if !yym11 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.Parameters) } else { - z.DecFallback(yyv15, false) + z.DecFallback(x.Parameters, false) } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l } else { - yyb12 = r.CheckBreak() + yyb9 = r.CheckBreak() } - if yyb12 { + if yyb9 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Reason = "" + x.ParametersChecksum = "" } else { - yyv17 := &x.Reason - yym18 := z.DecBinary() - _ = yym18 + yyv12 := &x.ParametersChecksum + yym13 := z.DecBinary() + _ = yym13 if false { } else { - *((*string)(yyv17)) = r.DecodeString() + *((*string)(yyv12)) = r.DecodeString() } } - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l } else { - yyb12 = r.CheckBreak() + yyb9 = r.CheckBreak() } - if yyb12 { + if yyb9 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Message = "" + if x.UserInfo != nil { + x.UserInfo = nil + } } else { - yyv19 := &x.Message - yym20 := z.DecBinary() - _ = yym20 - if false { - } else { - *((*string)(yyv19)) = r.DecodeString() + if x.UserInfo == nil { + x.UserInfo = new(UserInfo) } + x.UserInfo.CodecDecodeSelf(d) } for { - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l } else { - yyb12 = r.CheckBreak() + yyb9 = r.CheckBreak() } - if yyb12 { + if yyb9 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj12-1, "") + z.DecStructFieldNotFound(yyj9-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x ServiceInstanceCredentialConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ServiceInstanceCredentialConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x ServiceInstanceCredentialOperation) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1 := z.EncBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ServiceInstanceCredentialOperation) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1 := z.DecBinary() - _ = yym1 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - func (x *ParametersFromSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -11203,7 +12102,7 @@ func (x codecSelfer1234) decSliceServiceInstance(v *[]ServiceInstance, d *codec1 yyrg1 := len(yyv1) > 0 yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 432) + yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 448) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] @@ -11803,7 +12702,7 @@ func (x codecSelfer1234) decSliceServiceInstanceCredential(v *[]ServiceInstanceC yyrg1 := len(yyv1) > 0 yyv21 := yyv1 - yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 408) + yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 424) if yyrt1 { if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1]