Skip to content

Commit

Permalink
Add invite statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Oct 29, 2024
1 parent 1df3c19 commit c7d6781
Show file tree
Hide file tree
Showing 2 changed files with 194 additions and 7 deletions.
14 changes: 7 additions & 7 deletions models/model_invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type Invite struct {
InviteId string `json:"inviteId"`
TenantId *TenantId `json:"tenantId,omitempty"`
// A list of statements which match roles to resources. The invited user will all statements apply to them when the invite is accepted.
Statements []Statement `json:"statements"`
Links *AccountLinks `json:"links,omitempty"`
Statements []InviteStatement `json:"statements"`
Links *AccountLinks `json:"links,omitempty"`
}

type _Invite Invite
Expand All @@ -27,7 +27,7 @@ type _Invite Invite
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewInvite(inviteId string, statements []Statement) *Invite {
func NewInvite(inviteId string, statements []InviteStatement) *Invite {
this := Invite{}
this.InviteId = inviteId
this.Statements = statements
Expand Down Expand Up @@ -99,9 +99,9 @@ func (o *Invite) SetTenantId(v TenantId) {
}

// GetStatements returns the Statements field value
func (o *Invite) GetStatements() []Statement {
func (o *Invite) GetStatements() []InviteStatement {
if o == nil {
var ret []Statement
var ret []InviteStatement
return ret
}

Expand All @@ -110,15 +110,15 @@ func (o *Invite) GetStatements() []Statement {

// GetStatementsOk returns a tuple with the Statements field value
// and a boolean to check if the value has been set.
func (o *Invite) GetStatementsOk() ([]Statement, bool) {
func (o *Invite) GetStatementsOk() ([]InviteStatement, bool) {
if o == nil {
return nil, false
}
return o.Statements, true
}

// SetStatements sets field value
func (o *Invite) SetStatements(v []Statement) {
func (o *Invite) SetStatements(v []InviteStatement) {
o.Statements = v
}

Expand Down
187 changes: 187 additions & 0 deletions models/model_invite_statement.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7d6781

Please sign in to comment.