Skip to content

Commit

Permalink
Merge pull request #574 from olisakov/Release_v0.1.244
Browse files Browse the repository at this point in the history
Release v0.1.244
  • Loading branch information
jhernand authored Mar 2, 2022
2 parents a14a671 + f041335 commit 1c9fb31
Show file tree
Hide file tree
Showing 16 changed files with 10,498 additions and 8,847 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.244 Mar 02 2022
- Update to model 0.0.176
- adding new endpoint for 'environment'

## 0.1.243 Mar 02 2022
- Update to model 0.0.175
- adding new apis for addon config attribute
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
export CGO_ENABLED=0

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

# Details of the metamodel to use:
Expand Down
93 changes: 93 additions & 0 deletions clustersmgmt/v1/environment_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
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/clustersmgmt/v1

import (
time "time"
)

// EnvironmentBuilder contains the data and logic needed to build 'environment' objects.
//
// Description of an environment
type EnvironmentBuilder struct {
bitmap_ uint32
lastLimitedSupportCheck time.Time
lastUpgradeAvailableCheck time.Time
name string
}

// NewEnvironment creates a new builder of 'environment' objects.
func NewEnvironment() *EnvironmentBuilder {
return &EnvironmentBuilder{}
}

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

// LastLimitedSupportCheck sets the value of the 'last_limited_support_check' attribute to the given value.
//
//
func (b *EnvironmentBuilder) LastLimitedSupportCheck(value time.Time) *EnvironmentBuilder {
b.lastLimitedSupportCheck = value
b.bitmap_ |= 1
return b
}

// LastUpgradeAvailableCheck sets the value of the 'last_upgrade_available_check' attribute to the given value.
//
//
func (b *EnvironmentBuilder) LastUpgradeAvailableCheck(value time.Time) *EnvironmentBuilder {
b.lastUpgradeAvailableCheck = value
b.bitmap_ |= 2
return b
}

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

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

// Build creates a 'environment' object using the configuration stored in the builder.
func (b *EnvironmentBuilder) Build() (object *Environment, err error) {
object = new(Environment)
object.bitmap_ = b.bitmap_
object.lastLimitedSupportCheck = b.lastLimitedSupportCheck
object.lastUpgradeAvailableCheck = b.lastUpgradeAvailableCheck
object.name = b.name
return
}
Loading

0 comments on commit 1c9fb31

Please sign in to comment.