Skip to content

Commit

Permalink
Merge pull request #896 from lucasponce/ocm-5802_add_external_auth_co…
Browse files Browse the repository at this point in the history
…nfig

Ocm 5802 add external auth config
  • Loading branch information
gdbranco authored Jan 30, 2024
2 parents 0d3ba53 + 80328d8 commit 908b5b4
Show file tree
Hide file tree
Showing 21 changed files with 9,307 additions and 8,889 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
This document describes the relevant changes between releases of the OCM API
SDK.

## 0.1.396
- Remove redundant fields from /notify_details
- Add `ExternalAuthConfig` to `Cluster` model.

## 0.1.395
- Add `SubnetOutposts` and `AvailabilityZoneTypes` to `aws_node_pool_type` and `aws_machine_pool_type` resources.

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export PATH := $(LOCAL_BIN_PATH):$(PATH)
export CGO_ENABLED=0

# Details of the model to use:
model_version:=v0.0.348
model_version:=v0.0.350
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
32 changes: 1 addition & 31 deletions accountsmgmt/v1/generic_notify_details_response_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ type GenericNotifyDetailsResponseBuilder struct {
href string
associates []string
items []*NotificationDetailsResponseBuilder
page int
recipients []string
size int
total int
}

// NewGenericNotifyDetailsResponse creates a new builder of 'generic_notify_details_response' objects.
Expand Down Expand Up @@ -80,32 +77,11 @@ func (b *GenericNotifyDetailsResponseBuilder) Items(values ...*NotificationDetai
return b
}

// Page sets the value of the 'page' attribute to the given value.
func (b *GenericNotifyDetailsResponseBuilder) Page(value int) *GenericNotifyDetailsResponseBuilder {
b.page = value
b.bitmap_ |= 32
return b
}

// Recipients sets the value of the 'recipients' attribute to the given values.
func (b *GenericNotifyDetailsResponseBuilder) Recipients(values ...string) *GenericNotifyDetailsResponseBuilder {
b.recipients = make([]string, len(values))
copy(b.recipients, values)
b.bitmap_ |= 64
return b
}

// Size sets the value of the 'size' attribute to the given value.
func (b *GenericNotifyDetailsResponseBuilder) Size(value int) *GenericNotifyDetailsResponseBuilder {
b.size = value
b.bitmap_ |= 128
return b
}

// Total sets the value of the 'total' attribute to the given value.
func (b *GenericNotifyDetailsResponseBuilder) Total(value int) *GenericNotifyDetailsResponseBuilder {
b.total = value
b.bitmap_ |= 256
b.bitmap_ |= 32
return b
}

Expand All @@ -131,15 +107,12 @@ func (b *GenericNotifyDetailsResponseBuilder) Copy(object *GenericNotifyDetailsR
} else {
b.items = nil
}
b.page = object.page
if object.recipients != nil {
b.recipients = make([]string, len(object.recipients))
copy(b.recipients, object.recipients)
} else {
b.recipients = nil
}
b.size = object.size
b.total = object.total
return b
}

Expand All @@ -162,12 +135,9 @@ func (b *GenericNotifyDetailsResponseBuilder) Build() (object *GenericNotifyDeta
}
}
}
object.page = b.page
if b.recipients != nil {
object.recipients = make([]string, len(b.recipients))
copy(object.recipients, b.recipients)
}
object.size = b.size
object.total = b.total
return
}
86 changes: 2 additions & 84 deletions accountsmgmt/v1/generic_notify_details_response_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ type GenericNotifyDetailsResponse struct {
href string
associates []string
items []*NotificationDetailsResponse
page int
recipients []string
size int
total int
}

// Kind returns the name of the type of the object.
Expand Down Expand Up @@ -149,37 +146,12 @@ func (o *GenericNotifyDetailsResponse) GetItems() (value []*NotificationDetailsR
return
}

// Page returns the value of the 'page' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Index of the returned page, where one corresponds to the first page. As this
// collection doesn't support paging the result will always be `1`.
func (o *GenericNotifyDetailsResponse) Page() int {
if o != nil && o.bitmap_&32 != 0 {
return o.page
}
return 0
}

// GetPage returns the value of the 'page' attribute and
// a flag indicating if the attribute has a value.
//
// Index of the returned page, where one corresponds to the first page. As this
// collection doesn't support paging the result will always be `1`.
func (o *GenericNotifyDetailsResponse) GetPage() (value int, ok bool) {
ok = o != nil && o.bitmap_&32 != 0
if ok {
value = o.page
}
return
}

// Recipients returns the value of the 'recipients' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Retrieved List of recipients username.
func (o *GenericNotifyDetailsResponse) Recipients() []string {
if o != nil && o.bitmap_&64 != 0 {
if o != nil && o.bitmap_&32 != 0 {
return o.recipients
}
return nil
Expand All @@ -190,67 +162,13 @@ func (o *GenericNotifyDetailsResponse) Recipients() []string {
//
// Retrieved List of recipients username.
func (o *GenericNotifyDetailsResponse) GetRecipients() (value []string, ok bool) {
ok = o != nil && o.bitmap_&64 != 0
ok = o != nil && o.bitmap_&32 != 0
if ok {
value = o.recipients
}
return
}

// Size returns the value of the 'size' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Number of items that will be contained in the returned page. As this collection
// doesn't support paging or searching the result will always be the total number of
// notify details.
func (o *GenericNotifyDetailsResponse) Size() int {
if o != nil && o.bitmap_&128 != 0 {
return o.size
}
return 0
}

// GetSize returns the value of the 'size' attribute and
// a flag indicating if the attribute has a value.
//
// Number of items that will be contained in the returned page. As this collection
// doesn't support paging or searching the result will always be the total number of
// notify details.
func (o *GenericNotifyDetailsResponse) GetSize() (value int, ok bool) {
ok = o != nil && o.bitmap_&128 != 0
if ok {
value = o.size
}
return
}

// Total returns the value of the 'total' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Total number of items of the collection that match the search criteria,
// regardless of the size of the page. As this collection doesn't support paging or
// searching the result will always be the total number of notify details.
func (o *GenericNotifyDetailsResponse) Total() int {
if o != nil && o.bitmap_&256 != 0 {
return o.total
}
return 0
}

// GetTotal returns the value of the 'total' attribute and
// a flag indicating if the attribute has a value.
//
// Total number of items of the collection that match the search criteria,
// regardless of the size of the page. As this collection doesn't support paging or
// searching the result will always be the total number of notify details.
func (o *GenericNotifyDetailsResponse) GetTotal() (value int, ok bool) {
ok = o != nil && o.bitmap_&256 != 0
if ok {
value = o.total
}
return
}

// GenericNotifyDetailsResponseListKind is the name of the type used to represent list of objects of
// type 'generic_notify_details_response'.
const GenericNotifyDetailsResponseListKind = "GenericNotifyDetailsResponseList"
Expand Down
43 changes: 2 additions & 41 deletions accountsmgmt/v1/generic_notify_details_response_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,40 +83,13 @@ func writeGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, str
writeNotificationDetailsResponseList(object.items, stream)
count++
}
present_ = object.bitmap_&32 != 0
if present_ {
if count > 0 {
stream.WriteMore()
}
stream.WriteObjectField("page")
stream.WriteInt(object.page)
count++
}
present_ = object.bitmap_&64 != 0 && object.recipients != nil
present_ = object.bitmap_&32 != 0 && object.recipients != nil
if present_ {
if count > 0 {
stream.WriteMore()
}
stream.WriteObjectField("recipients")
writeStringList(object.recipients, stream)
count++
}
present_ = object.bitmap_&128 != 0
if present_ {
if count > 0 {
stream.WriteMore()
}
stream.WriteObjectField("size")
stream.WriteInt(object.size)
count++
}
present_ = object.bitmap_&256 != 0
if present_ {
if count > 0 {
stream.WriteMore()
}
stream.WriteObjectField("total")
stream.WriteInt(object.total)
}
stream.WriteObjectEnd()
}
Expand Down Expand Up @@ -161,22 +134,10 @@ func readGenericNotifyDetailsResponse(iterator *jsoniter.Iterator) *GenericNotif
value := readNotificationDetailsResponseList(iterator)
object.items = value
object.bitmap_ |= 16
case "page":
value := iterator.ReadInt()
object.page = value
object.bitmap_ |= 32
case "recipients":
value := readStringList(iterator)
object.recipients = value
object.bitmap_ |= 64
case "size":
value := iterator.ReadInt()
object.size = value
object.bitmap_ |= 128
case "total":
value := iterator.ReadInt()
object.total = value
object.bitmap_ |= 256
object.bitmap_ |= 32
default:
iterator.ReadAny()
}
Expand Down
Loading

0 comments on commit 908b5b4

Please sign in to comment.