Skip to content

Commit

Permalink
Merge pull request #684 from tbrisker/290
Browse files Browse the repository at this point in the history
Release 0.1.290
  • Loading branch information
tbrisker authored Oct 25, 2022
2 parents d870d71 + 2892a7e commit bde773f
Show file tree
Hide file tree
Showing 112 changed files with 24,225 additions and 6,560 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
run: |
git diff --exit-code \
accountsmgmt \
addonsmgmt \
authorizations \
clustersmgmt \
jobqueue \
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
run:
skip-dirs:
- accountsmgmt
- addonsmgmt
- authorizations
- clustersmgmt
- errors
Expand Down
29 changes: 18 additions & 11 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
This document describes the relevant changes between releases of the OCM API
SDK.

## 0.1.290
- Update to model 0.0.229
- Add Addon Management models
- Add GCP Encryption Keys to cluster model
- Add client for Fleet Management service
- Add client for Addons Management service

## 0.1.289
- Update to model 0.0.228
- Add hypershift endpoint with its ManagementCluster.
- Align hypershift case usage.
- Align hypershift case usage.
- [Hypershift] Expose /manifests
- Added expiry setting to managed service clusters.
- Added Manifests to external_configuration.
Expand All @@ -25,7 +32,7 @@ SDK.

## 0.1.286
- Update to model 0.0.220:
- Add `ManagedBy` property in RoleBinding type
- Add `ManagedBy` property in RoleBinding type

## 0.1.285
- Update to model 0.0.219:
Expand All @@ -47,15 +54,15 @@ SDK.

## 0.1.281
- Update to model 0.0.214:
- Add locator `label` to Generic Labels resource.
- Add locator `label` to Generic Labels resource.

## 0.1.280
- Update to model 0.0.213:
- Add update function to provision shard API.
- Add update function to provision shard API.

## 0.1.279
- Update to model 0.0.212:
- Add status to provision shard API.
- Add status to provision shard API.

## 0.1.278
- Update to model 0.0.211:
Expand Down Expand Up @@ -209,8 +216,8 @@ SDK.

## 0.1.250 Mar 14 2022

- Update to model 0.0.181:
- Add aws sts policy
- Update to model 0.0.181:
- Add aws sts policy
- Add ReleaseImage to Version

## 0.1.249 Mar 9 2022
Expand Down Expand Up @@ -250,7 +257,7 @@ 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 All @@ -265,7 +272,7 @@ SDK.

## 0.1.241 Feb 11 2022

- Update to model 0.0.173:
- Update to model 0.0.173:
- addons: Support attributes necessary for STS.
- Add ProductIds param to Status Resource.
- Add Role bindings to Subscription.
Expand Down Expand Up @@ -378,7 +385,7 @@ SDK.

## 0.1.225 Dec 19 2021

- MatchJQ should require at least one result
- MatchJQ should require at least one result
- Update to model 0.0.158:
- Adding subnetworks to vpc inquiry
- Add statuses path to service model, add some comments.
Expand Down Expand Up @@ -440,7 +447,7 @@ development and build workflows:
- Update to model 0.0.152
- Update type `resource` to `clusterResources`
- Revert "Add Name field to LDAP identity provider"
- Remove addon install mode `singleNamespace`
- Remove addon install mode `singleNamespace`
- Add addon install mode `ownNamespace`
- Add channel to addon version class

Expand Down
3 changes: 2 additions & 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.228
model_version:=v0.0.229
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down Expand Up @@ -53,6 +53,7 @@ lint:
generate: model metamodel
rm -rf \
accountsmgmt \
addonsmgmt \
authorizations \
clustersmgmt \
errors \
Expand Down
50 changes: 50 additions & 0 deletions addonsmgmt/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
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 addonsmgmt // github.com/openshift-online/ocm-sdk-go/addonsmgmt

import (
"net/http"
"path"

v1 "github.com/openshift-online/ocm-sdk-go/addonsmgmt/v1"
)

// Client is the client for service 'addons_mgmt'.
type Client struct {
transport http.RoundTripper
path string
}

// NewClient creates a new client for the service 'addons_mgmt' using the
// given transport to send the requests and receive the responses.
func NewClient(transport http.RoundTripper, path string) *Client {
client := new(Client)
client.transport = transport
client.path = path
return client
}

// V1 returns a reference to a client for version 'v1'.
func (c *Client) V1() *v1.Client {
return v1.NewClient(
c.transport,
path.Join(c.path, "v1"),
)
}
101 changes: 101 additions & 0 deletions addonsmgmt/v1/additional_catalog_source_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/*
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/addonsmgmt/v1

// AdditionalCatalogSourceBuilder contains the data and logic needed to build 'additional_catalog_source' objects.
//
// Representation of an addon catalog source object used by addon versions.
type AdditionalCatalogSourceBuilder struct {
bitmap_ uint32
id string
image string
name string
enabled bool
}

// NewAdditionalCatalogSource creates a new builder of 'additional_catalog_source' objects.
func NewAdditionalCatalogSource() *AdditionalCatalogSourceBuilder {
return &AdditionalCatalogSourceBuilder{}
}

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

// ID sets the value of the 'ID' attribute to the given value.
//
//
func (b *AdditionalCatalogSourceBuilder) ID(value string) *AdditionalCatalogSourceBuilder {
b.id = value
b.bitmap_ |= 1
return b
}

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

// Image sets the value of the 'image' attribute to the given value.
//
//
func (b *AdditionalCatalogSourceBuilder) Image(value string) *AdditionalCatalogSourceBuilder {
b.image = value
b.bitmap_ |= 4
return b
}

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

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

// Build creates a 'additional_catalog_source' object using the configuration stored in the builder.
func (b *AdditionalCatalogSourceBuilder) Build() (object *AdditionalCatalogSource, err error) {
object = new(AdditionalCatalogSource)
object.bitmap_ = b.bitmap_
object.id = b.id
object.enabled = b.enabled
object.image = b.image
object.name = b.name
return
}
71 changes: 71 additions & 0 deletions addonsmgmt/v1/additional_catalog_source_list_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
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/addonsmgmt/v1

// AdditionalCatalogSourceListBuilder contains the data and logic needed to build
// 'additional_catalog_source' objects.
type AdditionalCatalogSourceListBuilder struct {
items []*AdditionalCatalogSourceBuilder
}

// NewAdditionalCatalogSourceList creates a new builder of 'additional_catalog_source' objects.
func NewAdditionalCatalogSourceList() *AdditionalCatalogSourceListBuilder {
return new(AdditionalCatalogSourceListBuilder)
}

// Items sets the items of the list.
func (b *AdditionalCatalogSourceListBuilder) Items(values ...*AdditionalCatalogSourceBuilder) *AdditionalCatalogSourceListBuilder {
b.items = make([]*AdditionalCatalogSourceBuilder, len(values))
copy(b.items, values)
return b
}

// Empty returns true if the list is empty.
func (b *AdditionalCatalogSourceListBuilder) Empty() bool {
return b == nil || len(b.items) == 0
}

// Copy copies the items of the given list into this builder, discarding any previous items.
func (b *AdditionalCatalogSourceListBuilder) Copy(list *AdditionalCatalogSourceList) *AdditionalCatalogSourceListBuilder {
if list == nil || list.items == nil {
b.items = nil
} else {
b.items = make([]*AdditionalCatalogSourceBuilder, len(list.items))
for i, v := range list.items {
b.items[i] = NewAdditionalCatalogSource().Copy(v)
}
}
return b
}

// Build creates a list of 'additional_catalog_source' objects using the
// configuration stored in the builder.
func (b *AdditionalCatalogSourceListBuilder) Build() (list *AdditionalCatalogSourceList, err error) {
items := make([]*AdditionalCatalogSource, len(b.items))
for i, item := range b.items {
items[i], err = item.Build()
if err != nil {
return
}
}
list = new(AdditionalCatalogSourceList)
list.items = items
return
}
Loading

0 comments on commit bde773f

Please sign in to comment.