Skip to content

Commit

Permalink
better formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
gshilin-sdb committed Feb 1, 2023
1 parent f50ea73 commit 3aa0205
Show file tree
Hide file tree
Showing 793 changed files with 556 additions and 6,058 deletions.
6 changes: 0 additions & 6 deletions accountsmgmt/v1/access_token_auth_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ limitations under the License.
package v1 // github.com/openshift-online/ocm-sdk-go/accountsmgmt/v1

// AccessTokenAuthBuilder contains the data and logic needed to build 'access_token_auth' objects.
//
//
type AccessTokenAuthBuilder struct {
bitmap_ uint32
auth string
Expand All @@ -39,17 +37,13 @@ func (b *AccessTokenAuthBuilder) Empty() bool {
}

// Auth sets the value of the 'auth' attribute to the given value.
//
//
func (b *AccessTokenAuthBuilder) Auth(value string) *AccessTokenAuthBuilder {
b.auth = value
b.bitmap_ |= 1
return b
}

// Email sets the value of the 'email' attribute to the given value.
//
//
func (b *AccessTokenAuthBuilder) Email(value string) *AccessTokenAuthBuilder {
b.email = value
b.bitmap_ |= 2
Expand Down
2 changes: 1 addition & 1 deletion accountsmgmt/v1/access_token_auth_list_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalAccessTokenAuthList(source interface{}) (items []*AccessTokenAuth,
return
}

// readAccessTokenAuthList reads list of values of the ''access_token_auth' type from
// readAccessTokenAuthList reads list of values of the access_token_auth' type from
// the given iterator.
func readAccessTokenAuthList(iterator *jsoniter.Iterator) []*AccessTokenAuth {
list := []*AccessTokenAuth{}
Expand Down
10 changes: 0 additions & 10 deletions accountsmgmt/v1/access_token_auth_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ limitations under the License.
package v1 // github.com/openshift-online/ocm-sdk-go/accountsmgmt/v1

// AccessTokenAuth represents the values of the 'access_token_auth' type.
//
//
type AccessTokenAuth struct {
bitmap_ uint32
auth string
Expand All @@ -35,8 +33,6 @@ func (o *AccessTokenAuth) Empty() bool {

// Auth returns the value of the 'auth' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
//
func (o *AccessTokenAuth) Auth() string {
if o != nil && o.bitmap_&1 != 0 {
return o.auth
Expand All @@ -46,8 +42,6 @@ func (o *AccessTokenAuth) Auth() string {

// GetAuth returns the value of the 'auth' attribute and
// a flag indicating if the attribute has a value.
//
//
func (o *AccessTokenAuth) GetAuth() (value string, ok bool) {
ok = o != nil && o.bitmap_&1 != 0
if ok {
Expand All @@ -58,8 +52,6 @@ func (o *AccessTokenAuth) GetAuth() (value string, ok bool) {

// Email returns the value of the 'email' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
//
func (o *AccessTokenAuth) Email() string {
if o != nil && o.bitmap_&2 != 0 {
return o.email
Expand All @@ -69,8 +61,6 @@ func (o *AccessTokenAuth) Email() string {

// GetEmail returns the value of the 'email' attribute and
// a flag indicating if the attribute has a value.
//
//
func (o *AccessTokenAuth) GetEmail() (value string, ok bool) {
ok = o != nil && o.bitmap_&2 != 0
if ok {
Expand Down
4 changes: 0 additions & 4 deletions accountsmgmt/v1/access_token_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ limitations under the License.
package v1 // github.com/openshift-online/ocm-sdk-go/accountsmgmt/v1

// AccessTokenBuilder contains the data and logic needed to build 'access_token' objects.
//
//
type AccessTokenBuilder struct {
bitmap_ uint32
auths map[string]*AccessTokenAuthBuilder
Expand All @@ -38,8 +36,6 @@ func (b *AccessTokenBuilder) Empty() bool {
}

// Auths sets the value of the 'auths' attribute to the given value.
//
//
func (b *AccessTokenBuilder) Auths(value map[string]*AccessTokenAuthBuilder) *AccessTokenBuilder {
b.auths = value
if value != nil {
Expand Down
4 changes: 0 additions & 4 deletions accountsmgmt/v1/access_token_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ func (r *AccessTokenPostResponse) Error() *errors.Error {
}

// Body returns the value of the 'body' parameter.
//
//
func (r *AccessTokenPostResponse) Body() *AccessToken {
if r == nil {
return nil
Expand All @@ -182,8 +180,6 @@ func (r *AccessTokenPostResponse) Body() *AccessToken {

// GetBody returns the value of the 'body' parameter and
// a flag indicating if the parameter has a value.
//
//
func (r *AccessTokenPostResponse) GetBody() (value *AccessToken, ok bool) {
ok = r != nil && r.body != nil
if ok {
Expand Down
2 changes: 1 addition & 1 deletion accountsmgmt/v1/access_token_list_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalAccessTokenList(source interface{}) (items []*AccessToken, err err
return
}

// readAccessTokenList reads list of values of the ''access_token' type from
// readAccessTokenList reads list of values of the access_token' type from
// the given iterator.
func readAccessTokenList(iterator *jsoniter.Iterator) []*AccessToken {
list := []*AccessToken{}
Expand Down
6 changes: 0 additions & 6 deletions accountsmgmt/v1/access_token_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ limitations under the License.
package v1 // github.com/openshift-online/ocm-sdk-go/accountsmgmt/v1

// AccessToken represents the values of the 'access_token' type.
//
//
type AccessToken struct {
bitmap_ uint32
auths map[string]*AccessTokenAuth
Expand All @@ -34,8 +32,6 @@ func (o *AccessToken) Empty() bool {

// Auths returns the value of the 'auths' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
//
func (o *AccessToken) Auths() map[string]*AccessTokenAuth {
if o != nil && o.bitmap_&1 != 0 {
return o.auths
Expand All @@ -45,8 +41,6 @@ func (o *AccessToken) Auths() map[string]*AccessTokenAuth {

// GetAuths returns the value of the 'auths' attribute and
// a flag indicating if the attribute has a value.
//
//
func (o *AccessToken) GetAuths() (value map[string]*AccessTokenAuth, ok bool) {
ok = o != nil && o.bitmap_&1 != 0
if ok {
Expand Down
32 changes: 0 additions & 32 deletions accountsmgmt/v1/account_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import (
)

// AccountBuilder contains the data and logic needed to build 'account' objects.
//
//
type AccountBuilder struct {
bitmap_ uint32
id string
Expand Down Expand Up @@ -78,35 +76,27 @@ func (b *AccountBuilder) Empty() bool {
}

// BanCode sets the value of the 'ban_code' attribute to the given value.
//
//
func (b *AccountBuilder) BanCode(value string) *AccountBuilder {
b.banCode = value
b.bitmap_ |= 8
return b
}

// BanDescription sets the value of the 'ban_description' attribute to the given value.
//
//
func (b *AccountBuilder) BanDescription(value string) *AccountBuilder {
b.banDescription = value
b.bitmap_ |= 16
return b
}

// Banned sets the value of the 'banned' attribute to the given value.
//
//
func (b *AccountBuilder) Banned(value bool) *AccountBuilder {
b.banned = value
b.bitmap_ |= 32
return b
}

// Capabilities sets the value of the 'capabilities' attribute to the given values.
//
//
func (b *AccountBuilder) Capabilities(values ...*CapabilityBuilder) *AccountBuilder {
b.capabilities = make([]*CapabilityBuilder, len(values))
copy(b.capabilities, values)
Expand All @@ -115,35 +105,27 @@ func (b *AccountBuilder) Capabilities(values ...*CapabilityBuilder) *AccountBuil
}

// CreatedAt sets the value of the 'created_at' attribute to the given value.
//
//
func (b *AccountBuilder) CreatedAt(value time.Time) *AccountBuilder {
b.createdAt = value
b.bitmap_ |= 128
return b
}

// Email sets the value of the 'email' attribute to the given value.
//
//
func (b *AccountBuilder) Email(value string) *AccountBuilder {
b.email = value
b.bitmap_ |= 256
return b
}

// FirstName sets the value of the 'first_name' attribute to the given value.
//
//
func (b *AccountBuilder) FirstName(value string) *AccountBuilder {
b.firstName = value
b.bitmap_ |= 512
return b
}

// Labels sets the value of the 'labels' attribute to the given values.
//
//
func (b *AccountBuilder) Labels(values ...*LabelBuilder) *AccountBuilder {
b.labels = make([]*LabelBuilder, len(values))
copy(b.labels, values)
Expand All @@ -152,17 +134,13 @@ func (b *AccountBuilder) Labels(values ...*LabelBuilder) *AccountBuilder {
}

// LastName sets the value of the 'last_name' attribute to the given value.
//
//
func (b *AccountBuilder) LastName(value string) *AccountBuilder {
b.lastName = value
b.bitmap_ |= 2048
return b
}

// Organization sets the value of the 'organization' attribute to the given value.
//
//
func (b *AccountBuilder) Organization(value *OrganizationBuilder) *AccountBuilder {
b.organization = value
if value != nil {
Expand All @@ -174,44 +152,34 @@ func (b *AccountBuilder) Organization(value *OrganizationBuilder) *AccountBuilde
}

// RhitAccountID sets the value of the 'rhit_account_ID' attribute to the given value.
//
//
func (b *AccountBuilder) RhitAccountID(value string) *AccountBuilder {
b.rhitAccountID = value
b.bitmap_ |= 8192
return b
}

// RhitWebUserId sets the value of the 'rhit_web_user_id' attribute to the given value.
//
//
func (b *AccountBuilder) RhitWebUserId(value string) *AccountBuilder {
b.rhitWebUserId = value
b.bitmap_ |= 16384
return b
}

// ServiceAccount sets the value of the 'service_account' attribute to the given value.
//
//
func (b *AccountBuilder) ServiceAccount(value bool) *AccountBuilder {
b.serviceAccount = value
b.bitmap_ |= 32768
return b
}

// UpdatedAt sets the value of the 'updated_at' attribute to the given value.
//
//
func (b *AccountBuilder) UpdatedAt(value time.Time) *AccountBuilder {
b.updatedAt = value
b.bitmap_ |= 65536
return b
}

// Username sets the value of the 'username' attribute to the given value.
//
//
func (b *AccountBuilder) Username(value string) *AccountBuilder {
b.username = value
b.bitmap_ |= 131072
Expand Down
14 changes: 0 additions & 14 deletions accountsmgmt/v1/account_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,12 @@ func (r *AccountPollResponse) Error() *errors.Error {
}

// Body returns the value of the 'body' parameter.
//
//
func (r *AccountPollResponse) Body() *Account {
return r.response.Body()
}

// GetBody returns the value of the 'body' parameter and
// a flag indicating if the parameter has a value.
//
//
func (r *AccountPollResponse) GetBody() (value *Account, ok bool) {
return r.response.GetBody()
}
Expand Down Expand Up @@ -315,8 +311,6 @@ func (r *AccountGetResponse) Error() *errors.Error {
}

// Body returns the value of the 'body' parameter.
//
//
func (r *AccountGetResponse) Body() *Account {
if r == nil {
return nil
Expand All @@ -326,8 +320,6 @@ func (r *AccountGetResponse) Body() *Account {

// GetBody returns the value of the 'body' parameter and
// a flag indicating if the parameter has a value.
//
//
func (r *AccountGetResponse) GetBody() (value *Account, ok bool) {
ok = r != nil && r.body != nil
if ok {
Expand Down Expand Up @@ -365,8 +357,6 @@ func (r *AccountUpdateRequest) Impersonate(user string) *AccountUpdateRequest {
}

// Body sets the value of the 'body' parameter.
//
//
func (r *AccountUpdateRequest) Body(value *Account) *AccountUpdateRequest {
r.body = value
return r
Expand Down Expand Up @@ -464,8 +454,6 @@ func (r *AccountUpdateResponse) Error() *errors.Error {
}

// Body returns the value of the 'body' parameter.
//
//
func (r *AccountUpdateResponse) Body() *Account {
if r == nil {
return nil
Expand All @@ -475,8 +463,6 @@ func (r *AccountUpdateResponse) Body() *Account {

// GetBody returns the value of the 'body' parameter and
// a flag indicating if the parameter has a value.
//
//
func (r *AccountUpdateResponse) GetBody() (value *Account, ok bool) {
ok = r != nil && r.body != nil
if ok {
Expand Down
2 changes: 1 addition & 1 deletion accountsmgmt/v1/account_list_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalAccountList(source interface{}) (items []*Account, err error) {
return
}

// readAccountList reads list of values of the ''account' type from
// readAccountList reads list of values of the account' type from
// the given iterator.
func readAccountList(iterator *jsoniter.Iterator) []*Account {
list := []*Account{}
Expand Down
Loading

0 comments on commit 3aa0205

Please sign in to comment.