Skip to content

Commit

Permalink
Merge pull request #1012 from JakobGray/OCM-12286
Browse files Browse the repository at this point in the history
Bump version to 0.1.449
  • Loading branch information
renan-campos authored Dec 2, 2024
2 parents 505f185 + bd0628e commit 1b6bfad
Show file tree
Hide file tree
Showing 14 changed files with 19,176 additions and 18,173 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
This document describes the relevant changes between releases of the OCM API
SDK.

## 0.1.449
Update model version v0.0.402
- Add WifConfig status endpoint
- Add `WifConfigStatus` model

## 0.1.448
- Update model version v0.0.401
- Include support for HCP shared vpc fields in `Cluster` and `DNS` models.
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.401
model_version:=v0.0.402
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
36,450 changes: 18,280 additions & 18,170 deletions clustersmgmt/v1/openapi.go

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions clustersmgmt/v1/wif_config_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"io"
"net/http"
"net/url"
"path"
"time"

"github.com/openshift-online/ocm-sdk-go/errors"
Expand Down Expand Up @@ -69,6 +70,14 @@ func (c *WifConfigClient) Get() *WifConfigGetRequest {
}
}

// Status returns the target 'wif_config_status' resource.
func (c *WifConfigClient) Status() *WifConfigStatusClient {
return NewWifConfigStatusClient(
c.transport,
path.Join(c.path, "status"),
)
}

// WifConfigPollRequest is the request for the Poll method.
type WifConfigPollRequest struct {
request *WifConfigGetRequest
Expand Down
73 changes: 73 additions & 0 deletions clustersmgmt/v1/wif_config_status_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/clustersmgmt/v1

// WifConfigStatusBuilder contains the data and logic needed to build 'wif_config_status' objects.
//
// Configuration status of a WifConfig.
type WifConfigStatusBuilder struct {
bitmap_ uint32
description string
configured bool
}

// NewWifConfigStatus creates a new builder of 'wif_config_status' objects.
func NewWifConfigStatus() *WifConfigStatusBuilder {
return &WifConfigStatusBuilder{}
}

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

// Configured sets the value of the 'configured' attribute to the given value.
func (b *WifConfigStatusBuilder) Configured(value bool) *WifConfigStatusBuilder {
b.configured = value
b.bitmap_ |= 1
return b
}

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

// Copy copies the attributes of the given object into this builder, discarding any previous values.
func (b *WifConfigStatusBuilder) Copy(object *WifConfigStatus) *WifConfigStatusBuilder {
if object == nil {
return b
}
b.bitmap_ = object.bitmap_
b.configured = object.configured
b.description = object.description
return b
}

// Build creates a 'wif_config_status' object using the configuration stored in the builder.
func (b *WifConfigStatusBuilder) Build() (object *WifConfigStatus, err error) {
object = new(WifConfigStatus)
object.bitmap_ = b.bitmap_
object.configured = b.configured
object.description = b.description
return
}
Loading

0 comments on commit 1b6bfad

Please sign in to comment.