Skip to content

Commit e86e57f

Browse files
committed
Merge branch 'extend-generator-for-x-no-pagination' of github.com:ARM-software/embedded-development-services-client into extend-generator-for-x-no-pagination
2 parents 0973750 + ba6124f commit e86e57f

3 files changed

Lines changed: 1 addition & 66 deletions

File tree

changes/20250622162325.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated client due to schema changes

client/extension_entities.gen.go

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,39 +1778,6 @@ func (o *UserCollection) FetchTitle() (string, error) {
17781778
return o.GetTitle(), nil
17791779
}
17801780

1781-
func (o *UserCollection) HasNext() bool {
1782-
if links, has := o.GetLinksOk(); has {
1783-
return links.HasNext()
1784-
}
1785-
return false
1786-
}
1787-
1788-
func (o *UserCollection) GetItemIterator() (IIterator, error) {
1789-
if o.HasEmbedded() {
1790-
embedded := o.GetEmbedded()
1791-
return NewUserIterator(embedded.GetItem())
1792-
}
1793-
links, err := o.FetchLinks()
1794-
if err != nil {
1795-
return nil, err
1796-
}
1797-
l, ok := links.(HalCollectionLinks)
1798-
if !ok {
1799-
return nil, fmt.Errorf("wrong link type [%T]; expected [HalCollectionLinks]", links)
1800-
}
1801-
return NewHalLinkDataIterator(l.GetItem())
1802-
}
1803-
1804-
func (o *UserCollection) GetItemCount() (count int64, err error) {
1805-
m, ok := o.GetMetadataOk()
1806-
if !ok {
1807-
err = fmt.Errorf("missing metadata: %v", o)
1808-
return
1809-
}
1810-
count = int64(m.GetCount())
1811-
return
1812-
}
1813-
18141781
// NewUserCollection returns a page.
18151782
func NewUserCollectionCollection() IStaticPage {
18161783
return NewUserCollectionWithDefaults()

extensions/extension_entities.gen.go

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,39 +1778,6 @@ func (o *UserCollection) FetchTitle() (string, error) {
17781778
return o.GetTitle(), nil
17791779
}
17801780

1781-
func (o *UserCollection) HasNext() bool {
1782-
if links, has := o.GetLinksOk(); has {
1783-
return links.HasNext()
1784-
}
1785-
return false
1786-
}
1787-
1788-
func (o *UserCollection) GetItemIterator() (IIterator, error) {
1789-
if o.HasEmbedded() {
1790-
embedded := o.GetEmbedded()
1791-
return NewUserIterator(embedded.GetItem())
1792-
}
1793-
links, err := o.FetchLinks()
1794-
if err != nil {
1795-
return nil, err
1796-
}
1797-
l, ok := links.(HalCollectionLinks)
1798-
if !ok {
1799-
return nil, fmt.Errorf("wrong link type [%T]; expected [HalCollectionLinks]", links)
1800-
}
1801-
return NewHalLinkDataIterator(l.GetItem())
1802-
}
1803-
1804-
func (o *UserCollection) GetItemCount() (count int64, err error) {
1805-
m, ok := o.GetMetadataOk()
1806-
if !ok {
1807-
err = fmt.Errorf("missing metadata: %v", o)
1808-
return
1809-
}
1810-
count = int64(m.GetCount())
1811-
return
1812-
}
1813-
18141781
// NewUserCollection returns a page.
18151782
func NewUserCollectionCollection() IStaticPage {
18161783
return NewUserCollectionWithDefaults()

0 commit comments

Comments
 (0)