Skip to content

Commit

Permalink
chore: bump to ocm-api-model 0.0.383 (#975)
Browse files Browse the repository at this point in the history
Signed-off-by: Chaitanya Kandagatla <ckandaga@redhat.com>
  • Loading branch information
ckandag authored Jul 23, 2024
1 parent e79a931 commit ef7e992
Show file tree
Hide file tree
Showing 6 changed files with 5,301 additions and 5,184 deletions.
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.382
model_version:=v0.0.383
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
20 changes: 20 additions & 0 deletions clustersmgmt/v1/gcp_authentication_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ package v1 // github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1
type GcpAuthenticationBuilder struct {
bitmap_ uint32
href string
id string
kind string
}

// NewGcpAuthentication creates a new builder of 'gcp_authentication' objects.
Expand All @@ -44,13 +46,29 @@ func (b *GcpAuthenticationBuilder) Href(value string) *GcpAuthenticationBuilder
return b
}

// Id sets the value of the 'id' attribute to the given value.
func (b *GcpAuthenticationBuilder) Id(value string) *GcpAuthenticationBuilder {
b.id = value
b.bitmap_ |= 2
return b
}

// Kind sets the value of the 'kind' attribute to the given value.
func (b *GcpAuthenticationBuilder) Kind(value string) *GcpAuthenticationBuilder {
b.kind = value
b.bitmap_ |= 4
return b
}

// Copy copies the attributes of the given object into this builder, discarding any previous values.
func (b *GcpAuthenticationBuilder) Copy(object *GcpAuthentication) *GcpAuthenticationBuilder {
if object == nil {
return b
}
b.bitmap_ = object.bitmap_
b.href = object.href
b.id = object.id
b.kind = object.kind
return b
}

Expand All @@ -59,5 +77,7 @@ func (b *GcpAuthenticationBuilder) Build() (object *GcpAuthentication, err error
object = new(GcpAuthentication)
object.bitmap_ = b.bitmap_
object.href = b.href
object.id = b.id
object.kind = b.kind
return
}
52 changes: 50 additions & 2 deletions clustersmgmt/v1/gcp_authentication_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ package v1 // github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1
type GcpAuthentication struct {
bitmap_ uint32
href string
id string
kind string
}

// Empty returns true if the object is empty, i.e. no attribute has a value.
Expand All @@ -35,7 +37,7 @@ func (o *GcpAuthentication) Empty() bool {
// Href returns the value of the 'href' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Self Link
// Self link
func (o *GcpAuthentication) Href() string {
if o != nil && o.bitmap_&1 != 0 {
return o.href
Expand All @@ -46,7 +48,7 @@ func (o *GcpAuthentication) Href() string {
// GetHref returns the value of the 'href' attribute and
// a flag indicating if the attribute has a value.
//
// Self Link
// Self link
func (o *GcpAuthentication) GetHref() (value string, ok bool) {
ok = o != nil && o.bitmap_&1 != 0
if ok {
Expand All @@ -55,6 +57,52 @@ func (o *GcpAuthentication) GetHref() (value string, ok bool) {
return
}

// Id returns the value of the 'id' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Unique identifier of the object
func (o *GcpAuthentication) Id() string {
if o != nil && o.bitmap_&2 != 0 {
return o.id
}
return ""
}

// GetId returns the value of the 'id' attribute and
// a flag indicating if the attribute has a value.
//
// Unique identifier of the object
func (o *GcpAuthentication) GetId() (value string, ok bool) {
ok = o != nil && o.bitmap_&2 != 0
if ok {
value = o.id
}
return
}

// Kind returns the value of the 'kind' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Indicates the type of this object
func (o *GcpAuthentication) Kind() string {
if o != nil && o.bitmap_&4 != 0 {
return o.kind
}
return ""
}

// GetKind returns the value of the 'kind' attribute and
// a flag indicating if the attribute has a value.
//
// Indicates the type of this object
func (o *GcpAuthentication) GetKind() (value string, ok bool) {
ok = o != nil && o.bitmap_&4 != 0
if ok {
value = o.kind
}
return
}

// GcpAuthenticationListKind is the name of the type used to represent list of objects of
// type 'gcp_authentication'.
const GcpAuthenticationListKind = "GcpAuthenticationList"
Expand Down
26 changes: 26 additions & 0 deletions clustersmgmt/v1/gcp_authentication_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,24 @@ func writeGcpAuthentication(object *GcpAuthentication, stream *jsoniter.Stream)
}
stream.WriteObjectField("href")
stream.WriteString(object.href)
count++
}
present_ = object.bitmap_&2 != 0
if present_ {
if count > 0 {
stream.WriteMore()
}
stream.WriteObjectField("id")
stream.WriteString(object.id)
count++
}
present_ = object.bitmap_&4 != 0
if present_ {
if count > 0 {
stream.WriteMore()
}
stream.WriteObjectField("kind")
stream.WriteString(object.kind)
}
stream.WriteObjectEnd()
}
Expand Down Expand Up @@ -78,6 +96,14 @@ func readGcpAuthentication(iterator *jsoniter.Iterator) *GcpAuthentication {
value := iterator.ReadString()
object.href = value
object.bitmap_ |= 1
case "id":
value := iterator.ReadString()
object.id = value
object.bitmap_ |= 2
case "kind":
value := iterator.ReadString()
object.kind = value
object.bitmap_ |= 4
default:
iterator.ReadAny()
}
Expand Down
Loading

0 comments on commit ef7e992

Please sign in to comment.