Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add Cluster.DisabledCapabilities #1028

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 78 additions & 59 deletions arohcp/v1alpha1/cluster_builder.go

Large diffs are not rendered by default.

180 changes: 102 additions & 78 deletions arohcp/v1alpha1/cluster_type.go

Large diffs are not rendered by default.

169 changes: 91 additions & 78 deletions arohcp/v1alpha1/cluster_type_json.go

Large diffs are not rendered by default.

5,048 changes: 2,538 additions & 2,510 deletions arohcp/v1alpha1/openapi.go

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions arohcp/v1alpha1/optional_cluster_capability_list_type_json.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
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 v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1

import (
"io"

jsoniter "github.com/json-iterator/go"
"github.com/openshift-online/ocm-sdk-go/helpers"
)

// MarshalOptionalClusterCapabilityList writes a list of values of the 'optional_cluster_capability' type to
// the given writer.
func MarshalOptionalClusterCapabilityList(list []OptionalClusterCapability, writer io.Writer) error {
stream := helpers.NewStream(writer)
WriteOptionalClusterCapabilityList(list, stream)
err := stream.Flush()
if err != nil {
return err
}
return stream.Error
}

// WriteOptionalClusterCapabilityList writes a list of value of the 'optional_cluster_capability' type to
// the given stream.
func WriteOptionalClusterCapabilityList(list []OptionalClusterCapability, stream *jsoniter.Stream) {
stream.WriteArrayStart()
for i, value := range list {
if i > 0 {
stream.WriteMore()
}
stream.WriteString(string(value))
}
stream.WriteArrayEnd()
}

// UnmarshalOptionalClusterCapabilityList reads a list of values of the 'optional_cluster_capability' type
// from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalOptionalClusterCapabilityList(source interface{}) (items []OptionalClusterCapability, err error) {
iterator, err := helpers.NewIterator(source)
if err != nil {
return
}
items = ReadOptionalClusterCapabilityList(iterator)
err = iterator.Error
return
}

// ReadOptionalClusterCapabilityList reads list of values of the ”optional_cluster_capability' type from
// the given iterator.
func ReadOptionalClusterCapabilityList(iterator *jsoniter.Iterator) []OptionalClusterCapability {
list := []OptionalClusterCapability{}
for iterator.ReadArray() {
text := iterator.ReadString()
item := OptionalClusterCapability(text)
list = append(list, item)
}
return list
}
28 changes: 28 additions & 0 deletions arohcp/v1alpha1/optional_cluster_capability_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
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 v1alpha1 // github.com/openshift-online/ocm-sdk-go/arohcp/v1alpha1

// OptionalClusterCapability represents the values of the 'optional_cluster_capability' enumerated type.
type OptionalClusterCapability string

const (
// Enables the cluster image registry operator.
OptionalClusterCapabilityImageRegistry OptionalClusterCapability = "ImageRegistry"
)
Loading