Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: synchronise to ocm-api-model 0.0.365 #935

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.364
model_version:=v0.0.365
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually put this as bump MRs, and document in the CHANGES.md accordingly. See 0.1.410 as example

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lir10 are you planing to update the CHANGES.md in a followup MR?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep here it is #936

model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
73 changes: 73 additions & 0 deletions accountsmgmt/v1/default_capabilities_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
Copyright (c) 2020 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all
// your changes will be lost when the file is generated again.

package v1 // github.com/openshift-online/ocm-sdk-go/accountsmgmt/v1

// DefaultCapabilitiesBuilder contains the data and logic needed to build 'default_capabilities' objects.
//
// Default Capability model that represents default internal labels with a key-value pair.
type DefaultCapabilitiesBuilder struct {
bitmap_ uint32
name string
value string
}

// NewDefaultCapabilities creates a new builder of 'default_capabilities' objects.
func NewDefaultCapabilities() *DefaultCapabilitiesBuilder {
return &DefaultCapabilitiesBuilder{}
}

// Empty returns true if the builder is empty, i.e. no attribute has a value.
func (b *DefaultCapabilitiesBuilder) Empty() bool {
return b == nil || b.bitmap_ == 0
}

// Name sets the value of the 'name' attribute to the given value.
func (b *DefaultCapabilitiesBuilder) Name(value string) *DefaultCapabilitiesBuilder {
b.name = value
b.bitmap_ |= 1
return b
}

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

// Copy copies the attributes of the given object into this builder, discarding any previous values.
func (b *DefaultCapabilitiesBuilder) Copy(object *DefaultCapabilities) *DefaultCapabilitiesBuilder {
if object == nil {
return b
}
b.bitmap_ = object.bitmap_
b.name = object.name
b.value = object.value
return b
}

// Build creates a 'default_capabilities' object using the configuration stored in the builder.
func (b *DefaultCapabilitiesBuilder) Build() (object *DefaultCapabilities, err error) {
object = new(DefaultCapabilities)
object.bitmap_ = b.bitmap_
object.name = b.name
object.value = b.value
return
}
Loading
Loading