-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #684 from tbrisker/290
Release 0.1.290
- Loading branch information
Showing
112 changed files
with
24,225 additions
and
6,560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
run: | ||
skip-dirs: | ||
- accountsmgmt | ||
- addonsmgmt | ||
- authorizations | ||
- clustersmgmt | ||
- errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.