Skip to content

Commit 3b5367b

Browse files
authored
feat(Catalog Management): re-gen service after recent API changes (#249)
Signed-off-by: James Dubee <jwdubee@us.ibm.com>
1 parent c3088f8 commit 3b5367b

3 files changed

+22
-1
lines changed

catalogmanagementv1/catalog_management_v1.go

+13-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/*
18-
* IBM OpenAPI SDK Code Generator Version: 3.68.2-ac7def68-20230310-195410
18+
* IBM OpenAPI SDK Code Generator Version: 3.70.0-7df966bf-20230419-195904
1919
*/
2020

2121
// Package catalogmanagementv1 : Operations and models for the CatalogManagementV1 service
@@ -2987,6 +2987,9 @@ func (catalogManagement *CatalogManagementV1) GetOfferingSourceWithContext(ctx c
29872987
if getOfferingSourceOptions.Channel != nil {
29882988
builder.AddQuery("channel", fmt.Sprint(*getOfferingSourceOptions.Channel))
29892989
}
2990+
if getOfferingSourceOptions.Flavor != nil {
2991+
builder.AddQuery("flavor", fmt.Sprint(*getOfferingSourceOptions.Flavor))
2992+
}
29902993
if getOfferingSourceOptions.AsIs != nil {
29912994
builder.AddQuery("asIs", fmt.Sprint(*getOfferingSourceOptions.AsIs))
29922995
}
@@ -11683,6 +11686,9 @@ type GetOfferingSourceOptions struct {
1168311686
// The channel value of the specified version.
1168411687
Channel *string `json:"channel,omitempty"`
1168511688

11689+
// The programmatic flavor name of the specified version.
11690+
Flavor *string `json:"flavor,omitempty"`
11691+
1168611692
// If false (the default), the root folder from the original onboarded tgz file is removed. If true, the root folder
1168711693
// is returned.
1168811694
AsIs *bool `json:"asIs,omitempty"`
@@ -11740,6 +11746,12 @@ func (_options *GetOfferingSourceOptions) SetChannel(channel string) *GetOfferin
1174011746
return _options
1174111747
}
1174211748

11749+
// SetFlavor : Allow user to set Flavor
11750+
func (_options *GetOfferingSourceOptions) SetFlavor(flavor string) *GetOfferingSourceOptions {
11751+
_options.Flavor = core.StringPtr(flavor)
11752+
return _options
11753+
}
11754+
1174311755
// SetAsIs : Allow user to set AsIs
1174411756
func (_options *GetOfferingSourceOptions) SetAsIs(asIs bool) *GetOfferingSourceOptions {
1174511757
_options.AsIs = core.BoolPtr(asIs)

catalogmanagementv1/catalog_management_v1_integration_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -2099,6 +2099,7 @@ var _ = Describe(`CatalogManagementV1 Integration Tests`, func() {
20992099
ID: core.StringPtr("testString"),
21002100
Kind: core.StringPtr("testString"),
21012101
Channel: core.StringPtr("testString"),
2102+
Flavor: core.StringPtr("testString"),
21022103
}
21032104

21042105
result, response, err := catalogManagementService.GetOfferingSource(getOfferingSourceOptions)

catalogmanagementv1/catalog_management_v1_test.go

+8
Original file line numberDiff line numberDiff line change
@@ -14570,6 +14570,7 @@ var _ = Describe(`CatalogManagementV1`, func() {
1457014570
Expect(req.URL.Query()["id"]).To(Equal([]string{"testString"}))
1457114571
Expect(req.URL.Query()["kind"]).To(Equal([]string{"testString"}))
1457214572
Expect(req.URL.Query()["channel"]).To(Equal([]string{"testString"}))
14573+
Expect(req.URL.Query()["flavor"]).To(Equal([]string{"testString"}))
1457314574
// TODO: Add check for asIs query parameter
1457414575
// Sleep a short time to support a timeout test
1457514576
time.Sleep(100 * time.Millisecond)
@@ -14598,6 +14599,7 @@ var _ = Describe(`CatalogManagementV1`, func() {
1459814599
getOfferingSourceOptionsModel.ID = core.StringPtr("testString")
1459914600
getOfferingSourceOptionsModel.Kind = core.StringPtr("testString")
1460014601
getOfferingSourceOptionsModel.Channel = core.StringPtr("testString")
14602+
getOfferingSourceOptionsModel.Flavor = core.StringPtr("testString")
1460114603
getOfferingSourceOptionsModel.AsIs = core.BoolPtr(true)
1460214604
getOfferingSourceOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"}
1460314605

@@ -14643,6 +14645,7 @@ var _ = Describe(`CatalogManagementV1`, func() {
1464314645
Expect(req.URL.Query()["id"]).To(Equal([]string{"testString"}))
1464414646
Expect(req.URL.Query()["kind"]).To(Equal([]string{"testString"}))
1464514647
Expect(req.URL.Query()["channel"]).To(Equal([]string{"testString"}))
14648+
Expect(req.URL.Query()["flavor"]).To(Equal([]string{"testString"}))
1464614649
// TODO: Add check for asIs query parameter
1464714650
// Set mock response
1464814651
res.Header().Set("Content-type", "application/yaml")
@@ -14673,6 +14676,7 @@ var _ = Describe(`CatalogManagementV1`, func() {
1467314676
getOfferingSourceOptionsModel.ID = core.StringPtr("testString")
1467414677
getOfferingSourceOptionsModel.Kind = core.StringPtr("testString")
1467514678
getOfferingSourceOptionsModel.Channel = core.StringPtr("testString")
14679+
getOfferingSourceOptionsModel.Flavor = core.StringPtr("testString")
1467614680
getOfferingSourceOptionsModel.AsIs = core.BoolPtr(true)
1467714681
getOfferingSourceOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"}
1467814682

@@ -14700,6 +14704,7 @@ var _ = Describe(`CatalogManagementV1`, func() {
1470014704
getOfferingSourceOptionsModel.ID = core.StringPtr("testString")
1470114705
getOfferingSourceOptionsModel.Kind = core.StringPtr("testString")
1470214706
getOfferingSourceOptionsModel.Channel = core.StringPtr("testString")
14707+
getOfferingSourceOptionsModel.Flavor = core.StringPtr("testString")
1470314708
getOfferingSourceOptionsModel.AsIs = core.BoolPtr(true)
1470414709
getOfferingSourceOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"}
1470514710
// Invoke operation with empty URL (negative test)
@@ -14748,6 +14753,7 @@ var _ = Describe(`CatalogManagementV1`, func() {
1474814753
getOfferingSourceOptionsModel.ID = core.StringPtr("testString")
1474914754
getOfferingSourceOptionsModel.Kind = core.StringPtr("testString")
1475014755
getOfferingSourceOptionsModel.Channel = core.StringPtr("testString")
14756+
getOfferingSourceOptionsModel.Flavor = core.StringPtr("testString")
1475114757
getOfferingSourceOptionsModel.AsIs = core.BoolPtr(true)
1475214758
getOfferingSourceOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"}
1475314759

@@ -26990,6 +26996,7 @@ var _ = Describe(`CatalogManagementV1`, func() {
2699026996
getOfferingSourceOptionsModel.SetID("testString")
2699126997
getOfferingSourceOptionsModel.SetKind("testString")
2699226998
getOfferingSourceOptionsModel.SetChannel("testString")
26999+
getOfferingSourceOptionsModel.SetFlavor("testString")
2699327000
getOfferingSourceOptionsModel.SetAsIs(true)
2699427001
getOfferingSourceOptionsModel.SetHeaders(map[string]string{"foo": "bar"})
2699527002
Expect(getOfferingSourceOptionsModel).ToNot(BeNil())
@@ -27000,6 +27007,7 @@ var _ = Describe(`CatalogManagementV1`, func() {
2700027007
Expect(getOfferingSourceOptionsModel.ID).To(Equal(core.StringPtr("testString")))
2700127008
Expect(getOfferingSourceOptionsModel.Kind).To(Equal(core.StringPtr("testString")))
2700227009
Expect(getOfferingSourceOptionsModel.Channel).To(Equal(core.StringPtr("testString")))
27010+
Expect(getOfferingSourceOptionsModel.Flavor).To(Equal(core.StringPtr("testString")))
2700327011
Expect(getOfferingSourceOptionsModel.AsIs).To(Equal(core.BoolPtr(true)))
2700427012
Expect(getOfferingSourceOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"}))
2700527013
})

0 commit comments

Comments
 (0)