Skip to content

Commit 08276c6

Browse files
author
Ville Aikas
committed
generated file changes
1 parent 6489d90 commit 08276c6

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

pkg/apis/servicecatalog/v1alpha1/types.generated.go

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5107,13 +5107,14 @@ func (x *InstanceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
51075107
var yyq2 [5]bool
51085108
_, _, _ = yysep2, yyq2, yy2arr2
51095109
const yyr2 bool = false
5110+
yyq2[1] = x.PlanName != ""
51105111
yyq2[2] = x.Parameters != nil
51115112
yyq2[3] = len(x.ParametersFrom) != 0
51125113
var yynn2 int
51135114
if yyr2 || yy2arr2 {
51145115
r.EncodeArrayStart(5)
51155116
} else {
5116-
yynn2 = 3
5117+
yynn2 = 2
51175118
for _, b := range yyq2 {
51185119
if b {
51195120
yynn2++
@@ -5143,21 +5144,27 @@ func (x *InstanceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
51435144
}
51445145
if yyr2 || yy2arr2 {
51455146
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
5146-
yym7 := z.EncBinary()
5147-
_ = yym7
5148-
if false {
5147+
if yyq2[1] {
5148+
yym7 := z.EncBinary()
5149+
_ = yym7
5150+
if false {
5151+
} else {
5152+
r.EncodeString(codecSelferC_UTF81234, string(x.PlanName))
5153+
}
51495154
} else {
5150-
r.EncodeString(codecSelferC_UTF81234, string(x.PlanName))
5155+
r.EncodeString(codecSelferC_UTF81234, "")
51515156
}
51525157
} else {
5153-
z.EncSendContainerState(codecSelfer_containerMapKey1234)
5154-
r.EncodeString(codecSelferC_UTF81234, string("planName"))
5155-
z.EncSendContainerState(codecSelfer_containerMapValue1234)
5156-
yym8 := z.EncBinary()
5157-
_ = yym8
5158-
if false {
5159-
} else {
5160-
r.EncodeString(codecSelferC_UTF81234, string(x.PlanName))
5158+
if yyq2[1] {
5159+
z.EncSendContainerState(codecSelfer_containerMapKey1234)
5160+
r.EncodeString(codecSelferC_UTF81234, string("planName"))
5161+
z.EncSendContainerState(codecSelfer_containerMapValue1234)
5162+
yym8 := z.EncBinary()
5163+
_ = yym8
5164+
if false {
5165+
} else {
5166+
r.EncodeString(codecSelferC_UTF81234, string(x.PlanName))
5167+
}
51615168
}
51625169
}
51635170
if yyr2 || yy2arr2 {
@@ -7148,15 +7155,15 @@ func (x *BindingSpec) CodecEncodeSelf(e *codec1978.Encoder) {
71487155
} else {
71497156
yysep2 := !z.EncBinary()
71507157
yy2arr2 := z.EncBasicHandle().StructToArray
7151-
var yyq2 [5]bool
7158+
var yyq2 [4]bool
71527159
_, _, _ = yysep2, yyq2, yy2arr2
71537160
const yyr2 bool = false
71547161
yyq2[1] = x.Parameters != nil
71557162
yyq2[2] = len(x.ParametersFrom) != 0
71567163
yyq2[3] = x.SecretName != ""
71577164
var yynn2 int
71587165
if yyr2 || yy2arr2 {
7159-
r.EncodeArrayStart(5)
7166+
r.EncodeArrayStart(4)
71607167
} else {
71617168
yynn2 = 2
71627169
for _, b := range yyq2 {

pkg/openapi/openapi_generated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope
634634
},
635635
"planName": {
636636
SchemaProps: spec.SchemaProps{
637-
Description: "PlanName is the name of the ServicePlan this Instance should be provisioned from.",
637+
Description: "PlanName is the name of the ServicePlan this Instance should be provisioned from. If omitted and there is only one plan in the specified ServiceClass it will be used. If omitted and there are more than one plan in the specified ServiceClass the request will be rejected.",
638638
Type: []string{"string"},
639639
Format: "",
640640
},
@@ -666,7 +666,7 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope
666666
},
667667
},
668668
},
669-
Required: []string{"serviceClassName", "planName", "externalID"},
669+
Required: []string{"serviceClassName", "externalID"},
670670
},
671671
},
672672
Dependencies: []string{

0 commit comments

Comments
 (0)