Skip to content

Commit

Permalink
Merge pull request #1016 from nimrodshn/add_aro_hcp_v1_alpha1_service
Browse files Browse the repository at this point in the history
Add ARO HCP v1alpha1 root resource
  • Loading branch information
zgalor authored Dec 19, 2024
2 parents b7818cb + 09427ae commit 768bbc6
Show file tree
Hide file tree
Showing 1,612 changed files with 65,996 additions and 6,762 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ run:
- addonsmgmt
- authorizations
- clustersmgmt
- arohcp
- errors
- helpers
- jobqueue
Expand Down
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.452
- Update model version v0.0.405
- Update metamodel version v0.0.64
- Add ARO HCP v1alpha1 root resource

## 0.1.451
- Update model version v0.0.404
- Add WifConfig patch endpoint
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export PATH := $(LOCAL_BIN_PATH):$(PATH)
export CGO_ENABLED=0

# Details of the model to use:
model_version:=v0.0.404
model_version:=v0.0.405
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
metamodel_version:=v0.0.61
metamodel_version:=v0.0.64

goimports_version:=v0.4.0

Expand Down Expand Up @@ -74,6 +74,7 @@ generate: model metamodel-install goimports-install
addonsmgmt \
authorizations \
clustersmgmt \
arohcp \
errors \
helpers \
jobqueue \
Expand Down
16 changes: 8 additions & 8 deletions accesstransparency/v1/access_protection_list_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ import (
// the given writer.
func MarshalAccessProtectionList(list []*AccessProtection, writer io.Writer) error {
stream := helpers.NewStream(writer)
writeAccessProtectionList(list, stream)
WriteAccessProtectionList(list, stream)
err := stream.Flush()
if err != nil {
return err
}
return stream.Error
}

// writeAccessProtectionList writes a list of value of the 'access_protection' type to
// WriteAccessProtectionList writes a list of value of the 'access_protection' type to
// the given stream.
func writeAccessProtectionList(list []*AccessProtection, stream *jsoniter.Stream) {
func WriteAccessProtectionList(list []*AccessProtection, stream *jsoniter.Stream) {
stream.WriteArrayStart()
for i, value := range list {
if i > 0 {
stream.WriteMore()
}
writeAccessProtection(value, stream)
WriteAccessProtection(value, stream)
}
stream.WriteArrayEnd()
}
Expand All @@ -58,17 +58,17 @@ func UnmarshalAccessProtectionList(source interface{}) (items []*AccessProtectio
if err != nil {
return
}
items = readAccessProtectionList(iterator)
items = ReadAccessProtectionList(iterator)
err = iterator.Error
return
}

// readAccessProtectionList reads list of values of the ”access_protection' type from
// ReadAccessProtectionList reads list of values of the ”access_protection' type from
// the given iterator.
func readAccessProtectionList(iterator *jsoniter.Iterator) []*AccessProtection {
func ReadAccessProtectionList(iterator *jsoniter.Iterator) []*AccessProtection {
list := []*AccessProtection{}
for iterator.ReadArray() {
item := readAccessProtection(iterator)
item := ReadAccessProtection(iterator)
list = append(list, item)
}
return list
Expand Down
23 changes: 23 additions & 0 deletions accesstransparency/v1/access_protection_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,29 @@ func (l *AccessProtectionList) Len() int {
return len(l.items)
}

// Items sets the items of the list.
func (l *AccessProtectionList) SetLink(link bool) {
l.link = link
}

// Items sets the items of the list.
func (l *AccessProtectionList) SetHREF(href string) {
l.href = href
}

// Items sets the items of the list.
func (l *AccessProtectionList) SetItems(items []*AccessProtection) {
l.items = items
}

// Items returns the items of the list.
func (l *AccessProtectionList) Items() []*AccessProtection {
if l == nil {
return nil
}
return l.items
}

// Empty returns true if the list is empty.
func (l *AccessProtectionList) Empty() bool {
return l == nil || len(l.items) == 0
Expand Down
12 changes: 6 additions & 6 deletions accesstransparency/v1/access_protection_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ import (
// MarshalAccessProtection writes a value of the 'access_protection' type to the given writer.
func MarshalAccessProtection(object *AccessProtection, writer io.Writer) error {
stream := helpers.NewStream(writer)
writeAccessProtection(object, stream)
WriteAccessProtection(object, stream)
err := stream.Flush()
if err != nil {
return err
}
return stream.Error
}

// writeAccessProtection writes a value of the 'access_protection' type to the given stream.
func writeAccessProtection(object *AccessProtection, stream *jsoniter.Stream) {
// WriteAccessProtection writes a value of the 'access_protection' type to the given stream.
func WriteAccessProtection(object *AccessProtection, stream *jsoniter.Stream) {
count := 0
stream.WriteObjectStart()
var present_ bool
Expand All @@ -60,13 +60,13 @@ func UnmarshalAccessProtection(source interface{}) (object *AccessProtection, er
if err != nil {
return
}
object = readAccessProtection(iterator)
object = ReadAccessProtection(iterator)
err = iterator.Error
return
}

// readAccessProtection reads a value of the 'access_protection' type from the given iterator.
func readAccessProtection(iterator *jsoniter.Iterator) *AccessProtection {
// ReadAccessProtection reads a value of the 'access_protection' type from the given iterator.
func ReadAccessProtection(iterator *jsoniter.Iterator) *AccessProtection {
object := &AccessProtection{}
for {
field := iterator.ReadObject()
Expand Down
16 changes: 8 additions & 8 deletions accesstransparency/v1/access_request_list_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ import (
// the given writer.
func MarshalAccessRequestList(list []*AccessRequest, writer io.Writer) error {
stream := helpers.NewStream(writer)
writeAccessRequestList(list, stream)
WriteAccessRequestList(list, stream)
err := stream.Flush()
if err != nil {
return err
}
return stream.Error
}

// writeAccessRequestList writes a list of value of the 'access_request' type to
// WriteAccessRequestList writes a list of value of the 'access_request' type to
// the given stream.
func writeAccessRequestList(list []*AccessRequest, stream *jsoniter.Stream) {
func WriteAccessRequestList(list []*AccessRequest, stream *jsoniter.Stream) {
stream.WriteArrayStart()
for i, value := range list {
if i > 0 {
stream.WriteMore()
}
writeAccessRequest(value, stream)
WriteAccessRequest(value, stream)
}
stream.WriteArrayEnd()
}
Expand All @@ -58,17 +58,17 @@ func UnmarshalAccessRequestList(source interface{}) (items []*AccessRequest, err
if err != nil {
return
}
items = readAccessRequestList(iterator)
items = ReadAccessRequestList(iterator)
err = iterator.Error
return
}

// readAccessRequestList reads list of values of the ”access_request' type from
// ReadAccessRequestList reads list of values of the ”access_request' type from
// the given iterator.
func readAccessRequestList(iterator *jsoniter.Iterator) []*AccessRequest {
func ReadAccessRequestList(iterator *jsoniter.Iterator) []*AccessRequest {
list := []*AccessRequest{}
for iterator.ReadArray() {
item := readAccessRequest(iterator)
item := ReadAccessRequest(iterator)
list = append(list, item)
}
return list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ import (
// the given writer.
func MarshalAccessRequestPostRequestList(list []*AccessRequestPostRequest, writer io.Writer) error {
stream := helpers.NewStream(writer)
writeAccessRequestPostRequestList(list, stream)
WriteAccessRequestPostRequestList(list, stream)
err := stream.Flush()
if err != nil {
return err
}
return stream.Error
}

// writeAccessRequestPostRequestList writes a list of value of the 'access_request_post_request' type to
// WriteAccessRequestPostRequestList writes a list of value of the 'access_request_post_request' type to
// the given stream.
func writeAccessRequestPostRequestList(list []*AccessRequestPostRequest, stream *jsoniter.Stream) {
func WriteAccessRequestPostRequestList(list []*AccessRequestPostRequest, stream *jsoniter.Stream) {
stream.WriteArrayStart()
for i, value := range list {
if i > 0 {
stream.WriteMore()
}
writeAccessRequestPostRequest(value, stream)
WriteAccessRequestPostRequest(value, stream)
}
stream.WriteArrayEnd()
}
Expand All @@ -58,17 +58,17 @@ func UnmarshalAccessRequestPostRequestList(source interface{}) (items []*AccessR
if err != nil {
return
}
items = readAccessRequestPostRequestList(iterator)
items = ReadAccessRequestPostRequestList(iterator)
err = iterator.Error
return
}

// readAccessRequestPostRequestList reads list of values of the ”access_request_post_request' type from
// ReadAccessRequestPostRequestList reads list of values of the ”access_request_post_request' type from
// the given iterator.
func readAccessRequestPostRequestList(iterator *jsoniter.Iterator) []*AccessRequestPostRequest {
func ReadAccessRequestPostRequestList(iterator *jsoniter.Iterator) []*AccessRequestPostRequest {
list := []*AccessRequestPostRequest{}
for iterator.ReadArray() {
item := readAccessRequestPostRequest(iterator)
item := ReadAccessRequestPostRequest(iterator)
list = append(list, item)
}
return list
Expand Down
23 changes: 23 additions & 0 deletions accesstransparency/v1/access_request_post_request_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,29 @@ func (l *AccessRequestPostRequestList) Len() int {
return len(l.items)
}

// Items sets the items of the list.
func (l *AccessRequestPostRequestList) SetLink(link bool) {
l.link = link
}

// Items sets the items of the list.
func (l *AccessRequestPostRequestList) SetHREF(href string) {
l.href = href
}

// Items sets the items of the list.
func (l *AccessRequestPostRequestList) SetItems(items []*AccessRequestPostRequest) {
l.items = items
}

// Items returns the items of the list.
func (l *AccessRequestPostRequestList) Items() []*AccessRequestPostRequest {
if l == nil {
return nil
}
return l.items
}

// Empty returns true if the list is empty.
func (l *AccessRequestPostRequestList) Empty() bool {
return l == nil || len(l.items) == 0
Expand Down
12 changes: 6 additions & 6 deletions accesstransparency/v1/access_request_post_request_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ import (
// MarshalAccessRequestPostRequest writes a value of the 'access_request_post_request' type to the given writer.
func MarshalAccessRequestPostRequest(object *AccessRequestPostRequest, writer io.Writer) error {
stream := helpers.NewStream(writer)
writeAccessRequestPostRequest(object, stream)
WriteAccessRequestPostRequest(object, stream)
err := stream.Flush()
if err != nil {
return err
}
return stream.Error
}

// writeAccessRequestPostRequest writes a value of the 'access_request_post_request' type to the given stream.
func writeAccessRequestPostRequest(object *AccessRequestPostRequest, stream *jsoniter.Stream) {
// WriteAccessRequestPostRequest writes a value of the 'access_request_post_request' type to the given stream.
func WriteAccessRequestPostRequest(object *AccessRequestPostRequest, stream *jsoniter.Stream) {
count := 0
stream.WriteObjectStart()
var present_ bool
Expand Down Expand Up @@ -114,13 +114,13 @@ func UnmarshalAccessRequestPostRequest(source interface{}) (object *AccessReques
if err != nil {
return
}
object = readAccessRequestPostRequest(iterator)
object = ReadAccessRequestPostRequest(iterator)
err = iterator.Error
return
}

// readAccessRequestPostRequest reads a value of the 'access_request_post_request' type from the given iterator.
func readAccessRequestPostRequest(iterator *jsoniter.Iterator) *AccessRequestPostRequest {
// ReadAccessRequestPostRequest reads a value of the 'access_request_post_request' type from the given iterator.
func ReadAccessRequestPostRequest(iterator *jsoniter.Iterator) *AccessRequestPostRequest {
object := &AccessRequestPostRequest{}
for {
field := iterator.ReadObject()
Expand Down
12 changes: 6 additions & 6 deletions accesstransparency/v1/access_request_state_list_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ import (
// the given writer.
func MarshalAccessRequestStateList(list []AccessRequestState, writer io.Writer) error {
stream := helpers.NewStream(writer)
writeAccessRequestStateList(list, stream)
WriteAccessRequestStateList(list, stream)
err := stream.Flush()
if err != nil {
return err
}
return stream.Error
}

// writeAccessRequestStateList writes a list of value of the 'access_request_state' type to
// WriteAccessRequestStateList writes a list of value of the 'access_request_state' type to
// the given stream.
func writeAccessRequestStateList(list []AccessRequestState, stream *jsoniter.Stream) {
func WriteAccessRequestStateList(list []AccessRequestState, stream *jsoniter.Stream) {
stream.WriteArrayStart()
for i, value := range list {
if i > 0 {
Expand All @@ -58,14 +58,14 @@ func UnmarshalAccessRequestStateList(source interface{}) (items []AccessRequestS
if err != nil {
return
}
items = readAccessRequestStateList(iterator)
items = ReadAccessRequestStateList(iterator)
err = iterator.Error
return
}

// readAccessRequestStateList reads list of values of the ”access_request_state' type from
// ReadAccessRequestStateList reads list of values of the ”access_request_state' type from
// the given iterator.
func readAccessRequestStateList(iterator *jsoniter.Iterator) []AccessRequestState {
func ReadAccessRequestStateList(iterator *jsoniter.Iterator) []AccessRequestState {
list := []AccessRequestState{}
for iterator.ReadArray() {
text := iterator.ReadString()
Expand Down
Loading

0 comments on commit 768bbc6

Please sign in to comment.