Skip to content

Commit

Permalink
OCM-3277 | feat:Updated SDK version to 317
Browse files Browse the repository at this point in the history
  • Loading branch information
den-rgb committed Sep 11, 2023
1 parent 97a758c commit dc89227
Show file tree
Hide file tree
Showing 14 changed files with 12,063 additions and 10,380 deletions.
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.316
model_version:=v0.0.317
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
21,006 changes: 10,627 additions & 10,379 deletions clustersmgmt/v1/openapi.go

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions clustersmgmt/v1/root_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,16 @@ func (c *Client) ProvisionShards() *ProvisionShardsClient {
)
}

// TrustedIPAddresses returns the target 'trusted_ips' resource.
//
// Reference to the resource that manages the collection of trusted ip addresses.
func (c *Client) TrustedIPAddresses() *TrustedIpsClient {
return NewTrustedIpsClient(
c.transport,
path.Join(c.path, "trusted_ip_addresses"),
)
}

// VersionGates returns the target 'version_gates' resource.
//
// Reference to version gates.
Expand Down
89 changes: 89 additions & 0 deletions clustersmgmt/v1/trusted_ip_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
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

// TrustedIpBuilder contains the data and logic needed to build 'trusted_ip' objects.
//
// Representation of a trusted ip address in clusterdeployment.
type TrustedIpBuilder struct {
bitmap_ uint32
id string
href string
enabled bool
}

// NewTrustedIp creates a new builder of 'trusted_ip' objects.
func NewTrustedIp() *TrustedIpBuilder {
return &TrustedIpBuilder{}
}

// Link sets the flag that indicates if this is a link.
func (b *TrustedIpBuilder) Link(value bool) *TrustedIpBuilder {
b.bitmap_ |= 1
return b
}

// ID sets the identifier of the object.
func (b *TrustedIpBuilder) ID(value string) *TrustedIpBuilder {
b.id = value
b.bitmap_ |= 2
return b
}

// HREF sets the link to the object.
func (b *TrustedIpBuilder) HREF(value string) *TrustedIpBuilder {
b.href = value
b.bitmap_ |= 4
return b
}

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

// Enabled sets the value of the 'enabled' attribute to the given value.
func (b *TrustedIpBuilder) Enabled(value bool) *TrustedIpBuilder {
b.enabled = value
b.bitmap_ |= 8
return b
}

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

// Build creates a 'trusted_ip' object using the configuration stored in the builder.
func (b *TrustedIpBuilder) Build() (object *TrustedIp, err error) {
object = new(TrustedIp)
object.id = b.id
object.href = b.href
object.bitmap_ = b.bitmap_
object.enabled = b.enabled
return
}
Loading

0 comments on commit dc89227

Please sign in to comment.